From 306a7db8263c217b0e017f84241832f531449849 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 4 Feb 2010 09:26:08 -0800 Subject: libm: enable log2f and exp2f Signed-off-by: Aurelien Jacobs Signed-off-by: Austin Foxley --- libm/Makefile.in | 4 +++- libm/float_wrappers.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'libm') diff --git a/libm/Makefile.in b/libm/Makefile.in index 56b2d76c3..6eb935851 100644 --- a/libm/Makefile.in +++ b/libm/Makefile.in @@ -75,7 +75,7 @@ libm_CSRC := \ 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 +# fdimf.o fmaf.o fmaxf.o fminf.o # nearbyintf.o remquof.o scalblnf.o tgammaf.o FL_MOBJ := \ acosf.o \ @@ -93,6 +93,7 @@ FL_MOBJ := \ coshf.o \ erfcf.o \ erff.o \ + exp2f.o \ expf.o \ expm1f.o \ fabsf.o \ @@ -108,6 +109,7 @@ FL_MOBJ := \ llroundf.o \ log10f.o \ log1pf.o \ + log2f.o \ logbf.o \ logf.o \ lrintf.o \ diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c index 93d56c3c9..e1ab8b57c 100644 --- a/libm/float_wrappers.c +++ b/libm/float_wrappers.c @@ -41,12 +41,10 @@ long long func##f (float x) \ /* For the time being, do _NOT_ implement these functions * that are defined by SuSv3 [why?] */ -#undef L_exp2f /*float exp2f(float);*/ #undef L_fdimf /*float fdimf(float, float);*/ #undef L_fmaf /*float fmaf(float, float, float);*/ #undef L_fmaxf /*float fmaxf(float, float);*/ #undef L_fminf /*float fminf(float, float);*/ -#undef L_log2f /*float log2f(float);*/ #undef L_nearbyintf /*float nearbyintf(float);*/ #undef L_nexttowardf /*float nexttowardf(float, long double);*/ #undef L_remquof /*float remquof(float, float, int *);*/ @@ -70,6 +68,7 @@ float cosf(float); float coshf(float); float erfcf(float); float erff(float); +float exp2f(float); float expf(float); float expm1f(float); float fabsf(float); @@ -83,6 +82,7 @@ float lgammaf(float); long long llroundf(float); float log10f(float); float log1pf(float); +float log2f(float); float logbf(float); float logf(float); long lroundf(float); -- cgit v1.2.3 From 80c1f895b8563714977b90324772558ef0772ea5 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 4 Feb 2010 23:36:29 +0100 Subject: libm: explain why some funcs are not implemented (yet) Signed-off-by: Bernhard Reutner-Fischer --- libm/float_wrappers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libm') diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c index e1ab8b57c..a13aac93a 100644 --- a/libm/float_wrappers.c +++ b/libm/float_wrappers.c @@ -40,7 +40,8 @@ long long func##f (float x) \ /* For the time being, do _NOT_ implement these functions - * that are defined by SuSv3 [why?] */ + * that are defined by SuSv3 [because we don't need them + * and nobody asked to include them] */ #undef L_fdimf /*float fdimf(float, float);*/ #undef L_fmaf /*float fmaf(float, float, float);*/ #undef L_fmaxf /*float fmaxf(float, float);*/ -- cgit v1.2.3