Searched refs:maxOdd (Results 1 – 4 of 4) sorted by relevance
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/math/ |
H A D | exponential.d | 586 enum maxOdd = pow(2.0L, real.mant_dig) - 1.0L; in impl() local 587 static if (maxOdd > ulong.max) in impl() 602 if (absY <= maxOdd) in impl() 773 immutable real maxOdd = pow(2.0L, real.mant_dig) - 1.0L; variable 774 assert(pow(-1.0L, maxOdd) == -1.0L); 775 assert(pow(-1.0L, -maxOdd) == -1.0L); 776 assert(pow(-1.0L, maxOdd + 1.0L) == 1.0L); 777 assert(pow(-1.0L, -maxOdd + 1.0L) == 1.0L); 778 assert(pow(-1.0L, maxOdd - 1.0L) == 1.0L); 779 assert(pow(-1.0L, -maxOdd - 1.0L) == 1.0L);
|
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/ |
H A D | conv.d | 2236 ulong maxOdd = ulong.max; 2238 ulong maxOdd = (1UL << real.mant_dig) - 1; 2240 real r1 = maxOdd; 2241 assert(roundTo!ulong(r1) == maxOdd); 2243 real r2 = maxOdd - 1; 2244 assert(roundTo!ulong(r2) == maxOdd - 1); 2246 real r3 = maxOdd / 2; 2247 assert(roundTo!ulong(r3) == maxOdd / 2); 2249 real r4 = maxOdd / 2 + 1; 2250 assert(roundTo!ulong(r4) == maxOdd / 2 + 1);
|
H A D | math.d | 7074 enum maxOdd = pow(2.0L, real.mant_dig) - 1.0L; 7075 static if (maxOdd > ulong.max) 7089 if (absY <= maxOdd) 7174 immutable real maxOdd = pow(2.0L, real.mant_dig) - 1.0L; 7175 assert(pow(-1.0L, maxOdd) == -1.0L); 7176 assert(pow(-1.0L, -maxOdd) == -1.0L); 7177 assert(pow(-1.0L, maxOdd + 1.0L) == 1.0L); 7178 assert(pow(-1.0L, -maxOdd + 1.0L) == 1.0L); 7179 assert(pow(-1.0L, maxOdd - 1.0L) == 1.0L); 7180 assert(pow(-1.0L, -maxOdd - 1.0L) == 1.0L);
|
/netbsd/external/gpl3/gcc.old/dist/libphobos/src/std/ |
H A D | math.d | 7074 enum maxOdd = pow(2.0L, real.mant_dig) - 1.0L; 7075 static if (maxOdd > ulong.max) 7089 if (absY <= maxOdd) 7174 immutable real maxOdd = pow(2.0L, real.mant_dig) - 1.0L; 7175 assert(pow(-1.0L, maxOdd) == -1.0L); 7176 assert(pow(-1.0L, -maxOdd) == -1.0L); 7177 assert(pow(-1.0L, maxOdd + 1.0L) == 1.0L); 7178 assert(pow(-1.0L, -maxOdd + 1.0L) == 1.0L); 7179 assert(pow(-1.0L, maxOdd - 1.0L) == 1.0L); 7180 assert(pow(-1.0L, -maxOdd - 1.0L) == 1.0L);
|