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"
15 #define HUGE_VAL (__builtin_huge_val())
17 #define HUGE_VALF (__builtin_huge_valf())
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"
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"
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"
40 #define fpclassify(x) \
41 __extension__ ({ const __typeof(x) __x_fp = (x); \
51 #endif /* SOLARIS_MATH_4_CHECK */
54 #if defined( SOLARIS_MATH_8_CHECK )
55 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
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"
68 #define isgreater(x, y) __builtin_isgreater(x, y)
70 #define isgreaterequal(x, y) __builtin_isgreaterequal(x, y)
72 #define isless(x, y) __builtin_isless(x, y)
74 #define islessequal(x, y) __builtin_islessequal(x, y)
76 #define islessgreater(x, y) __builtin_islessgreater(x, y)
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"
85 #define isinf(x) __builtin_isinf(x)
86 #endif /* SOLARIS_MATH_10_CHECK */