From 7de4b37ef1574e4311f34c5ea7d268670d7471ef Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 24 May 2008 20:52:00 +0000 Subject: inclhack.def (solaris_math_4): Use GCC's __builtin_fpclassify. * inclhack.def (solaris_math_4): Use GCC's __builtin_fpclassify. * tests/base/iso/math_c99.h: Update. * fixincl.x: Regenerate. From-SVN: r135852 --- fixincludes/tests/base/iso/math_c99.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'fixincludes/tests') diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h index e3b2799..4d9b631 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 */ -- cgit v1.1