diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-17 12:13:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-17 12:13:38 +0000 |
commit | 050aa62a226723e9b8420a41edb821aec9bb1ff9 (patch) | |
tree | 81c970a7fbc722143610b59caed3037592bd3cf0 /test/math | |
parent | 845b3a4460ee9447edb66137461570299965f5f8 (diff) |
libm/Makefile.in: reformat the list of wrappers
so that it is easier to modify, sort, etc;
use __ in filenames of wrappers which wrap __functions
(it may be useful to have function and file names ALWAYS match);
remove names of not implemented wrappers (it was generating useless
empty .o files).
libm/ldouble_wrappers.c: comment out the wrapper which is
not compiled anyway
test/math/compile_test.c: improve this test, it was optimizing out some calls,
and we don't want that.
No actual code changes.
Diffstat (limited to 'test/math')
-rw-r--r-- | test/math/compile_test.c | 126 |
1 files changed, 64 insertions, 62 deletions
diff --git a/test/math/compile_test.c b/test/math/compile_test.c index 57eb00927..2e7be1a93 100644 --- a/test/math/compile_test.c +++ b/test/math/compile_test.c @@ -1,68 +1,70 @@ #include <math.h> -void testl(long double long_double_x, int int_x, long long_x) +int testl(long double long_double_x, int int_x, long long_x) { -__finitel(long_double_x); -__fpclassifyl(long_double_x); -__isinfl(long_double_x); -__isnanl(long_double_x); -__signbitl(long_double_x); -acoshl(long_double_x); -acosl(long_double_x); -asinhl(long_double_x); -asinl(long_double_x); -atan2l(long_double_x, long_double_x); -atanhl(long_double_x); -atanl(long_double_x); -cbrtl(long_double_x); -ceill(long_double_x); -copysignl(long_double_x, long_double_x); -coshl(long_double_x); -cosl(long_double_x); -erfcl(long_double_x); -erfl(long_double_x); -exp2l(long_double_x); -expl(long_double_x); -expm1l(long_double_x); -fabsl(long_double_x); -fdiml(long_double_x, long_double_x); -floorl(long_double_x); -fmal(long_double_x, long_double_x, long_double_x); -fmaxl(long_double_x, long_double_x); -fminl(long_double_x, long_double_x); -fmodl(long_double_x, long_double_x); -frexpl(long_double_x, &int_x); -hypotl(long_double_x, long_double_x); -ilogbl(long_double_x); -ldexpl(long_double_x, int_x); -lgammal(long_double_x); -llrintl(long_double_x); -llroundl(long_double_x); -log10l(long_double_x); -log1pl(long_double_x); -log2l(long_double_x); -logbl(long_double_x); -logl(long_double_x); -lrintl(long_double_x); -lroundl(long_double_x); -modfl(long_double_x, &long_double_x); -nearbyintl(long_double_x); -nextafterl(long_double_x, long_double_x); -nexttowardl(long_double_x, long_double_x); -powl(long_double_x, long_double_x); -remainderl(long_double_x, long_double_x); -remquol(long_double_x, long_double_x, &int_x); -rintl(long_double_x); -roundl(long_double_x); -scalblnl(long_double_x, long_x); -scalbnl(long_double_x, int_x); -sinhl(long_double_x); -sinl(long_double_x); -sqrtl(long_double_x); -tanhl(long_double_x); -tanl(long_double_x); -tgammal(long_double_x); -truncl(long_double_x); +int r = 0; +r += __finitel(long_double_x); +r += __fpclassifyl(long_double_x); +r += __isinfl(long_double_x); +r += __isnanl(long_double_x); +r += __signbitl(long_double_x); +r += acoshl(long_double_x); +r += acosl(long_double_x); +r += asinhl(long_double_x); +r += asinl(long_double_x); +r += atan2l(long_double_x, long_double_x); +r += atanhl(long_double_x); +r += atanl(long_double_x); +r += cbrtl(long_double_x); +r += ceill(long_double_x); +r += copysignl(long_double_x, long_double_x); +r += coshl(long_double_x); +r += cosl(long_double_x); +r += erfcl(long_double_x); +r += erfl(long_double_x); +r += exp2l(long_double_x); +r += expl(long_double_x); +r += expm1l(long_double_x); +r += fabsl(long_double_x); +r += fdiml(long_double_x, long_double_x); +r += floorl(long_double_x); +r += fmal(long_double_x, long_double_x, long_double_x); +r += fmaxl(long_double_x, long_double_x); +r += fminl(long_double_x, long_double_x); +r += fmodl(long_double_x, long_double_x); +r += frexpl(long_double_x, &int_x); +r += hypotl(long_double_x, long_double_x); +r += ilogbl(long_double_x); +r += ldexpl(long_double_x, int_x); +r += lgammal(long_double_x); +r += llrintl(long_double_x); +r += llroundl(long_double_x); +r += log10l(long_double_x); +r += log1pl(long_double_x); +r += log2l(long_double_x); +r += logbl(long_double_x); +r += logl(long_double_x); +r += lrintl(long_double_x); +r += lroundl(long_double_x); +r += modfl(long_double_x, &long_double_x); +r += nearbyintl(long_double_x); +r += nextafterl(long_double_x, long_double_x); +/* r += nexttowardl(long_double_x, long_double_x); - uclibc doesn't provide this [yet?] */ +r += powl(long_double_x, long_double_x); +r += remainderl(long_double_x, long_double_x); +r += remquol(long_double_x, long_double_x, &int_x); +r += rintl(long_double_x); +r += roundl(long_double_x); +r += scalblnl(long_double_x, long_x); +r += scalbnl(long_double_x, int_x); +r += sinhl(long_double_x); +r += sinl(long_double_x); +r += sqrtl(long_double_x); +r += tanhl(long_double_x); +r += tanl(long_double_x); +r += tgammal(long_double_x); +r += truncl(long_double_x); +return r; } int main(int argc, char **argv) |