diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-24 20:52:00 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-24 20:52:00 +0000 |
commit | 35fcf4605b31dfa6fc30ef302febe5dede1eb892 (patch) | |
tree | 51eb02b5ead105592be1a27adb6046ca20e87c0c /fixincludes/tests | |
parent | d6ceb52b1a93a0ebe003c21116374877cf5e8d10 (diff) | |
download | gcc-35fcf4605b31dfa6fc30ef302febe5dede1eb892.tar.gz |
* inclhack.def (solaris_math_4): Use GCC's __builtin_fpclassify.
* tests/base/iso/math_c99.h: Update.
* fixincl.x: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/iso/math_c99.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h index e3b27994422..4d9b6311f6d 100644 --- a/fixincludes/tests/base/iso/math_c99.h +++ b/fixincludes/tests/base/iso/math_c99.h @@ -38,16 +38,7 @@ #ident "@(#)math_c99.h 1.9 04/11/01 SMI" #undef fpclassify #define fpclassify(x) \ - __extension__ ({ const __typeof(x) __x_fp = (x); \ - isnan(__x_fp) \ - ? FP_NAN \ - : isinf(__x_fp) \ - ? FP_INFINITE \ - : isnormal(__x_fp) \ - ? FP_NORMAL \ - : __x_fp == 0.0 \ - ? FP_ZERO \ - : FP_SUBNORMAL; }) + __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x)) #endif /* SOLARIS_MATH_4_CHECK */ |