aboutsummaryrefslogtreecommitdiff
path: root/signal/sigempty.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-02-18 22:42:06 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-02-18 22:42:06 +0000
commite2c631384a1f9795514d8a7303838070ea81e2ec (patch)
tree6562c9aa94c58890e92fec3f96df737c8ed7c6f0 /signal/sigempty.c
parentb9a76339be2514c700d801e179ef9b6c910eaedf (diff)
downloadglibc-e2c631384a1f9795514d8a7303838070ea81e2ec.zip
glibc-e2c631384a1f9795514d8a7303838070ea81e2ec.tar.gz
glibc-e2c631384a1f9795514d8a7303838070ea81e2ec.tar.bz2
Fix ldbl-128ibm fmodl handling of subnormal results (bug 19595).
The ldbl-128ibm implementation of fmodl has completely bogus logic for subnormal results (in this context, that means results for which the result is in the subnormal range for double, not results with absolute value below LDBL_MIN), based on code used for ldbl-128 that is correct in that case but incorrect in the ldbl-128ibm use. This patch fixes it to convert the mantissa into the correct form expected by ldbl_insert_mantissa, removing the other cases of the code that were incorrect and in one case unreachable for ldbl-128ibm. A correct exponent value is then passed to ldbl_insert_mantissa to reflect the shifted result. Tested for powerpc. [BZ #19595] * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use common logic for all cases of shifting subnormal results. Do not insert sign bit in shifted mantissa. Always pass -1023 as biased exponent to ldbl_insert_mantissa in subnormal case.
Diffstat (limited to 'signal/sigempty.c')
0 files changed, 0 insertions, 0 deletions