diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-05-10 15:11:55 -0500 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2012-05-10 15:11:55 -0500 |
commit | 89c9aa491a7cee97bf78a29cddbf0a25c902a671 (patch) | |
tree | a03f7f7a4864421a67c1f4ba3c4ad74090cc0e63 /bits | |
parent | 021db4be6f1f4189f66feee066a495d49e92b93e (diff) | |
download | glibc-89c9aa491a7cee97bf78a29cddbf0a25c902a671.zip glibc-89c9aa491a7cee97bf78a29cddbf0a25c902a671.tar.gz glibc-89c9aa491a7cee97bf78a29cddbf0a25c902a671.tar.bz2 |
Fix for logb/logbf/logbl (bugs 13954/13955/13956)
POSIX 2008 states that if the input for 'logb[f|l]' is a subnormal number
it should be treated as if it were normalized. This means the
implementation should calculate the log2 of the mantissa and add it to the
subnormal exponent (-126 for float and -1022 for double and IBM long
double). This patch takes care of that.
Diffstat (limited to 'bits')
0 files changed, 0 insertions, 0 deletions