From dc57f70a80411608fee719971cc758a00a8eab63 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 6 Nov 2011 13:52:30 +0100 Subject: ldexp, ldexpf, ldexpl: Enhance tests. * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c and tests/test-ldexpl.c. * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (main): Just call test_function. * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h, infinity.h, nan.h. (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (x, y): Remove variables. (main): Just call test_function. * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h, infinity.h, nan.h. (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (x, y): Remove variables. (main): Just call test_function. * modules/ldexpl-tests (Files): Add tests/test-ldexp.h. * modules/ldexp-tests (Files): Add tests/test-ldexp.h, tests/minus-zero.h, tests/infinity.h, tests/nan.h. (Depends-on): Add isnand-nolibm, signbit, float. * modules/ldexpf-tests (Files): Add tests/test-ldexp.h, tests/minus-zero.h, tests/infinity.h, tests/nan.h. (Depends-on): Add isnanf-nolibm, signbit, float. --- modules/ldexp-tests | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/ldexp-tests') diff --git a/modules/ldexp-tests b/modules/ldexp-tests index e5d796cb1c..bd252cf505 100644 --- a/modules/ldexp-tests +++ b/modules/ldexp-tests @@ -1,9 +1,16 @@ Files: tests/test-ldexp.c +tests/test-ldexp.h +tests/minus-zero.h +tests/infinity.h +tests/nan.h tests/signature.h tests/macros.h Depends-on: +isnand-nolibm +signbit +float configure.ac: -- cgit v1.2.1