OSDN Git Service

e87ca8742762b70dcef929cae3cb979c41fab75b
[pf3gnuchains/gcc-fork.git] / fixincludes / tests / base / iso / math_c99.h
1 /*  DO NOT EDIT THIS FILE.
2
3     It has been auto-edited by fixincludes from:
4
5         "fixinc/tests/inc/iso/math_c99.h"
6
7     This had to be done to correct non-standard usages in the
8     original, manufacturer supplied header file.  */
9
10
11
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 */
21
22
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 */
28
29
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 */
35
36
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 */
52
53
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 */
63
64
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 */