[git commit master] test/math: put scalbf test under susv3 legacy define

Austin Foxley austinf at cetoncorp.com
Sun Dec 27 20:13:52 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=e949d522a31db675889bc87b6023e7edb6b30caa
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 test/math/compile_test.c |    2 ++
 test/math/libm-test.inc  |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/math/compile_test.c b/test/math/compile_test.c
index 361556a..6148885 100644
--- a/test/math/compile_test.c
+++ b/test/math/compile_test.c
@@ -51,7 +51,9 @@ r += remainderf(float_x, float_x);
 /*r += remquof(float_x, float_x, &int_x); - uclibc does not have it (yet?) */
 r += rintf(float_x);
 r += roundf(float_x);
+#ifdef __UCLIBC_SUSV3_LEGACY__
 r += scalbf(float_x, float_x);
+#endif
 /*r += scalblnf(float_x, long_x); - uclibc does not have it (yet?) */
 r += scalbnf(float_x, int_x);
 r += significandf(float_x);
diff --git a/test/math/libm-test.inc b/test/math/libm-test.inc
index 37ebd3c..4570bcc 100644
--- a/test/math/libm-test.inc
+++ b/test/math/libm-test.inc
@@ -4233,6 +4233,7 @@ scalb_test (void)
 {
   START (scalb);
 #ifndef TEST_LDOUBLE /* uclibc doesn't have scalbl */
+#ifdef __UCLIBC_SUSV3_LEGACY__ /* scalbf is susv3 legacy */
 
   TEST_ff_f (scalb, 2.0, 0.5, nan_value, INVALID_EXCEPTION);
   TEST_ff_f (scalb, 3.0, -2.5, nan_value, INVALID_EXCEPTION);
@@ -4283,7 +4284,8 @@ scalb_test (void)
 
   TEST_ff_f (scalb, 0.8L, 4, 12.8L);
   TEST_ff_f (scalb, -0.854375L, 5, -27.34L);
-#endif
+#endif /* __UCLIBC_SUSV3_LEGACY__ */
+#endif /* TEST_LDOUBLE */
   END (scalb);
 }
 
-- 
1.6.3.3



More information about the uClibc-cvs mailing list