OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [fixincludes/] [tests/] [base/] [iso/] [math_c99.h] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/*  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_5_CHECK )
55
#ident  "@(#)math_c99.h 1.9     04/11/01 SMI"
56
#undef  isfinite
57
#define isfinite(x) \
58
  __extension__ ({ const __typeof (x) __x_f = (x); \
59
                    __builtin_expect(sizeof(__x_f) == sizeof(float) \
60
                          ? islessequal(__builtin_fabsf(__x_f),__FLT_MAX__) \
61
                          : sizeof(__x_f) == sizeof(long double) \
62
                            ? islessequal(__builtin_fabsl(__x_f),__LDBL_MAX__) \
63
                            : islessequal(__builtin_fabs(__x_f),__DBL_MAX__), 1); })
64
#endif  /* SOLARIS_MATH_5_CHECK */
65
 
66
 
67
#if defined( SOLARIS_MATH_6_CHECK )
68
#ident  "@(#)math_c99.h 1.9     04/11/01 SMI"
69
#undef  isinf
70
#define isinf(x) \
71
  __extension__ ({ const __typeof (x) __x_i = (x); \
72
                    __builtin_expect(sizeof(__x_i) == sizeof(float) \
73
                          ? isgreater(__builtin_fabsf(__x_i),__FLT_MAX__) \
74
                          : sizeof(__x_i) == sizeof(long double) \
75
                            ? isgreater(__builtin_fabsl(__x_i),__LDBL_MAX__) \
76
                            : isgreater(__builtin_fabs(__x_i),__DBL_MAX__), 0); })
77
#endif  /* SOLARIS_MATH_6_CHECK */
78
 
79
 
80
#if defined( SOLARIS_MATH_7_CHECK )
81
#ident  "@(#)math_c99.h 1.9     04/11/01 SMI"
82
#undef  isnormal
83
#define isnormal(x) \
84
  __extension__ ({ const __typeof(x) __x_n = (x); \
85
                   __builtin_expect(isfinite(__x_n) \
86
                                    && (sizeof(__x_n) == sizeof(float) \
87
                                          ? isgreaterequal(__builtin_fabsf(__x_n),__FLT_MIN__) \
88
                                          : sizeof(__x_n) == sizeof(long double) \
89
                                            ? isgreaterequal(__builtin_fabsl(__x_n),__LDBL_MIN__) \
90
                                            : isgreaterequal(__builtin_fabs(__x_n),__DBL_MIN__)), 1); })
91
#endif  /* SOLARIS_MATH_7_CHECK */
92
 
93
 
94
#if defined( SOLARIS_MATH_8_CHECK )
95
#ident  "@(#)math_c99.h 1.9     04/11/01 SMI"
96
#undef  signbit
97
#define signbit(x)      (sizeof(x) == sizeof(float) \
98
                           ? __builtin_signbitf(x) \
99
                           : sizeof(x) == sizeof(long double) \
100
                             ? __builtin_signbitl(x) \
101
                             : __builtin_signbit(x))
102
#endif  /* SOLARIS_MATH_8_CHECK */
103
 
104
 
105
#if defined( SOLARIS_MATH_9_CHECK )
106
#ident  "@(#)math_c99.h 1.9     04/11/01 SMI"
107
#undef  isgreater
108
#define isgreater(x, y)         __builtin_isgreater(x, y)
109
#undef  isgreaterequal
110
#define isgreaterequal(x, y)    __builtin_isgreaterequal(x, y)
111
#undef  isless
112
#define isless(x, y)            __builtin_isless(x, y)
113
#undef  islessequal
114
#define islessequal(x, y)       __builtin_islessequal(x, y)
115
#undef  islessgreater
116
#define islessgreater(x, y)     __builtin_islessgreater(x, y)
117
#undef  isunordered
118
#define isunordered(x, y)       __builtin_isunordered(x, y)
119
#endif  /* SOLARIS_MATH_9_CHECK */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.