diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-04-28 19:45:52 -0300 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2017-08-02 15:28:34 +0200 |
commit | da3e97f94c80c5d05c0d999e87179aad35f7e975 (patch) | |
tree | 9a8c48d9acfaa411b985336a67303703955bd370 /sysdeps/mach/hurd/powerpc/exc2signal.c | |
parent | 0edeadc0d396aa713b808ae50a0058aca5d3837e (diff) | |
download | glibc-da3e97f94c80c5d05c0d999e87179aad35f7e975.tar.gz glibc-da3e97f94c80c5d05c0d999e87179aad35f7e975.tar.xz glibc-da3e97f94c80c5d05c0d999e87179aad35f7e975.zip |
powerpc: Fix logbl on power7 [BZ# 21280]
1. Fix the results for negative subnormals by ignoring the signal when normalizing the value. 2. Fix the output when the high part is a power of 2 and the low part is a nonzero number with opposite sign. This fix is based on commit 380bd0fd2418f8988217de950f8b8ff18af0cb2b. After applying this patch, logbl() tests pass cleanly on POWER >= 7. Tested on powerpc, powerpc64 and powerpc64le [BZ #21280] * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the signal of subnormals and adjust the exponent of power of 2 down when low part has opposite sign. (cherry picked from commit c064f6a613844181f411aabb2662384a6aefb69e)
Diffstat (limited to 'sysdeps/mach/hurd/powerpc/exc2signal.c')
0 files changed, 0 insertions, 0 deletions