diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-05-18 12:12:38 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-05-18 12:12:38 +0000 |
commit | 2ee094ff7524637304a00fcd25e1d3c9939a1fe5 (patch) | |
tree | be4af3670613bc6847b71d53c44ee09b099b3f09 /math | |
parent | 3779b5b64a7fd0366d66c76992296fa2cdd2bbf6 (diff) | |
download | glibc-2ee094ff7524637304a00fcd25e1d3c9939a1fe5.tar.gz glibc-2ee094ff7524637304a00fcd25e1d3c9939a1fe5.tar.xz glibc-2ee094ff7524637304a00fcd25e1d3c9939a1fe5.zip |
Don't disable CMPLXL macro for __NO_LONG_DOUBLE_MATH (bug 15488).
Diffstat (limited to 'math')
-rw-r--r-- | math/complex.h | 4 | ||||
-rw-r--r-- | math/tst-CMPLX.c | 2 | ||||
-rw-r--r-- | math/tst-CMPLX2.c | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/math/complex.h b/math/complex.h index 5bdcc93f9f..82c7962feb 100644 --- a/math/complex.h +++ b/math/complex.h @@ -52,9 +52,7 @@ __BEGIN_DECLS /* Macros to expand into expression of specified complex type. */ # define CMPLX(x, y) __builtin_complex ((double) (x), (double) (y)) # define CMPLXF(x, y) __builtin_complex ((float) (x), (float) (y)) -# ifndef __NO_LONG_DOUBLE_MATH -# define CMPLXL(x, y) __builtin_complex ((long double) (x), (long double) (y)) -# endif +# define CMPLXL(x, y) __builtin_complex ((long double) (x), (long double) (y)) #endif /* The file <bits/cmathcalls.h> contains the prototypes for all the diff --git a/math/tst-CMPLX.c b/math/tst-CMPLX.c index 5e9a501a55..fa0747b991 100644 --- a/math/tst-CMPLX.c +++ b/math/tst-CMPLX.c @@ -45,9 +45,7 @@ CMPLX (" #r ", " #i ") does not produce complex " #t ": %zu\n", s); \ C (CMPLXF, float); C (CMPLX, double); -# ifndef NO_LONG_DOUBLE C (CMPLXL, long double); -# endif #endif return result; diff --git a/math/tst-CMPLX2.c b/math/tst-CMPLX2.c index 4b62f8857e..195ea7a848 100644 --- a/math/tst-CMPLX2.c +++ b/math/tst-CMPLX2.c @@ -120,14 +120,12 @@ check_double (void) double, comparec, CMPLX); } -# ifndef NO_LONG_DOUBLE static void check_long_double (void) { ALL_CHECKS (0.0l, -0.0l, __builtin_nanl (""), __builtin_infl (), long double, comparecl, CMPLXL); } -# endif #endif static int @@ -136,9 +134,7 @@ do_test (void) #ifdef CMPLX check_float (); check_double (); -# ifndef NO_LONG_DOUBLE check_long_double (); -# endif #endif return result; |