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 /libm | |
parent | 845b3a4460ee9447edb66137461570299965f5f8 (diff) | |
download | uClibc-alpine-050aa62a226723e9b8420a41edb821aec9bb1ff9.tar.bz2 uClibc-alpine-050aa62a226723e9b8420a41edb821aec9bb1ff9.tar.xz |
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 'libm')
-rw-r--r-- | libm/Makefile.in | 137 | ||||
-rw-r--r-- | libm/ldouble_wrappers.c | 12 |
2 files changed, 127 insertions, 22 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in index 9ff59b46c..6b8224600 100644 --- a/libm/Makefile.in +++ b/libm/Makefile.in @@ -71,25 +71,128 @@ libm_CSRC := \ s_isnan.c s_isnanf.c s_isinf.c s_isinff.c s_finitef.c \ s_fdim.c s_fma.c s_fmax.c s_fmin.c \ s_remquo.c w_exp2.c + +# Not implemented [yet?], see comment in float_wrappers.c: +# exp2f.o fdimf.o fmaf.o fmaxf.o fminf.o log2f.o +# nearbyintf.o remquof.o scalblnf.o tgammaf.o FL_MOBJ := \ - acosf.o acoshf.o asinf.o asinhf.o atan2f.o atanf.o atanhf.o cbrtf.o \ - ceilf.o copysignf.o cosf.o coshf.o erfcf.o erff.o exp2f.o expf.o \ - expm1f.o fabsf.o fdimf.o floorf.o fmaf.o fmaxf.o fminf.o fmodf.o \ - frexpf.o hypotf.o ilogbf.o ldexpf.o lgammaf.o llroundf.o log10f.o \ - log1pf.o log2f.o logbf.o logf.o lrintf.o lroundf.o modff.o nearbyintf.o \ - powf.o remainderf.o remquof.o rintf.o roundf.o \ - scalblnf.o scalbnf.o sinf.o sinhf.o sqrtf.o tanf.o tanhf.o \ - tgammaf.o truncf.o cargf.o llrintf.o scalbf.o gammaf.o significandf.o - -LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cargl.o cbrtl.o \ - ceill.o copysignl.o coshl.o cosl.o erfcl.o erfl.o exp2l.o expl.o \ - expm1l.o fabsl.o finitel.o fdiml.o floorl.o fmal.o fmaxl.o fminl.o fmodl.o fpclassifyl.o \ - frexpl.o gammal.o hypotl.o ilogbl.o isinfl.o isnanl.o ldexpl.o lgammal.o llrintl.o \ - llroundl.o log10l.o log1pl.o log2l.o logbl.o logl.o lrintl.o lroundl.o \ - modfl.o nearbyintl.o nextafterl.o XXXnexttowardl.o powl.o remainderl.o \ - remquol.o rintl.o roundl.o scalblnl.o scalbnl.o __signbitl.o sinhl.o sinl.o sqrtl.o \ - tanhl.o tanl.o tgammal.o truncl.o significandl.o + acosf.o \ + acoshf.o \ + asinf.o \ + asinhf.o \ + atan2f.o \ + atanf.o \ + atanhf.o \ + cargf.o \ + cbrtf.o \ + ceilf.o \ + copysignf.o \ + cosf.o \ + coshf.o \ + erfcf.o \ + erff.o \ + expf.o \ + expm1f.o \ + fabsf.o \ + floorf.o \ + fmodf.o \ + frexpf.o \ + gammaf.o \ + hypotf.o \ + ilogbf.o \ + ldexpf.o \ + lgammaf.o \ + llrintf.o \ + llroundf.o \ + log10f.o \ + log1pf.o \ + logbf.o \ + logf.o \ + lrintf.o \ + lroundf.o \ + modff.o \ + powf.o \ + remainderf.o \ + rintf.o \ + roundf.o \ + scalbf.o \ + scalbnf.o \ + significandf.o \ + sinf.o \ + sinhf.o \ + sqrtf.o \ + tanf.o \ + tanhf.o \ + truncf.o \ + +# Not implemented [yet?]: nexttowardl.o +LD_MOBJ := \ + __finitel.o \ + __fpclassifyl.o \ + __isinfl.o \ + __isnanl.o \ + __signbitl.o \ + acoshl.o \ + acosl.o \ + asinhl.o \ + asinl.o \ + atan2l.o \ + atanhl.o \ + atanl.o \ + cargl.o \ + cbrtl.o \ + ceill.o \ + copysignl.o \ + coshl.o \ + cosl.o \ + erfcl.o \ + erfl.o \ + exp2l.o \ + expl.o \ + expm1l.o \ + fabsl.o \ + fdiml.o \ + floorl.o \ + fmal.o \ + fmaxl.o \ + fminl.o \ + fmodl.o \ + frexpl.o \ + gammal.o \ + hypotl.o \ + ilogbl.o \ + ldexpl.o \ + lgammal.o \ + llrintl.o \ + llroundl.o \ + log10l.o \ + log1pl.o \ + log2l.o \ + logbl.o \ + logl.o \ + lrintl.o \ + lroundl.o \ + modfl.o \ + nearbyintl.o \ + nextafterl.o \ + powl.o \ + remainderl.o \ + remquol.o \ + rintl.o \ + roundl.o \ + scalblnl.o \ + scalbnl.o \ + significandl.o \ + sinhl.o \ + sinl.o \ + sqrtl.o \ + tanhl.o \ + tanl.o \ + tgammal.o \ + truncl.o \ + else + # This list of math functions was taken from POSIX/IEEE 1003.1b-1993 libm_CSRC := \ s_atan.c s_ceil.c s_cos.c \ diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c index 211a2c00b..61940cb12 100644 --- a/libm/ldouble_wrappers.c +++ b/libm/ldouble_wrappers.c @@ -401,11 +401,13 @@ long double nextafterl (long double x, long double y) } #endif -#ifdef L_nexttowardl +/* Disabled in Makefile.in */ +#if 0 /* def L_nexttowardl */ long double nexttowardl (long double x, long double y) { return (long double) nexttoward( (double)x, (double)y ); } +libm_hidden_def(nexttowardl) #endif #ifdef L_powl @@ -492,12 +494,12 @@ long double significandl(long double x) #ifdef __DO_C99_MATH__ -#ifdef L_fpclassifyl +#ifdef L___fpclassifyl int_WRAPPER1(__fpclassify) libm_hidden_def(__fpclassifyl) #endif -#ifdef L_finitel +#ifdef L___finitel int_WRAPPER1(__finite) libm_hidden_def(__finitel) #endif @@ -507,12 +509,12 @@ int_WRAPPER1(__signbit) libm_hidden_def(__signbitl) #endif -#ifdef L_isnanl +#ifdef L___isnanl int_WRAPPER1(__isnan) libm_hidden_def(__isnanl) #endif -#ifdef L_isinfl +#ifdef L___isinfl int_WRAPPER1(__isinf) libm_hidden_def(__isinfl) #endif |