UUID stuff from Ryan Raasch
[cegcc.git] / cegcc / src / gcc-4.3.2 / fixincludes / tests / base / iso / math_c99.h
blobe3b279944228fec1b7320bbe3aec375668160939
1 /* DO NOT EDIT THIS FILE.
3 It has been auto-edited by fixincludes from:
5 "fixinc/tests/inc/iso/math_c99.h"
7 This had to be done to correct non-standard usages in the
8 original, manufacturer supplied header file. */
12 #if defined( SOLARIS_MATH_1_CHECK )
13 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
14 #undef HUGE_VAL
15 #define HUGE_VAL (__builtin_huge_val())
16 #undef HUGE_VALF
17 #define HUGE_VALF (__builtin_huge_valf())
18 #undef HUGE_VALL
19 #define HUGE_VALL (__builtin_huge_vall())
20 #endif /* SOLARIS_MATH_1_CHECK */
23 #if defined( SOLARIS_MATH_2_CHECK )
24 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
25 #undef INFINITY
26 #define INFINITY (__builtin_inff())
27 #endif /* SOLARIS_MATH_2_CHECK */
30 #if defined( SOLARIS_MATH_3_CHECK )
31 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
32 #undef NAN
33 #define NAN (__builtin_nanf(""))
34 #endif /* SOLARIS_MATH_3_CHECK */
37 #if defined( SOLARIS_MATH_4_CHECK )
38 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
39 #undef fpclassify
40 #define fpclassify(x) \
41 __extension__ ({ const __typeof(x) __x_fp = (x); \
42 isnan(__x_fp) \
43 ? FP_NAN \
44 : isinf(__x_fp) \
45 ? FP_INFINITE \
46 : isnormal(__x_fp) \
47 ? FP_NORMAL \
48 : __x_fp == 0.0 \
49 ? FP_ZERO \
50 : FP_SUBNORMAL; })
51 #endif /* SOLARIS_MATH_4_CHECK */
54 #if defined( SOLARIS_MATH_8_CHECK )
55 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
56 #undef signbit
57 #define signbit(x) (sizeof(x) == sizeof(float) \
58 ? __builtin_signbitf(x) \
59 : sizeof(x) == sizeof(long double) \
60 ? __builtin_signbitl(x) \
61 : __builtin_signbit(x))
62 #endif /* SOLARIS_MATH_8_CHECK */
65 #if defined( SOLARIS_MATH_9_CHECK )
66 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
67 #undef isgreater
68 #define isgreater(x, y) __builtin_isgreater(x, y)
69 #undef isgreaterequal
70 #define isgreaterequal(x, y) __builtin_isgreaterequal(x, y)
71 #undef isless
72 #define isless(x, y) __builtin_isless(x, y)
73 #undef islessequal
74 #define islessequal(x, y) __builtin_islessequal(x, y)
75 #undef islessgreater
76 #define islessgreater(x, y) __builtin_islessgreater(x, y)
77 #undef isunordered
78 #define isunordered(x, y) __builtin_isunordered(x, y)
79 #endif /* SOLARIS_MATH_9_CHECK */
82 #if defined( SOLARIS_MATH_10_CHECK )
83 #pragma ident "@(#)math_c99.h 1.12 07/01/21 SMI"
84 #undef isinf
85 #define isinf(x) __builtin_isinf(x)
86 #endif /* SOLARIS_MATH_10_CHECK */