diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-05 22:40:23 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-05 22:40:23 +0000 |
| commit | 039c0956e14487405a87344a37297b21db6bc049 (patch) | |
| tree | 480e3ca5b4b61f905724c62ba2816a576930f135 /libm/float_wrappers.c | |
| parent | 016d9e668f090e6bc3f2cdcb3c1b5d12b9a1c1a2 (diff) | |
| download | uClibc-alpine-039c0956e14487405a87344a37297b21db6bc049.tar.bz2 uClibc-alpine-039c0956e14487405a87344a37297b21db6bc049.tar.xz | |
libm: add scalbf, gammaf, significandf wrappers.
This makes in possible to enable test/math
(not it compiles, but has lots of test failures).
Diffstat (limited to 'libm/float_wrappers.c')
| -rw-r--r-- | libm/float_wrappers.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c index 36efcfbea..6bdec8eeb 100644 --- a/libm/float_wrappers.c +++ b/libm/float_wrappers.c @@ -77,7 +77,6 @@ float tanf(float); float tanhf(float); #endif - #ifdef L_acosf float acosf (float x) { @@ -543,3 +542,24 @@ float fmaf (float x, float y, float z) return (float) fma( (double)x, (double)y, (double)z ); } #endif + +#ifdef L_scalbf +float scalbf (float x, float y) +{ + return (float) scalb( (double)x, (double)y ); +} +#endif + +#ifdef L_gammaf +float gammaf (float x) +{ + return (float) gamma( (double)x ); +} +#endif + +#ifdef L_significandf +float significandf (float x) +{ + return (float) significand( (double)x ); +} +#endif |
