1 // Symbols and macros for libstdc++ -*- C++ -*-
3 // Define if <float.h> exists.
8 // Define symbol versioning in assember directives. If symbol
9 // versioning is beigng used, and the assembler supports this kind of
10 // thing, then use it.
11 // NB: _GLIBCXX_AT_AT is a hack to work around quoting issues in m4.
13 #define _GLIBCXX_ASM_SYMVER(cur, old, version) \
14 asm (".symver " #cur "," #old _GLIBCXX_AT_AT #version);
16 #define _GLIBCXX_ASM_SYMVER(cur, old, version)
19 // Systems that have certain non-standard functions prefixed with an
20 // underscore, we'll handle those here. Must come after config.h.in.
22 #if defined (HAVE__ISNAN) && ! defined (HAVE_ISNAN)
27 #if defined (HAVE__ISNANF) && ! defined (HAVE_ISNANF)
28 # define HAVE_ISNANF 1
29 # define isnanf _isnanf
32 #if defined (HAVE__ISNANL) && ! defined (HAVE_ISNANL)
33 # define HAVE_ISNANL 1
34 # define isnanl _isnanl
37 #if defined (HAVE__ISINF) && ! defined (HAVE_ISINF)
42 #if defined (HAVE__ISINFF) && ! defined (HAVE_ISINFF)
43 # define HAVE_ISINFF 1
44 # define isinff _isinff
47 #if defined (HAVE__ISINFL) && ! defined (HAVE_ISINFL)
48 # define HAVE_ISINFL 1
49 # define isinfl _isinfl
52 #if defined (HAVE__COPYSIGN) && ! defined (HAVE_COPYSIGN)
53 # define HAVE_COPYSIGN 1
54 # define copysign _copysign
57 #if defined (HAVE__COPYSIGNL) && ! defined (HAVE_COPYSIGNL)
58 # define HAVE_COPYSIGNL 1
59 # define copysignl _copysignl
62 #if defined (HAVE__COSF) && ! defined (HAVE_COSF)
67 #if defined (HAVE__ACOSF) && ! defined (HAVE_ACOSF)
72 #if defined (HAVE__ACOSL) && ! defined (HAVE_ACOSL)
77 #if defined (HAVE__ASINF) && ! defined (HAVE_ASINF)
82 #if defined (HAVE__ASINL) && ! defined (HAVE_ASINL)
87 #if defined (HAVE__ATANF) && ! defined (HAVE_ATANF)
92 #if defined (HAVE__ATANL) && ! defined (HAVE_ATANL)
97 #if defined (HAVE__CEILF) && ! defined (HAVE_CEILF)
102 #if defined (HAVE__CEILL) && ! defined (HAVE_CEILL)
103 # define HAVE_CEILL 1
104 # define aceil _ceill
107 #if defined (HAVE__COSHF) && ! defined (HAVE_COSHF)
108 # define HAVE_COSHF 1
109 # define coshf _coshf
112 #if defined (HAVE__COSL) && ! defined (HAVE_COSL)
117 #if defined (HAVE__LOGF) && ! defined (HAVE_LOGF)
122 #if defined (HAVE__COSHL) && ! defined (HAVE_COSHL)
123 # define HAVE_COSHL 1
124 # define coshl _coshl
127 #if defined (HAVE__EXPF) && ! defined (HAVE_EXPF)
132 #if defined (HAVE__EXPL) && ! defined (HAVE_EXPL)
137 #if defined (HAVE__FABSF) && ! defined (HAVE_FABSF)
138 # define HAVE_FABSF 1
139 # define fabsf _fabsf
142 #if defined (HAVE__FABSL) && ! defined (HAVE_FABSL)
143 # define HAVE_FABSL 1
144 # define fabsl _fabsl
147 #if defined (HAVE__FLOORF) && ! defined (HAVE_FLOORF)
148 # define HAVE_FLOORF 1
149 # define floorf _floorf
152 #if defined (HAVE__FLOORL) && ! defined (HAVE_FLOORL)
153 # define HAVE_FLOORL 1
154 # define floorl _floorl
157 #if defined (HAVE__FMODF) && ! defined (HAVE_FMODF)
158 # define HAVE_FMODF 1
159 # define fmodf _fmodf
162 #if defined (HAVE__FMODL) && ! defined (HAVE_FMODL)
163 # define HAVE_FMODL 1
164 # define fmodl _fmodl
167 #if defined (HAVE__FREXPF) && ! defined (HAVE_FREXPF)
168 # define HAVE_FREXPF 1
169 # define frexpf _frexpf
172 #if defined (HAVE__FREXPL) && ! defined (HAVE_FREXPL)
173 # define HAVE_FREXPL 1
174 # define frexpl _frexpl
177 #if defined (HAVE__LDEXPF) && ! defined (HAVE_LDEXPF)
178 # define HAVE_LDEXPF 1
179 # define ldexpf _ldexpf
182 #if defined (HAVE__LDEXPL) && ! defined (HAVE_LDEXPL)
183 # define HAVE_LDEXPL 1
184 # define ldexpl _ldexpl
187 #if defined (HAVE__LOG10F) && ! defined (HAVE_LOG10F)
188 # define HAVE_LOG10F 1
189 # define log10f _log10f
192 #if defined (HAVE__LOGL) && ! defined (HAVE_LOGL)
197 #if defined (HAVE__POWF) && ! defined (HAVE_POWF)
202 #if defined (HAVE__LOG10L) && ! defined (HAVE_LOG10L)
203 # define HAVE_LOG10L 1
204 # define log10l _log10l
207 #if defined (HAVE__MODF) && ! defined (HAVE_MODF)
212 #if defined (HAVE__MODL) && ! defined (HAVE_MODL)
217 #if defined (HAVE__SINF) && ! defined (HAVE_SINF)
222 #if defined (HAVE__POWL) && ! defined (HAVE_POWL)
227 #if defined (HAVE__SINHF) && ! defined (HAVE_SINHF)
228 # define HAVE_SINHF 1
229 # define sinhf _sinhf
232 #if defined (HAVE__SINL) && ! defined (HAVE_SINL)
237 #if defined (HAVE__SQRTF) && ! defined (HAVE_SQRTF)
238 # define HAVE_SQRTF 1
239 # define sqrtf _sqrtf
242 #if defined (HAVE__SINHL) && ! defined (HAVE_SINHL)
243 # define HAVE_SINHL 1
244 # define sinhl _sinhl
247 #if defined (HAVE__TANF) && ! defined (HAVE_TANF)
252 #if defined (HAVE__SQRTL) && ! defined (HAVE_SQRTL)
253 # define HAVE_SQRTL 1
254 # define sqrtl _sqrtl
257 #if defined (HAVE__TANHF) && ! defined (HAVE_TANHF)
258 # define HAVE_TANHF 1
259 # define tanhf _tanhf
262 #if defined (HAVE__TANL) && ! defined (HAVE_TANL)
267 #if defined (HAVE__STRTOF) && ! defined (HAVE_STRTOF)
268 # define HAVE_STRTOF 1
269 # define strtof _strtof
272 #if defined (HAVE__TANHL) && ! defined (HAVE_TANHL)
273 # define HAVE_TANHL 1
274 # define tanhl _tanhl
277 #if defined (HAVE__STRTOLD) && ! defined (HAVE_STRTOLD)
278 # define HAVE_STRTOLD 1
279 # define strtold _strtold
282 #if defined (HAVE__SINCOS) && ! defined (HAVE_SINCOS)
283 # define HAVE_SINCOS 1
284 # define sincos _sincos
287 #if defined (HAVE__SINCOSF) && ! defined (HAVE_SINCOSF)
288 # define HAVE_SINCOSF 1
289 # define sincosf _sincosf
292 #if defined (HAVE__SINCOSL) && ! defined (HAVE_SINCOSL)
293 # define HAVE_SINCOSL 1
294 # define sincosl _sincosl
297 #if defined (HAVE__FINITE) && ! defined (HAVE_FINITE)
298 # define HAVE_FINITE 1
299 # define finite _finite
302 #if defined (HAVE__FINITEF) && ! defined (HAVE_FINITEF)
303 # define HAVE_FINITEF 1
304 # define finitef _finitef
307 #if defined (HAVE__FINITEL) && ! defined (HAVE_FINITEL)
308 # define HAVE_FINITEL 1
309 # define finitel _finitel
312 #if defined (HAVE__QFINITE) && ! defined (HAVE_QFINITE)
313 # define HAVE_QFINITE 1
314 # define qfinite _qfinite
317 #if defined (HAVE__FPCLASS) && ! defined (HAVE_FPCLASS)
318 # define HAVE_FPCLASS 1
319 # define fpclass _fpclass
322 #if defined (HAVE__QFPCLASS) && ! defined (HAVE_QFPCLASS)
323 # define HAVE_QFPCLASS 1
324 # define qfpclass _qfpclass