glibc/sysdeps/ieee754/ldbl-128ibm
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
..
e_acoshl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_acosl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_asinl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_atan2l.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_atanhl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_coshl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_expl.c Fix undue underflow in ldbl-128ibm version of expl 2012-03-26 14:19:35 +02:00
e_fmodl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_gammal_r.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
e_hypotl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_ilogbl.c Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
e_j0l.c
e_j1l.c
e_jnl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_lgammal_r.c
e_log2l.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_log10l.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_logl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_powl.c Fix missing overflow/underflow exception in ldbl-128ibm version of powl 2012-03-21 23:59:22 +01:00
e_rem_pio2l.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_remainderl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_sinhl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
e_sqrtl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ieee754.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
k_cosl.c Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm. 2012-03-22 12:52:50 +00:00
k_sincosl.c Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm. 2012-03-22 12:52:50 +00:00
k_sinl.c Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm. 2012-03-22 12:52:50 +00:00
k_tanl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
ldbl2mpn.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Makefile
math_ldbl.h [BZ #2423] 2006-03-16 11:47:24 +00:00
mpn2ldbl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
printf_fphex.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_asinhl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_atanl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_cbrtl.c
s_ceill.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_copysignl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_cosl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_cprojl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ctanhl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_ctanl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_erfl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_expm1l.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_fabsl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_finitel.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_floorl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmal.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fpclassifyl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_frexpl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_isinf_nsl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_isinfl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_isnanl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_llrintl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_llroundl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_log1pl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_logbl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_lrintl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_lroundl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_modfl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_nearbyintl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_nextafterl.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_nexttoward.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_nexttowardf.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_remquol.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_rintl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_roundl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_scalblnl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_scalbnl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_signbitl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_sincosl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_sinl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_tanhl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_tanl.c Use <> for math.h and math_private.h everywhere. 2012-03-09 16:09:10 -08:00
s_truncl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
strtold_l.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
t_sincosl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_expl.c