math: regenerate all math tests
authorSzabolcs Nagy <nsz@port70.net>
Sat, 24 Nov 2012 14:58:55 +0000 (15:58 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Sat, 24 Nov 2012 14:58:55 +0000 (15:58 +0100)
commitc58b8e7cb29f954791ffd5bc2d97ddb4d4202d0c
treea11ef0b5d75aab4782c47ad9867812fb335bdd82
parentae0f0fe09b7fc9d44d072c3fd08372991d852b1d
math: regenerate all math tests

gen used exp range limitation to get ieee semantics but
mpfr seems to have problems with it (eg gamma(next(-180))
incorrectly underflows) so different strategy is used:
use full exp range and only narrow it before converting
the result

now the error term uses nearest rounding and sign difference
is treated as inf ulp error during tests

added helper tools to convert between float formats
115 files changed:
src/math/Makefile
src/math/crlibm/acos.h
src/math/crlibm/asin.h
src/math/crlibm/atan.h
src/math/crlibm/cos.h
src/math/crlibm/cosh.h
src/math/crlibm/exp.h
src/math/crlibm/expm1.h
src/math/crlibm/log.h
src/math/crlibm/log10.h
src/math/crlibm/log1p.h
src/math/crlibm/log2.h
src/math/crlibm/pow.h
src/math/crlibm/sin.h
src/math/crlibm/sinh.h
src/math/crlibm/tan.h
src/math/gen/Makefile
src/math/gen/functions.h
src/math/gen/mp.c
src/math/gen/mplibm.c
src/math/gen/next.c [new file with mode: 0644]
src/math/gen/prev.c [new file with mode: 0644]
src/math/gen/toa.c [new file with mode: 0644]
src/math/gen/toe.c [new file with mode: 0644]
src/math/gen/tof.c [new file with mode: 0644]
src/math/sanity/frexp.h
src/math/sanity/frexpf.h
src/math/sanity/frexpl.h
src/math/sanity/ilogb.h
src/math/sanity/ilogbf.h
src/math/sanity/ilogbl.h
src/math/sanity/jn.h
src/math/sanity/jnf.h
src/math/sanity/ldexp.h
src/math/sanity/ldexpf.h
src/math/sanity/ldexpl.h
src/math/sanity/lgamma.h
src/math/sanity/lgamma_r.h
src/math/sanity/lgammaf.h
src/math/sanity/lgammaf_r.h
src/math/sanity/lgammal.h
src/math/sanity/lgammal_r.h
src/math/sanity/llrint.h
src/math/sanity/llrintf.h
src/math/sanity/llrintl.h
src/math/sanity/llround.h
src/math/sanity/llroundf.h
src/math/sanity/llroundl.h
src/math/sanity/lrint.h
src/math/sanity/lrintf.h
src/math/sanity/lrintl.h
src/math/sanity/lround.h
src/math/sanity/lroundf.h
src/math/sanity/lroundl.h
src/math/sanity/modf.h
src/math/sanity/modff.h
src/math/sanity/modfl.h
src/math/sanity/remquo.h
src/math/sanity/remquof.h
src/math/sanity/remquol.h
src/math/sanity/scalbln.h
src/math/sanity/scalblnf.h
src/math/sanity/scalblnl.h
src/math/sanity/scalbn.h
src/math/sanity/scalbnf.h
src/math/sanity/scalbnl.h
src/math/sanity/yn.h
src/math/sanity/ynf.h
src/math/special/expl.h
src/math/special/llrint.h
src/math/special/llrintf.h
src/math/special/llrintl.h
src/math/special/llround.h
src/math/special/llroundf.h
src/math/special/llroundl.h
src/math/special/lrint.h
src/math/special/lrintf.h
src/math/special/lrintl.h
src/math/special/lround.h
src/math/special/lroundf.h
src/math/special/lroundl.h
src/math/special/tgamma.h
src/math/ucb/acos.h
src/math/ucb/acosf.h
src/math/ucb/asin.h
src/math/ucb/asinf.h
src/math/ucb/atan.h
src/math/ucb/atan2.h
src/math/ucb/atan2f.h
src/math/ucb/atanf.h
src/math/ucb/cos.h
src/math/ucb/cosf.h
src/math/ucb/cosh.h
src/math/ucb/coshf.h
src/math/ucb/exp.h
src/math/ucb/expf.h
src/math/ucb/hypot.h
src/math/ucb/hypotf.h
src/math/ucb/log.h
src/math/ucb/log10.h
src/math/ucb/log10f.h
src/math/ucb/logf.h
src/math/ucb/pow.h
src/math/ucb/powf.h
src/math/ucb/sin.h
src/math/ucb/sinf.h
src/math/ucb/sinh.h
src/math/ucb/sinhf.h
src/math/ucb/sqrt.h
src/math/ucb/sqrtf.h
src/math/ucb/tan.h
src/math/ucb/tanf.h
src/math/ucb/tanh.h
src/math/ucb/tanhf.h
src/math/util.c