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 /ChangeLog | |
| parent | 021db4be6f1f4189f66feee066a495d49e92b93e (diff) | |
| download | glibc-89c9aa491a7cee97bf78a29cddbf0a25c902a671.tar.xz glibc-89c9aa491a7cee97bf78a29cddbf0a25c902a671.zip | |
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 'ChangeLog')
| -rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +2012-05-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com> + + [BZ #13954] + [BZ #13955] + [BZ #13956] + * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number. + * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise. + * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise. + * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise. + * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise. + * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise. + * math/libm-test.inc (logb_test) : Additional logb tests. + 2012-05-09 Andreas Schwab <schwab@linux-m68k.org> Andreas Jaeger <aj@suse.de> |
