math: fenv status flag fixes
authorSzabolcs Nagy <nsz@port70.net>
Mon, 12 Aug 2013 19:57:42 +0000 (19:57 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Mon, 12 Aug 2013 19:57:42 +0000 (19:57 +0000)
commitcda5e0484c98223a552580e79af378a6e6e83305
tree3e2b369662573e843215e19aff8b34fb9b9aaa71
parentf9ba40bcb2e9cf0e51368d1144a000d1cc15ab9f
math: fenv status flag fixes
all flags are checked for tecorrectly rounded functions except
inexact for fma
all flags but inexact are tested for other functions
fix pow(0,-inf) test case (should raise divbyzero, mpfr bug)
add underflow related testcases
80 files changed:
src/common/mtest.h
src/functional/random.c
src/math/ceil.c
src/math/ceilf.c
src/math/ceill.c
src/math/copysign.c
src/math/copysignf.c
src/math/copysignl.c
src/math/fabs.c
src/math/fabsf.c
src/math/fabsl.c
src/math/fdim.c
src/math/fdimf.c
src/math/fdiml.c
src/math/floor.c
src/math/floorf.c
src/math/floorl.c
src/math/fma.c
src/math/fmaf.c
src/math/fmal.c
src/math/fmax.c
src/math/fmaxf.c
src/math/fmaxl.c
src/math/fmin.c
src/math/fminf.c
src/math/fminl.c
src/math/frexp.c
src/math/frexpf.c
src/math/frexpl.c
src/math/ldexp.c
src/math/ldexpf.c
src/math/ldexpl.c
src/math/logb.c
src/math/logbf.c
src/math/logbl.c
src/math/modf.c
src/math/modff.c
src/math/modfl.c
src/math/nearbyint.c
src/math/nearbyintf.c
src/math/nearbyintl.c
src/math/nextafter.c
src/math/nextafterf.c
src/math/nextafterl.c
src/math/nexttoward.c
src/math/nexttowardf.c
src/math/nexttowardl.c
src/math/rint.c
src/math/rintf.c
src/math/rintl.c
src/math/round.c
src/math/roundf.c
src/math/roundl.c
src/math/scalb.c
src/math/scalbf.c
src/math/scalbln.c
src/math/scalblnf.c
src/math/scalblnl.c
src/math/scalbn.c
src/math/scalbnf.c
src/math/scalbnl.c
src/math/special/atan2.h
src/math/special/atan2f.h
src/math/special/atan2l.h
src/math/special/expm1.h
src/math/special/log1pf.h
src/math/special/pow.h
src/math/special/powf.h
src/math/special/powl.h
src/math/special/remainder.h
src/math/special/remainderf.h
src/math/special/remainderl.h
src/math/sqrt.c
src/math/sqrtf.c
src/math/sqrtl.c
src/math/trunc.c
src/math/truncf.c
src/math/truncl.c
src/math/ucb/pow.h
src/math/ucb/powf.h