Commit Graph

5 Commits

Author SHA1 Message Date
e6403887cc fix exp10l.c to include float.h
the previous commit was a no op in exp10l because LDBL_* macros
were implicitly 0 (the preprocessor does not warn about undefined
symbols).
2014-09-08 16:24:17 +02:00
0c32c2635e prune math code on archs with binary64 long double
__polevll, __p1evll and exp10l were provided on archs when long double
is the same as double. The first two were completely unused and exp10l
can be a wrapper around exp10.
2014-09-08 15:51:42 +02:00
b03c19a4b9 math: fix long double constants in exp10l.c 2012-11-12 23:13:28 +01:00
a917c03706 support alternate glibc name pow10 for exp10 2012-05-01 00:07:37 -04:00
f681975577 first try at writing an efficient and "correct" exp10
this is a nonstandard function so it's not clear what conditions it
should satisfy. my intent is that it be fast and exact for positive
integral exponents when the result fits in the destination type, and
fast and correctly rounded for small negative integral exponents.
otherwise we aim for at most 1ulp error; it seems to differ from pow
by at most 1ulp and it's often 2-5 times faster than pow.
2012-04-30 03:26:53 -04:00