]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Fix for logb/logbf/logbl (bugs 13954/13955/13956)
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 10 May 2012 20:11:55 +0000 (15:11 -0500)
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>
Thu, 10 May 2012 20:11:55 +0000 (15:11 -0500)
commit89c9aa491a7cee97bf78a29cddbf0a25c902a671
treea03f7f7a4864421a67c1f4ba3c4ad74090cc0e63
parent021db4be6f1f4189f66feee066a495d49e92b93e
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.
ChangeLog
NEWS
math/libm-test.inc
sysdeps/ieee754/dbl-64/s_logb.c
sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c
sysdeps/ieee754/flt-32/s_logbf.c
sysdeps/ieee754/ldbl-128/s_logbl.c
sysdeps/ieee754/ldbl-128ibm/s_logbl.c
sysdeps/ieee754/ldbl-96/s_logbl.c