summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-02-05 22:40:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-02-05 22:40:03 +0000
commitfe41011818d8863cbc1250a51fd22b95683b50bb (patch)
tree1cc4fbcb5047c1b8628c0cf84f2dbb6e2a62837a
parentbd1a0339226e72391d204b30ed5df03561957b40 (diff)
libm: add scalbf, gammaf, significandf wrappers.
This makes in possible to enable test/math (not it compiles, but has lots of test failures).
-rw-r--r--libm/Makefile.in2
-rw-r--r--libm/float_wrappers.c22
-rw-r--r--test/Makefile1
3 files changed, 22 insertions, 3 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index e4df83b48..58e420bf4 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -78,7 +78,7 @@ FL_MOBJ := \
log1pf.o log2f.o logbf.o logf.o lrintf.o lroundf.o modff.o nearbyintf.o \
nextafterf.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
+ 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 \
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
diff --git a/test/Makefile b/test/Makefile
index 728845bdf..7be373e89 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -38,7 +38,6 @@ endif
ifeq ($(HAS_NO_THREADS),y)
DIRS := $(filter-out pthread,$(DIRS))
endif
-DIRS := $(filter-out math,$(DIRS))
test check all: run