Make pow() conform to standard definition
This commit is contained in:
@@ -171,7 +171,8 @@ static long double fyl2xp1(long double x, long double y) {
|
||||
}
|
||||
|
||||
static long double fscale(long double significand, long double exponent) {
|
||||
return scalbl(trunc(significand), exponent);
|
||||
if (isunordered(significand, exponent)) return NAN;
|
||||
return ldexp(significand, exponent);
|
||||
}
|
||||
|
||||
static long double x87remainder(long double x, long double y, uint32_t *sw,
|
||||
|
||||
Reference in New Issue
Block a user