mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-1298 Change code to not do static initialization
X-SVN-Rev: 6431
This commit is contained in:
parent
63b8f337e7
commit
82ee71c805
1 changed files with 2 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue