diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/power7/fpu/s_logb.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 17b04cd45f..6cd6d72159 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-17 Adhemerval Zanella <adhemerval.zanella@linaro.org> + + * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for + negative subnormals. + 2015-12-16 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/unix/sysv/linux/x86_64/sysdep.h diff --git a/sysdeps/powerpc/power7/fpu/s_logb.c b/sysdeps/powerpc/power7/fpu/s_logb.c index c5feb67960..abd1c2ae3c 100644 --- a/sysdeps/powerpc/power7/fpu/s_logb.c +++ b/sysdeps/powerpc/power7/fpu/s_logb.c @@ -58,6 +58,7 @@ __logb (double x) int ma; EXTRACT_WORDS (ix, lx, x); + ix &= 0x7fffffff; if (ix == 0) ma = __builtin_clz (lx) + 32; else |