ICU-1298 Change code to not do static initialization

X-SVN-Rev: 6431
This commit is contained in:
George Rhoten 2001-10-25 18:49:34 +00:00
parent 63b8f337e7
commit 82ee71c805

View file

@ -57,9 +57,8 @@ const double llong::kDMin = -kDMax;
#define SQRT231 46340
// solaris 64-bit computes zero for this!
//const double llong::kD32 = ((double)(0xffffffffu)) + 1;
const double llong::kD32 = uprv_pow(2, 32);
// Keep all math as a double. Solaris 64-bit fails otherwise
const double llong::kD32 = ((double)((uint32_t)0xffffffffu)) + 1.0;
llong::llong(double d) { // avoid dependency on bit representation of double
if (uprv_isNaN(d)) {