dbertoni 01/07/26 22:27:38
Modified: c/src/PlatformSupport DoubleSupport.hpp DoubleSupport.cpp
Log:
Changes for Tru64.
Revision Changes Path
1.12 +23 -23 xml-xalan/c/src/PlatformSupport/DoubleSupport.hpp
Index: DoubleSupport.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DoubleSupport.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DoubleSupport.hpp 2001/02/01 18:31:26 1.11
+++ DoubleSupport.hpp 2001/07/27 05:27:38 1.12
@@ -92,14 +92,14 @@
isNaN(double theNumber)
{
// Compare the two DWORDs of the double as unsigned longs.
- const unsigned long* const theFirstDWORD =
+ const unsigned int* const theFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&theNumber;
+ (const unsigned int*)&theNumber;
#else
- reinterpret_cast<const unsigned long*>(&theNumber);
+ reinterpret_cast<const unsigned int*>(&theNumber);
#endif
- const unsigned long* const theSecondDWORD =
+ const unsigned int* const theSecondDWORD =
theFirstDWORD + 1;
return *theFirstDWORD == *s_NaNFirstDWORD &&
@@ -140,14 +140,14 @@
isPositiveZero(double theNumber)
{
// Compare the two DWORDs of the double as unsigned longs.
- const unsigned long* const theFirstDWORD =
+ const unsigned int* const theFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&theNumber;
+ (const unsigned int*)&theNumber;
#else
- reinterpret_cast<const unsigned long*>(&theNumber);
+ reinterpret_cast<const unsigned int*>(&theNumber);
#endif
- const unsigned long* const theSecondDWORD =
+ const unsigned int* const theSecondDWORD =
theFirstDWORD + 1;
return *theFirstDWORD == *s_positiveZeroFirstDWORD &&
@@ -164,14 +164,14 @@
isNegativeZero(double theNumber)
{
// Compare the two DWORDs of the double as unsigned longs.
- const unsigned long* const theFirstDWORD =
+ const unsigned int* const theFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&theNumber;
+ (const unsigned int*)&theNumber;
#else
- reinterpret_cast<const unsigned long*>(&theNumber);
+ reinterpret_cast<const unsigned int*>(&theNumber);
#endif
- const unsigned long* const theSecondDWORD =
+ const unsigned int* const theSecondDWORD =
theFirstDWORD + 1;
return *theFirstDWORD == *s_negativeZeroFirstDWORD &&
@@ -605,20 +605,20 @@
private:
- static const double s_NaN;
- static const double s_positiveInfinity;
- static const double s_negativeInfinity;
- static const double s_positiveZero;
- static const double s_negativeZero;
+ static const double s_NaN;
+ static const double
s_positiveInfinity;
+ static const double
s_negativeInfinity;
+ static const double s_positiveZero;
+ static const double s_negativeZero;
- static const unsigned long* s_NaNFirstDWORD;
- static const unsigned long* s_NaNSecondDWORD;
+ static const unsigned int* const s_NaNFirstDWORD;
+ static const unsigned int* const s_NaNSecondDWORD;
- static const unsigned long* s_positiveZeroFirstDWORD;
- static const unsigned long* s_positiveZeroSecondDWORD;
+ static const unsigned int* const s_positiveZeroFirstDWORD;
+ static const unsigned int* const s_positiveZeroSecondDWORD;
- static const unsigned long* s_negativeZeroFirstDWORD;
- static const unsigned long* s_negativeZeroSecondDWORD;
+ static const unsigned int* const s_negativeZeroFirstDWORD;
+ static const unsigned int* const s_negativeZeroSecondDWORD;
};
1.25 +12 -12 xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp
Index: DoubleSupport.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- DoubleSupport.cpp 2001/05/11 13:59:18 1.24
+++ DoubleSupport.cpp 2001/07/27 05:27:38 1.25
@@ -84,35 +84,35 @@
-const unsigned long* DoubleSupport::s_NaNFirstDWORD =
+const unsigned int* const DoubleSupport::s_NaNFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&s_NaN;
+ (const unsigned int*)&s_NaN;
#else
- reinterpret_cast<const unsigned
long*>(&s_NaN);
+ reinterpret_cast<const unsigned
int*>(&s_NaN);
#endif
-const unsigned long* DoubleSupport::s_NaNSecondDWORD =
+const unsigned int* const DoubleSupport::s_NaNSecondDWORD =
s_NaNFirstDWORD + 1;
-const unsigned long* DoubleSupport::s_positiveZeroFirstDWORD =
+const unsigned int* const DoubleSupport::s_positiveZeroFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&s_positiveZero;
+ (const unsigned int*)&s_positiveZero;
#else
- reinterpret_cast<const unsigned
long*>(&s_positiveZero);
+ reinterpret_cast<const unsigned
int*>(&s_positiveZero);
#endif
-const unsigned long* DoubleSupport::s_positiveZeroSecondDWORD =
s_positiveZeroFirstDWORD + 1;
+const unsigned int* const DoubleSupport::s_positiveZeroSecondDWORD =
s_positiveZeroFirstDWORD + 1;
-const unsigned long* DoubleSupport::s_negativeZeroFirstDWORD =
+const unsigned int* const DoubleSupport::s_negativeZeroFirstDWORD =
#if defined(XALAN_OLD_STYLE_CASTS)
- (const unsigned long*)&s_negativeZero;
+ (const unsigned int*)&s_negativeZero;
#else
- reinterpret_cast<const unsigned
long*>(&s_negativeZero);
+ reinterpret_cast<const unsigned
int*>(&s_negativeZero);
#endif
-const unsigned long* DoubleSupport::s_negativeZeroSecondDWORD =
s_negativeZeroFirstDWORD + 1;
+const unsigned int* const DoubleSupport::s_negativeZeroSecondDWORD =
s_negativeZeroFirstDWORD + 1;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]