dbertoni 2003/01/03 00:02:05
Modified: c/src/XPath FunctionCeiling.cpp FunctionFloor.cpp
Log:
Use new DoubleSupport math functions.
Revision Changes Path
1.10 +5 -5 xml-xalan/c/src/XPath/FunctionCeiling.cpp
Index: FunctionCeiling.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionCeiling.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- FunctionCeiling.cpp 21 Nov 2002 01:26:17 -0000 1.9
+++ FunctionCeiling.cpp 3 Jan 2003 08:02:05 -0000 1.10
@@ -58,6 +58,10 @@
+#include <PlatformSupport/DoubleSupport.hpp>
+
+
+
#include "XObjectFactory.hpp"
@@ -87,11 +91,7 @@
{
assert(arg1.null() == false);
-#if defined(XALAN_STRICT_ANSI_HEADERS)
- return
executionContext.getXObjectFactory().createNumber(std::ceil(arg1->num()));
-#else
- return
executionContext.getXObjectFactory().createNumber(ceil(arg1->num()));
-#endif
+ return
executionContext.getXObjectFactory().createNumber(DoubleSupport::ceiling(arg1->num()));
}
1.10 +5 -5 xml-xalan/c/src/XPath/FunctionFloor.cpp
Index: FunctionFloor.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionFloor.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- FunctionFloor.cpp 21 Nov 2002 01:26:17 -0000 1.9
+++ FunctionFloor.cpp 3 Jan 2003 08:02:05 -0000 1.10
@@ -58,6 +58,10 @@
+#include <PlatformSupport/DoubleSupport.hpp>
+
+
+
#include "XObjectFactory.hpp"
@@ -87,11 +91,7 @@
{
assert(arg1.null() == false);
-#if defined(XALAN_STRICT_ANSI_HEADERS)
- return
executionContext.getXObjectFactory().createNumber(std::floor(arg1->num()));
-#else
- return
executionContext.getXObjectFactory().createNumber(floor(arg1->num()));
-#endif
+ return
executionContext.getXObjectFactory().createNumber(DoubleSupport::floor(arg1->num()));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]