glibc/sysdeps
Adhemerval Zanella 76da726532 Fix ilogb exception and errno (bug 6794)
[BZ #6794]
Following Joseph comments about bug 6794, here is a proposed fix. It turned out
to be a large fix mainly because I had to move some file along to follow libm
files/names conventions.

Basically I have added wrappers (w_ilogb.c, w_ilogbf.c, w_ilogbl.c) that now calls
the symbol '__ieee754_ilogb'. The wrappers checks for '__ieee754_ilogb' output and
set the errno and raise exceptions as expected.

The '__ieee754_ilogb' is implemented in sysdeps. I have moved the 's_ilogb[f|l]' files
to e_ilogb[f|l] and renamed the '__ilogb[f|l]' to '__ieee754_ilogb[f|l]'.

I also found out a bug in i386 and x86-64 assembly coded ilogb implementation where
it raises a FE_DIVBYZERO when argument is '0.0'. I corrected this issue as well.

Finally I added the errno and FE_INVALID tests for 0.0, NaN and +-InF argument. Tested
on i386, x86-64, ppc32 and ppc64.
2012-04-17 22:12:53 +02:00
..
generic Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
gnu Clean up glibc manual references to "GNU system" (bug 6911). 2012-03-08 01:27:38 +00:00
i386 Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
ieee754 Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
mach Add __snseconds_t and __SNSECONDS_T_TYPE 2012-04-11 11:02:59 -07:00
posix Add missing headers 2012-02-27 20:27:41 +01:00
powerpc Reduce down to one definition of _ELF_DYNAMIC_DO_RELOC. 2012-04-05 15:28:37 -07:00
pthread Fix struct timespec normalization (as used in many other places). 2012-03-08 11:49:43 +01:00
s390 Add byteswap-16.h for __bswap_16 2012-04-06 15:14:52 -07:00
sh Fix return value of SH fesetround. 2012-04-05 11:58:30 +09:00
sparc Update sparc libm ULPs. 2012-04-11 12:25:00 -07:00
unix Fix variable check in sparc clock frequency probing. 2012-04-13 14:31:35 -07:00
wordsize-32 Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
wordsize-64 Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
x86_64 Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00