am 2e236c13
: am 17edd38f
: am 9c9b0fc7
: Merge "libm: cherry-pick one patch from freebsd to fix logb() denormals issue"
* commit '2e236c132fe38e52d8a52d264cca5c520d778c98': libm: cherry-pick one patch from freebsd to fix logb() denormals issue
This commit is contained in:
commit
a1d3e0d8eb
1 changed files with 2 additions and 2 deletions
|
@ -36,9 +36,9 @@ logb(double x)
|
|||
if(ix>=0x7ff00000) return x*x;
|
||||
if(ix<0x00100000) {
|
||||
x *= two54; /* convert subnormal x to normal */
|
||||
GET_FLOAT_WORD(ix,x);
|
||||
GET_HIGH_WORD(ix,x);
|
||||
ix &= 0x7fffffff;
|
||||
return (float) ((ix>>20)-1023-54);
|
||||
return (double) ((ix>>20)-1023-54);
|
||||
} else
|
||||
return (double) ((ix>>20)-1023);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue