1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _TGMATH_H
#define _TGMATH_H
#if !defined(__cplusplus)
#include <math.h>
#include <complex.h>
/*
* real-floating and complex
*/
#undef acos
#define acos(x) __tgmath_acos(x)
#undef asin
#define asin(x) __tgmath_asin(x)
#undef atan
#define atan(x) __tgmath_atan(x)
#undef acosh
#define acosh(x) __tgmath_acosh(x)
#undef asinh
#define asinh(x) __tgmath_asinh(x)
#undef atanh
#define atanh(x) __tgmath_atanh(x)
#undef cos
#define cos(x) __tgmath_cos(x)
#undef sin
#define sin(x) __tgmath_sin(x)
#undef tan
#define tan(x) __tgmath_tan(x)
#undef cosh
#define cosh(x) __tgmath_cosh(x)
#undef sinh
#define sinh(x) __tgmath_sinh(x)
#undef tanh
#define tanh(x) __tgmath_tanh(x)
#undef exp
#define exp(x) __tgmath_exp(x)
#undef log
#define log(x) __tgmath_log(x)
#undef pow
#define pow(x, y) __tgmath_pow(x, y)
#undef sqrt
#define sqrt(x) __tgmath_sqrt(x)
#undef fabs
#define fabs(x) __tgmath_fabs(x)
/*
* real-floating only
*/
#undef atan2
#define atan2(y, x) __tgmath_atan2(y, x)
#undef cbrt
#define cbrt(x) __tgmath_cbrt(x)
#undef ceil
#define ceil(x) __tgmath_ceil(x)
#undef copysign
#define copysign(x, y) __tgmath_copysign(x, y)
#undef erf
#define erf(x) __tgmath_erf(x)
#undef erfc
#define erfc(x) __tgmath_erfc(x)
#undef exp2
#define exp2(x) __tgmath_exp2(x)
#undef expm1
#define expm1(x) __tgmath_expm1(x)
#undef fdim
#define fdim(x, y) __tgmath_fdim(x, y)
#undef floor
#define floor(x) __tgmath_floor(x)
#undef fma
#define fma(x, y, z) __tgmath_fma(x, y, z)
#undef fmax
#define fmax(x, y) __tgmath_fmax(x, y)
#undef fmin
#define fmin(x, y) __tgmath_fmin(x, y)
#undef fmod
#define fmod(x, y) __tgmath_fmod(x, y)
#undef frexp
#define frexp(x, ip) __tgmath_frexp(x, ip)
#undef hypot
#define hypot(x, y) __tgmath_hypot(x, y)
#undef ilogb
#define ilogb(x) __tgmath_ilogb(x)
#undef ldexp
#define ldexp(x, i) __tgmath_ldexp(x, i)
#undef lgamma
#define lgamma(x) __tgmath_lgamma(x)
#undef llrint
#define llrint(x) __tgmath_llrint(x)
#undef llround
#define llround(x) __tgmath_llround(x)
#undef log10
#define log10(x) __tgmath_log10(x)
#undef log1p
#define log1p(x) __tgmath_log1p(x)
#undef log2
#define log2(x) __tgmath_log2(x)
#undef logb
#define logb(x) __tgmath_logb(x)
#undef lrint
#define lrint(x) __tgmath_lrint(x)
#undef lround
#define lround(x) __tgmath_lround(x)
#undef nearbyint
#define nearbyint(x) __tgmath_nearbyint(x)
#undef nextafter
#define nextafter(x, y) __tgmath_nextafter(x, y)
#undef nexttoward
#define nexttoward(x, y) __tgmath_nexttoward(x, y)
#undef remainder
#define remainder(x, y) __tgmath_remainder(x, y)
#undef remquo
#define remquo(x, y, ip) __tgmath_remquo(x, y, ip)
#undef rint
#define rint(x) __tgmath_rint(x)
#undef round
#define round(x) __tgmath_round(x)
#undef scalbln
#define scalbln(x, l) __tgmath_scalbln(x, l)
#undef scalbn
#define scalbn(x, i) __tgmath_scalbn(x, i)
#undef tgamma
#define tgamma(x) __tgmath_tgamma(x)
#undef trunc
#define trunc(x) __tgmath_trunc(x)
/*
* complex only
*/
#undef carg
#define carg(x) __tgmath_carg(x)
#undef cimag
#define cimag(x) __tgmath_cimag(x)
#undef conj
#define conj(x) __tgmath_conj(x)
#undef cproj
#define cproj(x) __tgmath_cproj(x)
#undef creal
#define creal(x) __tgmath_creal(x)
#endif /* !defined(__cplusplus) */
#endif /* _TGMATH_H */
|