glibc/sysdeps/generic
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
..
net Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
netinet Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
nfs Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
sys Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
_G_config.h Remove _G_HAVE_SYS_CDEFS. 2012-02-09 17:09:55 +01:00
_itoa.h Add _ITOA_NEEDED and _ITOA_WORD_TYPE 2012-03-21 14:38:47 -07:00
a.out.h
abort-instr.h
aio_misc.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
allocalim.h Update. 2002-10-09 09:42:48 +00:00
asm-syntax.h
bp-checks.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-semctl.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-start.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-sym.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-thunks.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
confstr.h
device-nrs.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dirstream.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-cache.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-dtprocnum.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-fptr.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-hash.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-irel.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-librecon.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-lookupcfg.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-machine.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-osinfo.h Fix another instance of the _dl_random masking bug, plus coding style. 2012-03-12 15:57:17 -07:00
dl-procinfo.c Dummy dl-procinfo.c file for platforms which don't have one. 2002-02-01 18:25:44 +00:00
dl-procinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-sysdep.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-tls.h Update. 2002-02-07 04:08:19 +00:00
dwarf2.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
entry.h Update. 2002-03-15 03:16:52 +00:00
errqueue.h Update. 2001-01-10 23:47:39 +00:00
fd_to_filename.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fork.h Update. 2002-10-01 00:05:23 +00:00
fpu_control.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
frame.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
framestate.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
gccframe.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
gmp-mparam.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
hp-timing.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ifreq.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ifunc-sel.h Move sysdeps/generic/elf/* to sysdeps/generic 2012-03-19 21:04:21 +01:00
intr-msg.h
inttypes.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ldconfig.h Add x32 support to ldconfig 2012-03-16 15:20:45 -07:00
ldsodefs.h New ld.so argument --inhibit-ldcache to disable ld.so.cache lookup 2012-04-11 00:13:52 +05:30
libgcc_s.h Make name of libgcc_s library configurable 2009-11-03 23:52:01 +01:00
libm-test-ulps
local-setxid.h * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and 2006-06-04 22:17:06 +00:00
machine-gmon.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
machine-lock.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
machine-sp.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Makefile Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
malloc-machine.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
math_ldbl_opt.h * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
math_ldbl.h
math_private.h Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
memcopy.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
memusage.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
not-cancel.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
nscd-types.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
pagecopy.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
paths.h [BZ #9955] 2009-04-23 18:29:30 +00:00
profil-counter.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
pty-private.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
register-dump.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
rtld-lowlevel.h Jakub Jelinek <jakub@redhat.com> 2006-10-10 00:51:29 +00:00
sigcontextinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
siglist.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
sigset-cvt-mask.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
stackinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
stdint.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
symbol-hacks.h Update. 2004-03-08 21:31:23 +00:00
sysdep-cancel.h * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P. 2006-10-29 21:46:32 +00:00
sysdep.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
testrtsig.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
thread_state.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tls-macros.h * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps 2005-03-13 09:09:05 +00:00
tls.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-audit.h * sysdeps/generic/ldsodefs.h (struct audit_ifaces): 2005-10-05 18:57:11 +00:00
tst-stack-align.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unsecvars.h * malloc/malloc.c (_int_malloc): Remove unused any_larger variable. 2006-10-11 16:29:13 +00:00
unwind-dw2-fde-glibc.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2-fde.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2-fde.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-pe.c Update. 2004-03-10 10:04:19 +00:00
unwind-pe.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
utmp-equal.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00