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_10_CHECK )
24 #pragma ident "@(#)math_c99.h 1.12 07/01/21 SMI"
26 #define isinf(x) __builtin_isinf(x)
27 #endif /* SOLARIS_MATH_10_CHECK */
30 #if defined( SOLARIS_MATH_2_CHECK )
31 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
33 #define INFINITY (__builtin_inff())
34 #endif /* SOLARIS_MATH_2_CHECK */
37 #if defined( SOLARIS_MATH_3_CHECK )
38 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
40 #define NAN (__builtin_nanf(""))
41 #endif /* SOLARIS_MATH_3_CHECK */
44 #if defined( SOLARIS_MATH_4_CHECK )
45 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
47 #define fpclassify(x) \
48 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))
49 #endif /* SOLARIS_MATH_4_CHECK */
52 #if defined( SOLARIS_MATH_8_CHECK )
53 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
55 #define signbit(x) (sizeof(x) == sizeof(float) \
56 ? __builtin_signbitf(x) \
57 : sizeof(x) == sizeof(long double) \
58 ? __builtin_signbitl(x) \
59 : __builtin_signbit(x))
60 #endif /* SOLARIS_MATH_8_CHECK */
63 #if defined( SOLARIS_MATH_9_CHECK )
64 #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
66 #define isgreater(x, y) __builtin_isgreater(x, y)
68 #define isgreaterequal(x, y) __builtin_isgreaterequal(x, y)
70 #define isless(x, y) __builtin_isless(x, y)
72 #define islessequal(x, y) __builtin_islessequal(x, y)
74 #define islessgreater(x, y) __builtin_islessgreater(x, y)
76 #define isunordered(x, y) __builtin_isunordered(x, y)
77 #endif /* SOLARIS_MATH_9_CHECK */
80 #if defined( SOLARIS_MATH_11_CHECK )
81 /* @(#)math_c99.h 1.14 13/03/27 */
83 #define signbit(x) (sizeof(x) == sizeof(float) \
84 ? __builtin_signbitf(x) \
85 : sizeof(x) == sizeof(long double) \
86 ? __builtin_signbitl(x) \
87 : __builtin_signbit(x))
88 #endif /* SOLARIS_MATH_11_CHECK */