diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-28 10:50:15 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-28 10:50:15 (GMT) |
commit | ca9b06fbe64f25f0b983cb1ddd85962cfbf38a17 (patch) | |
tree | b8c29195cd9f7d1b316690bf21c8a4b0fc5fac2b /patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch | |
parent | 6d53a561b2a482c1ae1de24310e0bffe490861df (diff) |
libc/uClibc: vampirise patches for 0.9.30.2 from builroot
Commit in upstream buildroot:
http://git.buildroot.org/buildroot/commit/?id=43ffd946ad569f3a1d0662de221cd4cb65bdc8e6
Everything on the 0_9_30 branch since the release (0.9.30.3 to be)
Diffstat (limited to 'patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch')
-rw-r--r-- | patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch b/patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch new file mode 100644 index 0000000..3b43356 --- /dev/null +++ b/patches/uClibc/0.9.30.2/260-libm-enable-log2f-and-exp2f.patch @@ -0,0 +1,70 @@ +From 956a0087e282e53ba9c085dbbc469391f7234944 Mon Sep 17 00:00:00 2001 +From: Aurelien Jacobs <aurel@gnuage.org> +Date: Thu, 4 Feb 2010 09:31:40 -0800 +Subject: [PATCH 10/15] libm: enable log2f and exp2f + +Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> +Signed-off-by: Austin Foxley <austinf@cetoncorp.com> +--- + libm/float_wrappers.c | 4 ++-- + test/math/compile_test.c | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c +index dc315e7..b7317a1 100644 +--- a/libm/float_wrappers.c ++++ b/libm/float_wrappers.c +@@ -15,12 +15,10 @@ + + /* For the time being, do _NOT_ implement these functions + * that are defined by SuSv3 */ +-#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 *);*/ +@@ -43,6 +41,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); +@@ -56,6 +55,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); +diff --git a/test/math/compile_test.c b/test/math/compile_test.c +index 9990520..ee5e2e3 100644 +--- a/test/math/compile_test.c ++++ b/test/math/compile_test.c +@@ -18,7 +18,7 @@ r += cosf(float_x); + r += coshf(float_x); + r += erfcf(float_x); + r += erff(float_x); +-/*r += exp2f(float_x); - uclibc does not have it (yet?) */ ++r += exp2f(float_x); + r += expf(float_x); + r += expm1f(float_x); + r += fabsf(float_x); +@@ -38,7 +38,7 @@ r += llrintf(float_x); + r += llroundf(float_x); + r += log10f(float_x); + r += log1pf(float_x); +-/*r += log2f(float_x); - uclibc does not have it (yet?) */ ++r += log2f(float_x); + r += logbf(float_x); + r += logf(float_x); + r += lrintf(float_x); +-- +1.6.6.1 + |