Debian Codegraph @

lib/math.in.h

raw symbols SCIP
1 /* A GNU-like <math.h>.
2
3 Copyright (C) 2002-2003, 2007-2023 Free Software Foundation, Inc.
4
5 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) any later version.
9
10 This file is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17
18 /* On Android, in C++ mode, when /usr/include/c++/v1/math.h is being included
19 and /usr/include/math.h has not yet been included, skip this file, since it
20 would lead to many syntax errors. */
21 #if !(defined __ANDROID__ && defined _LIBCPP_MATH_H && !defined INFINITY)
22
23 #ifndef _@GUARD_PREFIX@_MATH_H
24
25 #if __GNUC__ >= 3
26 @PRAGMA_SYSTEM_HEADER@
27 #endif
28 @PRAGMA_COLUMNS@
29
30 #if defined _GL_INCLUDING_MATH_H
31 /* Special invocation convention:
32 - On FreeBSD 12.2 we have a sequence of nested includes
33 <math.h> -> <stdlib.h> -> <sys/wait.h> -> <sys/types.h> -> <sys/select.h>
34 -> <signal.h> -> <pthread.h> -> <stdlib.h> -> <math.h>
35 In this situation, the functions are not yet declared, therefore we cannot
36 provide the C++ aliases. */
37
38 #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MATH_H@
39
40 #else
41 /* Normal invocation convention. */
42
43 /* The include_next requires a split double-inclusion guard. */
44 #define _GL_INCLUDING_MATH_H
45 #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MATH_H@
46 #undef _GL_INCLUDING_MATH_H
47
48 #ifndef _@GUARD_PREFIX@_MATH_H
49 #define _@GUARD_PREFIX@_MATH_H
50
51 /* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>. */
52 #if defined __VMS && ! defined NAN
53 # include <fp.h>
54 #endif
55
56 #ifndef _GL_INLINE_HEADER_BEGIN
57 #error "Please include config.h first."
58 #endif
59 _GL_INLINE_HEADER_BEGIN
60 #ifndef _GL_MATH_INLINE
61 # define _GL_MATH_INLINE _GL_INLINE
62 #endif
63
64 /* The __attribute__ feature is available in gcc versions 2.5 and later.
65 The attribute __const__ was added in gcc 2.95. */
66 #ifndef _GL_ATTRIBUTE_CONST
67 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || defined __clang__
68 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
69 # else
70 # define _GL_ATTRIBUTE_CONST /* empty */
71 # endif
72 #endif
73
74 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
75
76 /* The definition of _GL_ARG_NONNULL is copied here. */
77
78 /* The definition of _GL_WARN_ON_USE is copied here. */
79
80 #ifdef __cplusplus
81 /* Helper macros to define type-generic function FUNC as overloaded functions,
82 rather than as macros like in C. POSIX declares these with an argument of
83 real-floating (that is, one of float, double, or long double). */
84 # define _GL_MATH_CXX_REAL_FLOATING_DECL_1(func) \
85 static inline int \
86 _gl_cxx_ ## func ## f (float f) \
87 { \
88 return func (f); \
89 } \
90 static inline int \
91 _gl_cxx_ ## func ## d (double d) \
92 { \
93 return func (d); \
94 } \
95 static inline int \
96 _gl_cxx_ ## func ## l (long double l) \
97 { \
98 return func (l); \
99 }
100 # define _GL_MATH_CXX_REAL_FLOATING_DECL_2(func,rpl_func,rettype) \
101 _GL_BEGIN_NAMESPACE \
102 inline rettype \
103 rpl_func (float f) \
104 { \
105 return _gl_cxx_ ## func ## f (f); \
106 } \
107 inline rettype \
108 rpl_func (double d) \
109 { \
110 return _gl_cxx_ ## func ## d (d); \
111 } \
112 inline rettype \
113 rpl_func (long double l) \
114 { \
115 return _gl_cxx_ ## func ## l (l); \
116 } \
117 _GL_END_NAMESPACE
118 #endif
119
120 /* Helper macros to define a portability warning for the
121 classification macro FUNC called with VALUE. POSIX declares the
122 classification macros with an argument of real-floating (that is,
123 one of float, double, or long double). */
124 #define _GL_WARN_REAL_FLOATING_DECL(func) \
125 _GL_MATH_INLINE int \
126 _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - " \
127 "use gnulib module " #func " for portability") \
128 rpl_ ## func ## f (float f) \
129 { \
130 return func (f); \
131 } \
132 _GL_MATH_INLINE int \
133 _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - " \
134 "use gnulib module " #func " for portability") \
135 rpl_ ## func ## d (double d) \
136 { \
137 return func (d); \
138 } \
139 _GL_MATH_INLINE int \
140 _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - " \
141 "use gnulib module " #func " for portability") \
142 rpl_ ## func ## l (long double l) \
143 { \
144 return func (l); \
145 }
146 #define _GL_WARN_REAL_FLOATING_IMPL(func, value) \
147 (sizeof (value) == sizeof (float) ? rpl_ ## func ## f (value) \
148 : sizeof (value) == sizeof (double) ? rpl_ ## func ## d (value) \
149 : rpl_ ## func ## l (value))
150
151
152 #if @REPLACE_ITOLD@
153 /* Pull in a function that fixes the 'int' to 'long double' conversion
154 of glibc 2.7. */
155 _GL_EXTERN_C void _Qp_itoq (long double *, int);
156 static void (*_gl_math_fix_itold) (long double *, int) = _Qp_itoq;
157 #endif
158
159
160 /* POSIX allows platforms that don't support NAN. But all major
161 machines in the past 15 years have supported something close to
162 IEEE NaN, so we define this unconditionally. We also must define
163 it on platforms like Solaris 10, where NAN is present but defined
164 as a function pointer rather than a floating point constant. */
165 #if !defined NAN || @REPLACE_NAN@
166 # if !GNULIB_defined_NAN
167 # undef NAN
168 /* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler
169 choke on the expression 0.0 / 0.0. */
170 # if defined __DECC || defined _MSC_VER
171 _GL_MATH_INLINE float
172 _NaN ()
173 {
174 static float zero = 0.0f;
175 return zero / zero;
176 }
177 # define NAN (_NaN())
178 # else
179 # define NAN (0.0f / 0.0f)
180 # endif
181 # define GNULIB_defined_NAN 1
182 # endif
183 #endif
184
185 /* Solaris 10 defines HUGE_VAL, but as a function pointer rather
186 than a floating point constant. */
187 #if @REPLACE_HUGE_VAL@
188 # undef HUGE_VALF
189 # define HUGE_VALF (1.0f / 0.0f)
190 # undef HUGE_VAL
191 # define HUGE_VAL (1.0 / 0.0)
192 # undef HUGE_VALL
193 # define HUGE_VALL (1.0L / 0.0L)
194 #endif
195
196 /* HUGE_VALF is a 'float' Infinity. */
197 #ifndef HUGE_VALF
198 # if defined _MSC_VER
199 /* The Microsoft MSVC 9 compiler chokes on the expression 1.0f / 0.0f. */
200 # define HUGE_VALF (1e25f * 1e25f)
201 # else
202 # define HUGE_VALF (1.0f / 0.0f)
203 # endif
204 #endif
205
206 /* HUGE_VAL is a 'double' Infinity. */
207 #ifndef HUGE_VAL
208 # if defined _MSC_VER
209 /* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0. */
210 # define HUGE_VAL (1e250 * 1e250)
211 # else
212 # define HUGE_VAL (1.0 / 0.0)
213 # endif
214 #endif
215
216 /* HUGE_VALL is a 'long double' Infinity. */
217 #ifndef HUGE_VALL
218 # if defined _MSC_VER
219 /* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L. */
220 # define HUGE_VALL (1e250L * 1e250L)
221 # else
222 # define HUGE_VALL (1.0L / 0.0L)
223 # endif
224 #endif
225
226
227 #if defined FP_ILOGB0 && defined FP_ILOGBNAN
228 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct. */
229 # if defined __HAIKU__
230 /* Haiku: match what ilogb() does */
231 # undef FP_ILOGB0
232 # undef FP_ILOGBNAN
233 # define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
234 # define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
235 # endif
236 #else
237 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */
238 # if defined __NetBSD__ || defined __sgi
239 /* NetBSD, IRIX 6.5: match what ilogb() does */
240 # define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
241 # define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
242 # elif defined _AIX
243 /* AIX 5.1: match what ilogb() does in AIX >= 5.2 */
244 # define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
245 # define FP_ILOGBNAN 2147483647 /* INT_MAX */
246 # elif defined __sun
247 /* Solaris 9: match what ilogb() does */
248 # define FP_ILOGB0 (- 2147483647) /* - INT_MAX */
249 # define FP_ILOGBNAN 2147483647 /* INT_MAX */
250 # else
251 /* Gnulib defined values. */
252 # define FP_ILOGB0 (- 2147483647) /* - INT_MAX */
253 # define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
254 # endif
255 #endif
256
257
258 #if @GNULIB_ACOSF@
259 # if @REPLACE_ACOSF@
260 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
261 # undef acosf
262 # define acosf rpl_acosf
263 # endif
264 _GL_FUNCDECL_RPL (acosf, float, (float x));
265 _GL_CXXALIAS_RPL (acosf, float, (float x));
266 # else
267 # if !@HAVE_ACOSF@
268 # undef acosf
269 _GL_FUNCDECL_SYS (acosf, float, (float x));
270 # endif
271 _GL_CXXALIAS_SYS (acosf, float, (float x));
272 # endif
273 _GL_CXXALIASWARN (acosf);
274 #elif defined GNULIB_POSIXCHECK
275 # undef acosf
276 # if HAVE_RAW_DECL_ACOSF
277 _GL_WARN_ON_USE (acosf, "acosf is unportable - "
278 "use gnulib module acosf for portability");
279 # endif
280 #endif
281
282 #if @GNULIB_ACOSL@
283 # if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@
284 # undef acosl
285 _GL_FUNCDECL_SYS (acosl, long double, (long double x));
286 # endif
287 _GL_CXXALIAS_SYS (acosl, long double, (long double x));
288 # if __GLIBC__ >= 2
289 _GL_CXXALIASWARN (acosl);
290 # endif
291 #elif defined GNULIB_POSIXCHECK
292 # undef acosl
293 # if HAVE_RAW_DECL_ACOSL
294 _GL_WARN_ON_USE (acosl, "acosl is unportable - "
295 "use gnulib module acosl for portability");
296 # endif
297 #endif
298
299
300 #if @GNULIB_ASINF@
301 # if @REPLACE_ASINF@
302 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
303 # undef asinf
304 # define asinf rpl_asinf
305 # endif
306 _GL_FUNCDECL_RPL (asinf, float, (float x));
307 _GL_CXXALIAS_RPL (asinf, float, (float x));
308 # else
309 # if !@HAVE_ASINF@
310 # undef asinf
311 _GL_FUNCDECL_SYS (asinf, float, (float x));
312 # endif
313 _GL_CXXALIAS_SYS (asinf, float, (float x));
314 # endif
315 _GL_CXXALIASWARN (asinf);
316 #elif defined GNULIB_POSIXCHECK
317 # undef asinf
318 # if HAVE_RAW_DECL_ASINF
319 _GL_WARN_ON_USE (asinf, "asinf is unportable - "
320 "use gnulib module asinf for portability");
321 # endif
322 #endif
323
324 #if @GNULIB_ASINL@
325 # if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
326 # undef asinl
327 _GL_FUNCDECL_SYS (asinl, long double, (long double x));
328 # endif
329 _GL_CXXALIAS_SYS (asinl, long double, (long double x));
330 # if __GLIBC__ >= 2
331 _GL_CXXALIASWARN (asinl);
332 # endif
333 #elif defined GNULIB_POSIXCHECK
334 # undef asinl
335 # if HAVE_RAW_DECL_ASINL
336 _GL_WARN_ON_USE (asinl, "asinl is unportable - "
337 "use gnulib module asinl for portability");
338 # endif
339 #endif
340
341
342 #if @GNULIB_ATANF@
343 # if @REPLACE_ATANF@
344 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
345 # undef atanf
346 # define atanf rpl_atanf
347 # endif
348 _GL_FUNCDECL_RPL (atanf, float, (float x));
349 _GL_CXXALIAS_RPL (atanf, float, (float x));
350 # else
351 # if !@HAVE_ATANF@
352 # undef atanf
353 _GL_FUNCDECL_SYS (atanf, float, (float x));
354 # endif
355 _GL_CXXALIAS_SYS (atanf, float, (float x));
356 # endif
357 _GL_CXXALIASWARN (atanf);
358 #elif defined GNULIB_POSIXCHECK
359 # undef atanf
360 # if HAVE_RAW_DECL_ATANF
361 _GL_WARN_ON_USE (atanf, "atanf is unportable - "
362 "use gnulib module atanf for portability");
363 # endif
364 #endif
365
366 #if @GNULIB_ATANL@
367 # if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@
368 # undef atanl
369 _GL_FUNCDECL_SYS (atanl, long double, (long double x));
370 # endif
371 _GL_CXXALIAS_SYS (atanl, long double, (long double x));
372 # if __GLIBC__ >= 2
373 _GL_CXXALIASWARN (atanl);
374 # endif
375 #elif defined GNULIB_POSIXCHECK
376 # undef atanl
377 # if HAVE_RAW_DECL_ATANL
378 _GL_WARN_ON_USE (atanl, "atanl is unportable - "
379 "use gnulib module atanl for portability");
380 # endif
381 #endif
382
383
384 #if @GNULIB_ATAN2F@
385 # if @REPLACE_ATAN2F@
386 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
387 # undef atan2f
388 # define atan2f rpl_atan2f
389 # endif
390 _GL_FUNCDECL_RPL (atan2f, float, (float y, float x));
391 _GL_CXXALIAS_RPL (atan2f, float, (float y, float x));
392 # else
393 # if !@HAVE_ATAN2F@
394 # undef atan2f
395 _GL_FUNCDECL_SYS (atan2f, float, (float y, float x));
396 # endif
397 _GL_CXXALIAS_SYS (atan2f, float, (float y, float x));
398 # endif
399 _GL_CXXALIASWARN (atan2f);
400 #elif defined GNULIB_POSIXCHECK
401 # undef atan2f
402 # if HAVE_RAW_DECL_ATAN2F
403 _GL_WARN_ON_USE (atan2f, "atan2f is unportable - "
404 "use gnulib module atan2f for portability");
405 # endif
406 #endif
407
408
409 #if @GNULIB_CBRTF@
410 # if @REPLACE_CBRTF@
411 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
412 # undef cbrtf
413 # define cbrtf rpl_cbrtf
414 # endif
415 _GL_FUNCDECL_RPL (cbrtf, float, (float x));
416 _GL_CXXALIAS_RPL (cbrtf, float, (float x));
417 # else
418 # if !@HAVE_DECL_CBRTF@
419 _GL_FUNCDECL_SYS (cbrtf, float, (float x));
420 # endif
421 _GL_CXXALIAS_SYS (cbrtf, float, (float x));
422 # endif
423 _GL_CXXALIASWARN (cbrtf);
424 #elif defined GNULIB_POSIXCHECK
425 # undef cbrtf
426 # if HAVE_RAW_DECL_CBRTF
427 _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
428 "use gnulib module cbrtf for portability");
429 # endif
430 #endif
431
432 #if @GNULIB_CBRT@
433 # if !@HAVE_CBRT@
434 _GL_FUNCDECL_SYS (cbrt, double, (double x));
435 # endif
436 _GL_CXXALIAS_SYS (cbrt, double, (double x));
437 # if __GLIBC__ >= 2
438 _GL_CXXALIASWARN1 (cbrt, double, (double x));
439 # endif
440 #elif defined GNULIB_POSIXCHECK
441 # undef cbrt
442 # if HAVE_RAW_DECL_CBRT
443 _GL_WARN_ON_USE (cbrt, "cbrt is unportable - "
444 "use gnulib module cbrt for portability");
445 # endif
446 #endif
447
448 #if @GNULIB_CBRTL@
449 # if @REPLACE_CBRTL@
450 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
451 # undef cbrtl
452 # define cbrtl rpl_cbrtl
453 # endif
454 _GL_FUNCDECL_RPL (cbrtl, long double, (long double x));
455 _GL_CXXALIAS_RPL (cbrtl, long double, (long double x));
456 # else
457 # if !@HAVE_DECL_CBRTL@
458 _GL_FUNCDECL_SYS (cbrtl, long double, (long double x));
459 # endif
460 _GL_CXXALIAS_SYS (cbrtl, long double, (long double x));
461 # endif
462 # if __GLIBC__ >= 2
463 _GL_CXXALIASWARN (cbrtl);
464 # endif
465 #elif defined GNULIB_POSIXCHECK
466 # undef cbrtl
467 # if HAVE_RAW_DECL_CBRTL
468 _GL_WARN_ON_USE (cbrtl, "cbrtl is unportable - "
469 "use gnulib module cbrtl for portability");
470 # endif
471 #endif
472
473
474 #if @GNULIB_CEILF@
475 # if @REPLACE_CEILF@
476 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
477 # undef ceilf
478 # define ceilf rpl_ceilf
479 # endif
480 _GL_FUNCDECL_RPL (ceilf, float, (float x));
481 _GL_CXXALIAS_RPL (ceilf, float, (float x));
482 # else
483 # if !@HAVE_DECL_CEILF@
484 # undef ceilf
485 _GL_FUNCDECL_SYS (ceilf, float, (float x));
486 # endif
487 _GL_CXXALIAS_SYS (ceilf, float, (float x));
488 # endif
489 _GL_CXXALIASWARN (ceilf);
490 #elif defined GNULIB_POSIXCHECK
491 # undef ceilf
492 # if HAVE_RAW_DECL_CEILF
493 _GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
494 "use gnulib module ceilf for portability");
495 # endif
496 #endif
497
498 #if @GNULIB_CEIL@
499 # if @REPLACE_CEIL@
500 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
501 # undef ceil
502 # define ceil rpl_ceil
503 # endif
504 _GL_FUNCDECL_RPL (ceil, double, (double x));
505 _GL_CXXALIAS_RPL (ceil, double, (double x));
506 # else
507 _GL_CXXALIAS_SYS (ceil, double, (double x));
508 # endif
509 # if __GLIBC__ >= 2
510 _GL_CXXALIASWARN1 (ceil, double, (double x));
511 # endif
512 #endif
513
514 #if @GNULIB_CEILL@
515 # if @REPLACE_CEILL@
516 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
517 # undef ceill
518 # define ceill rpl_ceill
519 # endif
520 _GL_FUNCDECL_RPL (ceill, long double, (long double x));
521 _GL_CXXALIAS_RPL (ceill, long double, (long double x));
522 # else
523 # if !@HAVE_DECL_CEILL@
524 # undef ceill
525 _GL_FUNCDECL_SYS (ceill, long double, (long double x));
526 # endif
527 _GL_CXXALIAS_SYS (ceill, long double, (long double x));
528 # endif
529 # if __GLIBC__ >= 2
530 _GL_CXXALIASWARN (ceill);
531 # endif
532 #elif defined GNULIB_POSIXCHECK
533 # undef ceill
534 # if HAVE_RAW_DECL_CEILL
535 _GL_WARN_ON_USE (ceill, "ceill is unportable - "
536 "use gnulib module ceill for portability");
537 # endif
538 #endif
539
540
541 #if @GNULIB_COPYSIGNF@
542 # if !@HAVE_DECL_COPYSIGNF@
543 # undef copysignf
544 _GL_FUNCDECL_SYS (copysignf, float, (float x, float y));
545 # endif
546 _GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
547 _GL_CXXALIASWARN (copysignf);
548 #elif defined GNULIB_POSIXCHECK
549 # undef copysignf
550 # if HAVE_RAW_DECL_COPYSIGNF
551 _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
552 "use gnulib module copysignf for portability");
553 # endif
554 #endif
555
556 #if @GNULIB_COPYSIGN@
557 # if !@HAVE_COPYSIGN@
558 _GL_FUNCDECL_SYS (copysign, double, (double x, double y));
559 # endif
560 _GL_CXXALIAS_SYS (copysign, double, (double x, double y));
561 # if __GLIBC__ >= 2
562 _GL_CXXALIASWARN1 (copysign, double, (double x, double y));
563 # endif
564 #elif defined GNULIB_POSIXCHECK
565 # undef copysign
566 # if HAVE_RAW_DECL_COPYSIGN
567 _GL_WARN_ON_USE (copysign, "copysign is unportable - "
568 "use gnulib module copysign for portability");
569 # endif
570 #endif
571
572 #if @GNULIB_COPYSIGNL@
573 # if !@HAVE_COPYSIGNL@
574 _GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y));
575 # endif
576 _GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y));
577 # if __GLIBC__ >= 2
578 _GL_CXXALIASWARN (copysignl);
579 # endif
580 #elif defined GNULIB_POSIXCHECK
581 # undef copysignl
582 # if HAVE_RAW_DECL_COPYSIGNL
583 _GL_WARN_ON_USE (copysign, "copysignl is unportable - "
584 "use gnulib module copysignl for portability");
585 # endif
586 #endif
587
588
589 #if @GNULIB_COSF@
590 # if @REPLACE_COSF@
591 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
592 # undef cosf
593 # define cosf rpl_cosf
594 # endif
595 _GL_FUNCDECL_RPL (cosf, float, (float x));
596 _GL_CXXALIAS_RPL (cosf, float, (float x));
597 # else
598 # if !@HAVE_COSF@
599 # undef cosf
600 _GL_FUNCDECL_SYS (cosf, float, (float x));
601 # endif
602 _GL_CXXALIAS_SYS (cosf, float, (float x));
603 # endif
604 _GL_CXXALIASWARN (cosf);
605 #elif defined GNULIB_POSIXCHECK
606 # undef cosf
607 # if HAVE_RAW_DECL_COSF
608 _GL_WARN_ON_USE (cosf, "cosf is unportable - "
609 "use gnulib module cosf for portability");
610 # endif
611 #endif
612
613 #if @GNULIB_COSL@
614 # if !@HAVE_COSL@ || !@HAVE_DECL_COSL@
615 # undef cosl
616 _GL_FUNCDECL_SYS (cosl, long double, (long double x));
617 # endif
618 _GL_CXXALIAS_SYS (cosl, long double, (long double x));
619 # if __GLIBC__ >= 2
620 _GL_CXXALIASWARN (cosl);
621 # endif
622 #elif defined GNULIB_POSIXCHECK
623 # undef cosl
624 # if HAVE_RAW_DECL_COSL
625 _GL_WARN_ON_USE (cosl, "cosl is unportable - "
626 "use gnulib module cosl for portability");
627 # endif
628 #endif
629
630
631 #if @GNULIB_COSHF@
632 # if @REPLACE_COSHF@
633 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
634 # undef coshf
635 # define coshf rpl_coshf
636 # endif
637 _GL_FUNCDECL_RPL (coshf, float, (float x));
638 _GL_CXXALIAS_RPL (coshf, float, (float x));
639 # else
640 # if !@HAVE_COSHF@
641 # undef coshf
642 _GL_FUNCDECL_SYS (coshf, float, (float x));
643 # endif
644 _GL_CXXALIAS_SYS (coshf, float, (float x));
645 # endif
646 _GL_CXXALIASWARN (coshf);
647 #elif defined GNULIB_POSIXCHECK
648 # undef coshf
649 # if HAVE_RAW_DECL_COSHF
650 _GL_WARN_ON_USE (coshf, "coshf is unportable - "
651 "use gnulib module coshf for portability");
652 # endif
653 #endif
654
655
656 #if @GNULIB_EXPF@
657 # if @REPLACE_EXPF@
658 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
659 # undef expf
660 # define expf rpl_expf
661 # endif
662 _GL_FUNCDECL_RPL (expf, float, (float x));
663 _GL_CXXALIAS_RPL (expf, float, (float x));
664 # else
665 # if !@HAVE_EXPF@
666 # undef expf
667 _GL_FUNCDECL_SYS (expf, float, (float x));
668 # endif
669 _GL_CXXALIAS_SYS (expf, float, (float x));
670 # endif
671 _GL_CXXALIASWARN (expf);
672 #elif defined GNULIB_POSIXCHECK
673 # undef expf
674 # if HAVE_RAW_DECL_EXPF
675 _GL_WARN_ON_USE (expf, "expf is unportable - "
676 "use gnulib module expf for portability");
677 # endif
678 #endif
679
680 #if @GNULIB_EXPL@
681 # if @REPLACE_EXPL@
682 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
683 # undef expl
684 # define expl rpl_expl
685 # endif
686 _GL_FUNCDECL_RPL (expl, long double, (long double x));
687 _GL_CXXALIAS_RPL (expl, long double, (long double x));
688 # else
689 # if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@
690 # undef expl
691 _GL_FUNCDECL_SYS (expl, long double, (long double x));
692 # endif
693 _GL_CXXALIAS_SYS (expl, long double, (long double x));
694 # endif
695 # if __GLIBC__ >= 2
696 _GL_CXXALIASWARN (expl);
697 # endif
698 #elif defined GNULIB_POSIXCHECK
699 # undef expl
700 # if HAVE_RAW_DECL_EXPL
701 _GL_WARN_ON_USE (expl, "expl is unportable - "
702 "use gnulib module expl for portability");
703 # endif
704 #endif
705
706
707 #if @GNULIB_EXP2F@
708 # if !@HAVE_DECL_EXP2F@
709 _GL_FUNCDECL_SYS (exp2f, float, (float x));
710 # endif
711 _GL_CXXALIAS_SYS (exp2f, float, (float x));
712 _GL_CXXALIASWARN (exp2f);
713 #elif defined GNULIB_POSIXCHECK
714 # undef exp2f
715 # if HAVE_RAW_DECL_EXP2F
716 _GL_WARN_ON_USE (exp2f, "exp2f is unportable - "
717 "use gnulib module exp2f for portability");
718 # endif
719 #endif
720
721 #if @GNULIB_EXP2@
722 # if @REPLACE_EXP2@
723 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
724 # undef exp2
725 # define exp2 rpl_exp2
726 # endif
727 _GL_FUNCDECL_RPL (exp2, double, (double x));
728 _GL_CXXALIAS_RPL (exp2, double, (double x));
729 # else
730 # if !@HAVE_DECL_EXP2@
731 _GL_FUNCDECL_SYS (exp2, double, (double x));
732 # endif
733 _GL_CXXALIAS_SYS (exp2, double, (double x));
734 # endif
735 # if __GLIBC__ >= 2
736 _GL_CXXALIASWARN1 (exp2, double, (double x));
737 # endif
738 #elif defined GNULIB_POSIXCHECK
739 # undef exp2
740 # if HAVE_RAW_DECL_EXP2
741 _GL_WARN_ON_USE (exp2, "exp2 is unportable - "
742 "use gnulib module exp2 for portability");
743 # endif
744 #endif
745
746 #if @GNULIB_EXP2L@
747 # if @REPLACE_EXP2L@
748 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
749 # undef exp2l
750 # define exp2l rpl_exp2l
751 # endif
752 _GL_FUNCDECL_RPL (exp2l, long double, (long double x));
753 _GL_CXXALIAS_RPL (exp2l, long double, (long double x));
754 # else
755 # if !@HAVE_DECL_EXP2L@
756 # undef exp2l
757 _GL_FUNCDECL_SYS (exp2l, long double, (long double x));
758 # endif
759 _GL_CXXALIAS_SYS (exp2l, long double, (long double x));
760 # endif
761 # if __GLIBC__ >= 2
762 _GL_CXXALIASWARN (exp2l);
763 # endif
764 #elif defined GNULIB_POSIXCHECK
765 # undef exp2l
766 # if HAVE_RAW_DECL_EXP2L
767 _GL_WARN_ON_USE (exp2l, "exp2l is unportable - "
768 "use gnulib module exp2l for portability");
769 # endif
770 #endif
771
772
773 #if @GNULIB_EXPM1F@
774 # if @REPLACE_EXPM1F@
775 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
776 # undef expm1f
777 # define expm1f rpl_expm1f
778 # endif
779 _GL_FUNCDECL_RPL (expm1f, float, (float x));
780 _GL_CXXALIAS_RPL (expm1f, float, (float x));
781 # else
782 # if !@HAVE_EXPM1F@
783 _GL_FUNCDECL_SYS (expm1f, float, (float x));
784 # endif
785 _GL_CXXALIAS_SYS (expm1f, float, (float x));
786 # endif
787 _GL_CXXALIASWARN (expm1f);
788 #elif defined GNULIB_POSIXCHECK
789 # undef expm1f
790 # if HAVE_RAW_DECL_EXPM1F
791 _GL_WARN_ON_USE (expm1f, "expm1f is unportable - "
792 "use gnulib module expm1f for portability");
793 # endif
794 #endif
795
796 #if @GNULIB_EXPM1@
797 # if @REPLACE_EXPM1@
798 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
799 # undef expm1
800 # define expm1 rpl_expm1
801 # endif
802 _GL_FUNCDECL_RPL (expm1, double, (double x));
803 _GL_CXXALIAS_RPL (expm1, double, (double x));
804 # else
805 # if !@HAVE_EXPM1@
806 _GL_FUNCDECL_SYS (expm1, double, (double x));
807 # endif
808 _GL_CXXALIAS_SYS (expm1, double, (double x));
809 # endif
810 # if __GLIBC__ >= 2
811 _GL_CXXALIASWARN1 (expm1, double, (double x));
812 # endif
813 #elif defined GNULIB_POSIXCHECK
814 # undef expm1
815 # if HAVE_RAW_DECL_EXPM1
816 _GL_WARN_ON_USE (expm1, "expm1 is unportable - "
817 "use gnulib module expm1 for portability");
818 # endif
819 #endif
820
821 #if @GNULIB_EXPM1L@
822 # if @REPLACE_EXPM1L@
823 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
824 # undef expm1l
825 # define expm1l rpl_expm1l
826 # endif
827 _GL_FUNCDECL_RPL (expm1l, long double, (long double x));
828 _GL_CXXALIAS_RPL (expm1l, long double, (long double x));
829 # else
830 # if !@HAVE_DECL_EXPM1L@
831 # undef expm1l
832 # if !(defined __cplusplus && defined _AIX)
833 _GL_FUNCDECL_SYS (expm1l, long double, (long double x));
834 # endif
835 # endif
836 _GL_CXXALIAS_SYS (expm1l, long double, (long double x));
837 # endif
838 # if __GLIBC__ >= 2
839 _GL_CXXALIASWARN (expm1l);
840 # endif
841 #elif defined GNULIB_POSIXCHECK
842 # undef expm1l
843 # if HAVE_RAW_DECL_EXPM1L
844 _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
845 "use gnulib module expm1l for portability");
846 # endif
847 #endif
848
849
850 #if @GNULIB_FABSF@
851 # if !@HAVE_FABSF@
852 # undef fabsf
853 _GL_FUNCDECL_SYS (fabsf, float, (float x));
854 # endif
855 _GL_CXXALIAS_SYS (fabsf, float, (float x));
856 # if __GLIBC__ >= 2
857 _GL_CXXALIASWARN (fabsf);
858 # endif
859 #elif defined GNULIB_POSIXCHECK
860 # undef fabsf
861 # if HAVE_RAW_DECL_FABSF
862 _GL_WARN_ON_USE (fabsf, "fabsf is unportable - "
863 "use gnulib module fabsf for portability");
864 # endif
865 #endif
866
867 #if @GNULIB_FABSL@
868 # if @REPLACE_FABSL@
869 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
870 # undef fabsl
871 # define fabsl rpl_fabsl
872 # endif
873 _GL_FUNCDECL_RPL (fabsl, long double, (long double x));
874 _GL_CXXALIAS_RPL (fabsl, long double, (long double x));
875 # else
876 # if !@HAVE_FABSL@
877 # undef fabsl
878 _GL_FUNCDECL_SYS (fabsl, long double, (long double x));
879 # endif
880 _GL_CXXALIAS_SYS (fabsl, long double, (long double x));
881 # endif
882 # if __GLIBC__ >= 2
883 _GL_CXXALIASWARN (fabsl);
884 # endif
885 #elif defined GNULIB_POSIXCHECK
886 # undef fabsl
887 # if HAVE_RAW_DECL_FABSL
888 _GL_WARN_ON_USE (fabsl, "fabsl is unportable - "
889 "use gnulib module fabsl for portability");
890 # endif
891 #endif
892
893
894 #if @GNULIB_FLOORF@
895 # if @REPLACE_FLOORF@
896 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
897 # undef floorf
898 # define floorf rpl_floorf
899 # endif
900 _GL_FUNCDECL_RPL (floorf, float, (float x));
901 _GL_CXXALIAS_RPL (floorf, float, (float x));
902 # else
903 # if !@HAVE_DECL_FLOORF@
904 # undef floorf
905 _GL_FUNCDECL_SYS (floorf, float, (float x));
906 # endif
907 _GL_CXXALIAS_SYS (floorf, float, (float x));
908 # endif
909 _GL_CXXALIASWARN (floorf);
910 #elif defined GNULIB_POSIXCHECK
911 # undef floorf
912 # if HAVE_RAW_DECL_FLOORF
913 _GL_WARN_ON_USE (floorf, "floorf is unportable - "
914 "use gnulib module floorf for portability");
915 # endif
916 #endif
917
918 #if @GNULIB_FLOOR@
919 # if @REPLACE_FLOOR@
920 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
921 # undef floor
922 # define floor rpl_floor
923 # endif
924 _GL_FUNCDECL_RPL (floor, double, (double x));
925 _GL_CXXALIAS_RPL (floor, double, (double x));
926 # else
927 _GL_CXXALIAS_SYS (floor, double, (double x));
928 # endif
929 # if __GLIBC__ >= 2
930 _GL_CXXALIASWARN1 (floor, double, (double x));
931 # endif
932 #endif
933
934 #if @GNULIB_FLOORL@
935 # if @REPLACE_FLOORL@
936 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
937 # undef floorl
938 # define floorl rpl_floorl
939 # endif
940 _GL_FUNCDECL_RPL (floorl, long double, (long double x));
941 _GL_CXXALIAS_RPL (floorl, long double, (long double x));
942 # else
943 # if !@HAVE_DECL_FLOORL@
944 # undef floorl
945 _GL_FUNCDECL_SYS (floorl, long double, (long double x));
946 # endif
947 _GL_CXXALIAS_SYS (floorl, long double, (long double x));
948 # endif
949 # if __GLIBC__ >= 2
950 _GL_CXXALIASWARN (floorl);
951 # endif
952 #elif defined GNULIB_POSIXCHECK
953 # undef floorl
954 # if HAVE_RAW_DECL_FLOORL
955 _GL_WARN_ON_USE (floorl, "floorl is unportable - "
956 "use gnulib module floorl for portability");
957 # endif
958 #endif
959
960
961 #if @GNULIB_FMAF@
962 # if @REPLACE_FMAF@
963 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
964 # undef fmaf
965 # define fmaf rpl_fmaf
966 # endif
967 _GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z));
968 _GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
969 # else
970 # if !@HAVE_FMAF@
971 # undef fmaf
972 _GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z));
973 # endif
974 _GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
975 # endif
976 _GL_CXXALIASWARN (fmaf);
977 #elif defined GNULIB_POSIXCHECK
978 # undef fmaf
979 # if HAVE_RAW_DECL_FMAF
980 _GL_WARN_ON_USE (fmaf, "fmaf is unportable - "
981 "use gnulib module fmaf for portability");
982 # endif
983 #endif
984
985 #if @GNULIB_FMA@
986 # if @REPLACE_FMA@
987 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
988 # undef fma
989 # define fma rpl_fma
990 # endif
991 _GL_FUNCDECL_RPL (fma, double, (double x, double y, double z));
992 _GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
993 # else
994 # if !@HAVE_FMA@
995 # undef fma
996 _GL_FUNCDECL_SYS (fma, double, (double x, double y, double z));
997 # endif
998 _GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
999 # endif
1000 # if __GLIBC__ >= 2
1001 _GL_CXXALIASWARN1 (fma, double, (double x, double y, double z));
1002 # endif
1003 #elif defined GNULIB_POSIXCHECK
1004 # undef fma
1005 # if HAVE_RAW_DECL_FMA
1006 _GL_WARN_ON_USE (fma, "fma is unportable - "
1007 "use gnulib module fma for portability");
1008 # endif
1009 #endif
1010
1011 #if @GNULIB_FMAL@
1012 # if @REPLACE_FMAL@
1013 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1014 # undef fmal
1015 # define fmal rpl_fmal
1016 # endif
1017 _GL_FUNCDECL_RPL (fmal, long double,
1018 (long double x, long double y, long double z));
1019 _GL_CXXALIAS_RPL (fmal, long double,
1020 (long double x, long double y, long double z));
1021 # else
1022 # if !@HAVE_FMAL@
1023 # undef fmal
1024 # if !(defined __cplusplus && defined _AIX)
1025 _GL_FUNCDECL_SYS (fmal, long double,
1026 (long double x, long double y, long double z));
1027 # endif
1028 # endif
1029 _GL_CXXALIAS_SYS (fmal, long double,
1030 (long double x, long double y, long double z));
1031 # endif
1032 # if __GLIBC__ >= 2
1033 _GL_CXXALIASWARN (fmal);
1034 # endif
1035 #elif defined GNULIB_POSIXCHECK
1036 # undef fmal
1037 # if HAVE_RAW_DECL_FMAL
1038 _GL_WARN_ON_USE (fmal, "fmal is unportable - "
1039 "use gnulib module fmal for portability");
1040 # endif
1041 #endif
1042
1043
1044 #if @GNULIB_FMODF@
1045 # if @REPLACE_FMODF@
1046 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1047 # undef fmodf
1048 # define fmodf rpl_fmodf
1049 # endif
1050 _GL_FUNCDECL_RPL (fmodf, float, (float x, float y));
1051 _GL_CXXALIAS_RPL (fmodf, float, (float x, float y));
1052 # else
1053 # if !@HAVE_FMODF@
1054 # undef fmodf
1055 _GL_FUNCDECL_SYS (fmodf, float, (float x, float y));
1056 # endif
1057 _GL_CXXALIAS_SYS (fmodf, float, (float x, float y));
1058 # endif
1059 _GL_CXXALIASWARN (fmodf);
1060 #elif defined GNULIB_POSIXCHECK
1061 # undef fmodf
1062 # if HAVE_RAW_DECL_FMODF
1063 _GL_WARN_ON_USE (fmodf, "fmodf is unportable - "
1064 "use gnulib module fmodf for portability");
1065 # endif
1066 #endif
1067
1068 #if @GNULIB_FMOD@
1069 # if @REPLACE_FMOD@
1070 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1071 # undef fmod
1072 # define fmod rpl_fmod
1073 # endif
1074 _GL_FUNCDECL_RPL (fmod, double, (double x, double y));
1075 _GL_CXXALIAS_RPL (fmod, double, (double x, double y));
1076 # else
1077 _GL_CXXALIAS_SYS (fmod, double, (double x, double y));
1078 # endif
1079 # if __GLIBC__ >= 2
1080 _GL_CXXALIASWARN1 (fmod, double, (double x, double y));
1081 # endif
1082 #elif defined GNULIB_POSIXCHECK
1083 # undef fmod
1084 # if HAVE_RAW_DECL_FMOD
1085 _GL_WARN_ON_USE (fmod, "fmod has portability problems - "
1086 "use gnulib module fmod for portability");
1087 # endif
1088 #endif
1089
1090 #if @GNULIB_FMODL@
1091 # if @REPLACE_FMODL@
1092 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1093 # undef fmodl
1094 # define fmodl rpl_fmodl
1095 # endif
1096 _GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y));
1097 _GL_CXXALIAS_RPL (fmodl, long double, (long double x, long double y));
1098 # else
1099 # if !@HAVE_FMODL@
1100 # undef fmodl
1101 _GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y));
1102 # endif
1103 _GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y));
1104 # endif
1105 # if __GLIBC__ >= 2
1106 _GL_CXXALIASWARN (fmodl);
1107 # endif
1108 #elif defined GNULIB_POSIXCHECK
1109 # undef fmodl
1110 # if HAVE_RAW_DECL_FMODL
1111 _GL_WARN_ON_USE (fmodl, "fmodl is unportable - "
1112 "use gnulib module fmodl for portability");
1113 # endif
1114 #endif
1115
1116
1117 /* Write x as
1118 x = mantissa * 2^exp
1119 where
1120 If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1121 If x is zero: mantissa = x, exp = 0.
1122 If x is infinite or NaN: mantissa = x, exp unspecified.
1123 Store exp in *EXPPTR and return mantissa. */
1124 #if @GNULIB_FREXPF@
1125 # if @REPLACE_FREXPF@
1126 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1127 # undef frexpf
1128 # define frexpf rpl_frexpf
1129 # endif
1130 _GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
1131 _GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr));
1132 # else
1133 # if !@HAVE_FREXPF@
1134 # undef frexpf
1135 _GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
1136 # endif
1137 _GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
1138 # endif
1139 # if __GLIBC__ >= 2
1140 _GL_CXXALIASWARN (frexpf);
1141 # endif
1142 #elif defined GNULIB_POSIXCHECK
1143 # undef frexpf
1144 # if HAVE_RAW_DECL_FREXPF
1145 _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
1146 "use gnulib module frexpf for portability");
1147 # endif
1148 #endif
1149
1150 /* Write x as
1151 x = mantissa * 2^exp
1152 where
1153 If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1154 If x is zero: mantissa = x, exp = 0.
1155 If x is infinite or NaN: mantissa = x, exp unspecified.
1156 Store exp in *EXPPTR and return mantissa. */
1157 #if @GNULIB_FREXP@
1158 # if @REPLACE_FREXP@
1159 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1160 # undef frexp
1161 # define frexp rpl_frexp
1162 # endif
1163 _GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr) _GL_ARG_NONNULL ((2)));
1164 _GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
1165 # else
1166 _GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
1167 # endif
1168 # if __GLIBC__ >= 2
1169 _GL_CXXALIASWARN1 (frexp, double, (double x, int *expptr));
1170 # endif
1171 #elif defined GNULIB_POSIXCHECK
1172 # undef frexp
1173 /* Assume frexp is always declared. */
1174 _GL_WARN_ON_USE (frexp, "frexp is unportable - "
1175 "use gnulib module frexp for portability");
1176 #endif
1177
1178 /* Write x as
1179 x = mantissa * 2^exp
1180 where
1181 If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1182 If x is zero: mantissa = x, exp = 0.
1183 If x is infinite or NaN: mantissa = x, exp unspecified.
1184 Store exp in *EXPPTR and return mantissa. */
1185 #if @GNULIB_FREXPL@ && @REPLACE_FREXPL@
1186 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1187 # undef frexpl
1188 # define frexpl rpl_frexpl
1189 # endif
1190 _GL_FUNCDECL_RPL (frexpl, long double,
1191 (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
1192 _GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr));
1193 #else
1194 # if !@HAVE_DECL_FREXPL@
1195 _GL_FUNCDECL_SYS (frexpl, long double,
1196 (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
1197 # endif
1198 # if @GNULIB_FREXPL@
1199 _GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
1200 # endif
1201 #endif
1202 #if @GNULIB_FREXPL@ && !(@REPLACE_FREXPL@ && !@HAVE_DECL_FREXPL@)
1203 # if __GLIBC__ >= 2
1204 _GL_CXXALIASWARN (frexpl);
1205 # endif
1206 #endif
1207 #if !@GNULIB_FREXPL@ && defined GNULIB_POSIXCHECK
1208 # undef frexpl
1209 # if HAVE_RAW_DECL_FREXPL
1210 _GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
1211 "use gnulib module frexpl for portability");
1212 # endif
1213 #endif
1214
1215
1216 /* Return sqrt(x^2+y^2). */
1217 #if @GNULIB_HYPOTF@
1218 # if @REPLACE_HYPOTF@
1219 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1220 # undef hypotf
1221 # define hypotf rpl_hypotf
1222 # endif
1223 _GL_FUNCDECL_RPL (hypotf, float, (float x, float y));
1224 _GL_CXXALIAS_RPL (hypotf, float, (float x, float y));
1225 # else
1226 # if !@HAVE_HYPOTF@
1227 _GL_FUNCDECL_SYS (hypotf, float, (float x, float y));
1228 # endif
1229 _GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
1230 # endif
1231 # if __GLIBC__ >= 2
1232 _GL_CXXALIASWARN (hypotf);
1233 # endif
1234 #elif defined GNULIB_POSIXCHECK
1235 # undef hypotf
1236 # if HAVE_RAW_DECL_HYPOTF
1237 _GL_WARN_ON_USE (hypotf, "hypotf is unportable - "
1238 "use gnulib module hypotf for portability");
1239 # endif
1240 #endif
1241
1242 /* Return sqrt(x^2+y^2). */
1243 #if @GNULIB_HYPOT@
1244 # if @REPLACE_HYPOT@
1245 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1246 # undef hypot
1247 # define hypot rpl_hypot
1248 # endif
1249 _GL_FUNCDECL_RPL (hypot, double, (double x, double y));
1250 _GL_CXXALIAS_RPL (hypot, double, (double x, double y));
1251 # else
1252 _GL_CXXALIAS_SYS (hypot, double, (double x, double y));
1253 # endif
1254 # if __GLIBC__ >= 2
1255 _GL_CXXALIASWARN1 (hypot, double, (double x, double y));
1256 # endif
1257 #elif defined GNULIB_POSIXCHECK
1258 # undef hypot
1259 # if HAVE_RAW_DECL_HYPOT
1260 _GL_WARN_ON_USE (hypotf, "hypot has portability problems - "
1261 "use gnulib module hypot for portability");
1262 # endif
1263 #endif
1264
1265 /* Return sqrt(x^2+y^2). */
1266 #if @GNULIB_HYPOTL@
1267 # if @REPLACE_HYPOTL@
1268 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1269 # undef hypotl
1270 # define hypotl rpl_hypotl
1271 # endif
1272 _GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y));
1273 _GL_CXXALIAS_RPL (hypotl, long double, (long double x, long double y));
1274 # else
1275 # if !@HAVE_HYPOTL@
1276 _GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y));
1277 # endif
1278 _GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y));
1279 # endif
1280 # if __GLIBC__ >= 2
1281 _GL_CXXALIASWARN (hypotl);
1282 # endif
1283 #elif defined GNULIB_POSIXCHECK
1284 # undef hypotl
1285 # if HAVE_RAW_DECL_HYPOTL
1286 _GL_WARN_ON_USE (hypotl, "hypotl is unportable - "
1287 "use gnulib module hypotl for portability");
1288 # endif
1289 #endif
1290
1291
1292 #if @GNULIB_ILOGBF@
1293 # if @REPLACE_ILOGBF@
1294 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1295 # undef ilogbf
1296 # define ilogbf rpl_ilogbf
1297 # endif
1298 _GL_FUNCDECL_RPL (ilogbf, int, (float x));
1299 _GL_CXXALIAS_RPL (ilogbf, int, (float x));
1300 # else
1301 # if !@HAVE_ILOGBF@
1302 _GL_FUNCDECL_SYS (ilogbf, int, (float x));
1303 # endif
1304 _GL_CXXALIAS_SYS (ilogbf, int, (float x));
1305 # endif
1306 _GL_CXXALIASWARN (ilogbf);
1307 #elif defined GNULIB_POSIXCHECK
1308 # undef ilogbf
1309 # if HAVE_RAW_DECL_ILOGBF
1310 _GL_WARN_ON_USE (ilogbf, "ilogbf is unportable - "
1311 "use gnulib module ilogbf for portability");
1312 # endif
1313 #endif
1314
1315 #if @GNULIB_ILOGB@
1316 # if @REPLACE_ILOGB@
1317 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1318 # undef ilogb
1319 # define ilogb rpl_ilogb
1320 # endif
1321 _GL_FUNCDECL_RPL (ilogb, int, (double x));
1322 _GL_CXXALIAS_RPL (ilogb, int, (double x));
1323 # else
1324 # if !@HAVE_ILOGB@
1325 _GL_FUNCDECL_SYS (ilogb, int, (double x));
1326 # endif
1327 _GL_CXXALIAS_SYS (ilogb, int, (double x));
1328 # endif
1329 # if __GLIBC__ >= 2
1330 _GL_CXXALIASWARN1 (ilogb, int, (double x));
1331 # endif
1332 #elif defined GNULIB_POSIXCHECK
1333 # undef ilogb
1334 # if HAVE_RAW_DECL_ILOGB
1335 _GL_WARN_ON_USE (ilogb, "ilogb is unportable - "
1336 "use gnulib module ilogb for portability");
1337 # endif
1338 #endif
1339
1340 #if @GNULIB_ILOGBL@
1341 # if @REPLACE_ILOGBL@
1342 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1343 # undef ilogbl
1344 # define ilogbl rpl_ilogbl
1345 # endif
1346 _GL_FUNCDECL_RPL (ilogbl, int, (long double x));
1347 _GL_CXXALIAS_RPL (ilogbl, int, (long double x));
1348 # else
1349 # if !@HAVE_ILOGBL@
1350 # undef ilogbl
1351 _GL_FUNCDECL_SYS (ilogbl, int, (long double x));
1352 # endif
1353 _GL_CXXALIAS_SYS (ilogbl, int, (long double x));
1354 # endif
1355 # if __GLIBC__ >= 2
1356 _GL_CXXALIASWARN (ilogbl);
1357 # endif
1358 #elif defined GNULIB_POSIXCHECK
1359 # undef ilogbl
1360 # if HAVE_RAW_DECL_ILOGBL
1361 _GL_WARN_ON_USE (ilogbl, "ilogbl is unportable - "
1362 "use gnulib module ilogbl for portability");
1363 # endif
1364 #endif
1365
1366
1367 #if @GNULIB_MDA_J0@
1368 /* On native Windows, map 'j0' to '_j0', so that -loldnames is not
1369 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1370 platforms by defining GNULIB_NAMESPACE::j0 always. */
1371 # if defined _WIN32 && !defined __CYGWIN__
1372 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1373 # undef j0
1374 # define j0 _j0
1375 # endif
1376 _GL_CXXALIAS_MDA (j0, double, (double x));
1377 # else
1378 _GL_CXXALIAS_SYS (j0, double, (double x));
1379 # endif
1380 _GL_CXXALIASWARN (j0);
1381 #endif
1382
1383 #if @GNULIB_MDA_J1@
1384 /* On native Windows, map 'j1' to '_j1', so that -loldnames is not
1385 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1386 platforms by defining GNULIB_NAMESPACE::j1 always. */
1387 # if defined _WIN32 && !defined __CYGWIN__
1388 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1389 # undef j1
1390 # define j1 _j1
1391 # endif
1392 _GL_CXXALIAS_MDA (j1, double, (double x));
1393 # else
1394 _GL_CXXALIAS_SYS (j1, double, (double x));
1395 # endif
1396 _GL_CXXALIASWARN (j1);
1397 #endif
1398
1399 #if @GNULIB_MDA_JN@
1400 /* On native Windows, map 'jn' to '_jn', so that -loldnames is not
1401 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1402 platforms by defining GNULIB_NAMESPACE::jn always. */
1403 # if defined _WIN32 && !defined __CYGWIN__
1404 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1405 # undef jn
1406 # define jn _jn
1407 # endif
1408 _GL_CXXALIAS_MDA (jn, double, (int n, double x));
1409 # else
1410 _GL_CXXALIAS_SYS (jn, double, (int n, double x));
1411 # endif
1412 _GL_CXXALIASWARN (jn);
1413 #endif
1414
1415
1416 /* Return x * 2^exp. */
1417 #if @GNULIB_LDEXPF@
1418 # if !@HAVE_LDEXPF@
1419 # undef ldexpf
1420 _GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp));
1421 # endif
1422 _GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
1423 # if __GLIBC__ >= 2
1424 _GL_CXXALIASWARN (ldexpf);
1425 # endif
1426 #elif defined GNULIB_POSIXCHECK
1427 # undef ldexpf
1428 # if HAVE_RAW_DECL_LDEXPF
1429 _GL_WARN_ON_USE (ldexpf, "ldexpf is unportable - "
1430 "use gnulib module ldexpf for portability");
1431 # endif
1432 #endif
1433
1434 /* Return x * 2^exp. */
1435 #if @GNULIB_LDEXPL@ && @REPLACE_LDEXPL@
1436 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1437 # undef ldexpl
1438 # define ldexpl rpl_ldexpl
1439 # endif
1440 _GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp));
1441 _GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp));
1442 #else
1443 # if !@HAVE_DECL_LDEXPL@
1444 _GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp));
1445 # endif
1446 # if @GNULIB_LDEXPL@
1447 _GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
1448 # endif
1449 #endif
1450 #if @GNULIB_LDEXPL@
1451 # if __GLIBC__ >= 2
1452 _GL_CXXALIASWARN (ldexpl);
1453 # endif
1454 #endif
1455 #if !@GNULIB_LDEXPL@ && defined GNULIB_POSIXCHECK
1456 # undef ldexpl
1457 # if HAVE_RAW_DECL_LDEXPL
1458 _GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
1459 "use gnulib module ldexpl for portability");
1460 # endif
1461 #endif
1462
1463
1464 #if @GNULIB_LOGF@
1465 # if @REPLACE_LOGF@
1466 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1467 # undef logf
1468 # define logf rpl_logf
1469 # endif
1470 _GL_FUNCDECL_RPL (logf, float, (float x));
1471 _GL_CXXALIAS_RPL (logf, float, (float x));
1472 # else
1473 # if !@HAVE_LOGF@
1474 # undef logf
1475 _GL_FUNCDECL_SYS (logf, float, (float x));
1476 # endif
1477 _GL_CXXALIAS_SYS (logf, float, (float x));
1478 # endif
1479 _GL_CXXALIASWARN (logf);
1480 #elif defined GNULIB_POSIXCHECK
1481 # undef logf
1482 # if HAVE_RAW_DECL_LOGF
1483 _GL_WARN_ON_USE (logf, "logf is unportable - "
1484 "use gnulib module logf for portability");
1485 # endif
1486 #endif
1487
1488 #if @GNULIB_LOG@
1489 # if @REPLACE_LOG@
1490 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1491 # undef log
1492 # define log rpl_log
1493 # endif
1494 _GL_FUNCDECL_RPL (log, double, (double x));
1495 _GL_CXXALIAS_RPL (log, double, (double x));
1496 # else
1497 _GL_CXXALIAS_SYS (log, double, (double x));
1498 # endif
1499 # if __GLIBC__ >= 2
1500 _GL_CXXALIASWARN1 (log, double, (double x));
1501 # endif
1502 #elif defined GNULIB_POSIXCHECK
1503 # undef log
1504 # if HAVE_RAW_DECL_LOG
1505 _GL_WARN_ON_USE (log, "log has portability problems - "
1506 "use gnulib module log for portability");
1507 # endif
1508 #endif
1509
1510 #if @GNULIB_LOGL@
1511 # if @REPLACE_LOGL@
1512 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1513 # undef logl
1514 # define logl rpl_logl
1515 # endif
1516 _GL_FUNCDECL_RPL (logl, long double, (long double x));
1517 _GL_CXXALIAS_RPL (logl, long double, (long double x));
1518 # else
1519 # if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@
1520 # undef logl
1521 _GL_FUNCDECL_SYS (logl, long double, (long double x));
1522 # endif
1523 _GL_CXXALIAS_SYS (logl, long double, (long double x));
1524 # endif
1525 # if __GLIBC__ >= 2
1526 _GL_CXXALIASWARN (logl);
1527 # endif
1528 #elif defined GNULIB_POSIXCHECK
1529 # undef logl
1530 # if HAVE_RAW_DECL_LOGL
1531 _GL_WARN_ON_USE (logl, "logl is unportable - "
1532 "use gnulib module logl for portability");
1533 # endif
1534 #endif
1535
1536
1537 #if @GNULIB_LOG10F@
1538 # if @REPLACE_LOG10F@
1539 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1540 # undef log10f
1541 # define log10f rpl_log10f
1542 # endif
1543 _GL_FUNCDECL_RPL (log10f, float, (float x));
1544 _GL_CXXALIAS_RPL (log10f, float, (float x));
1545 # else
1546 # if !@HAVE_LOG10F@
1547 # undef log10f
1548 _GL_FUNCDECL_SYS (log10f, float, (float x));
1549 # endif
1550 _GL_CXXALIAS_SYS (log10f, float, (float x));
1551 # endif
1552 _GL_CXXALIASWARN (log10f);
1553 #elif defined GNULIB_POSIXCHECK
1554 # undef log10f
1555 # if HAVE_RAW_DECL_LOG10F
1556 _GL_WARN_ON_USE (log10f, "log10f is unportable - "
1557 "use gnulib module log10f for portability");
1558 # endif
1559 #endif
1560
1561 #if @GNULIB_LOG10@
1562 # if @REPLACE_LOG10@
1563 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1564 # undef log10
1565 # define log10 rpl_log10
1566 # endif
1567 _GL_FUNCDECL_RPL (log10, double, (double x));
1568 _GL_CXXALIAS_RPL (log10, double, (double x));
1569 # else
1570 _GL_CXXALIAS_SYS (log10, double, (double x));
1571 # endif
1572 # if __GLIBC__ >= 2
1573 _GL_CXXALIASWARN1 (log10, double, (double x));
1574 # endif
1575 #elif defined GNULIB_POSIXCHECK
1576 # undef log10
1577 # if HAVE_RAW_DECL_LOG10
1578 _GL_WARN_ON_USE (log10, "log10 has portability problems - "
1579 "use gnulib module log10 for portability");
1580 # endif
1581 #endif
1582
1583 #if @GNULIB_LOG10L@
1584 # if @REPLACE_LOG10L@
1585 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1586 # undef log10l
1587 # define log10l rpl_log10l
1588 # endif
1589 _GL_FUNCDECL_RPL (log10l, long double, (long double x));
1590 _GL_CXXALIAS_RPL (log10l, long double, (long double x));
1591 # else
1592 # if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@
1593 # undef log10l
1594 _GL_FUNCDECL_SYS (log10l, long double, (long double x));
1595 # endif
1596 _GL_CXXALIAS_SYS (log10l, long double, (long double x));
1597 # endif
1598 # if __GLIBC__ >= 2
1599 _GL_CXXALIASWARN (log10l);
1600 # endif
1601 #elif defined GNULIB_POSIXCHECK
1602 # undef log10l
1603 # if HAVE_RAW_DECL_LOG10L
1604 _GL_WARN_ON_USE (log10l, "log10l is unportable - "
1605 "use gnulib module log10l for portability");
1606 # endif
1607 #endif
1608
1609
1610 #if @GNULIB_LOG1PF@
1611 # if @REPLACE_LOG1PF@
1612 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1613 # undef log1pf
1614 # define log1pf rpl_log1pf
1615 # endif
1616 _GL_FUNCDECL_RPL (log1pf, float, (float x));
1617 _GL_CXXALIAS_RPL (log1pf, float, (float x));
1618 # else
1619 # if !@HAVE_LOG1PF@
1620 _GL_FUNCDECL_SYS (log1pf, float, (float x));
1621 # endif
1622 _GL_CXXALIAS_SYS (log1pf, float, (float x));
1623 # endif
1624 _GL_CXXALIASWARN (log1pf);
1625 #elif defined GNULIB_POSIXCHECK
1626 # undef log1pf
1627 # if HAVE_RAW_DECL_LOG1PF
1628 _GL_WARN_ON_USE (log1pf, "log1pf is unportable - "
1629 "use gnulib module log1pf for portability");
1630 # endif
1631 #endif
1632
1633 #if @GNULIB_LOG1P@
1634 # if @REPLACE_LOG1P@
1635 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1636 # undef log1p
1637 # define log1p rpl_log1p
1638 # endif
1639 _GL_FUNCDECL_RPL (log1p, double, (double x));
1640 _GL_CXXALIAS_RPL (log1p, double, (double x));
1641 # else
1642 # if !@HAVE_LOG1P@
1643 _GL_FUNCDECL_SYS (log1p, double, (double x));
1644 # endif
1645 _GL_CXXALIAS_SYS (log1p, double, (double x));
1646 # endif
1647 # if __GLIBC__ >= 2
1648 _GL_CXXALIASWARN1 (log1p, double, (double x));
1649 # endif
1650 #elif defined GNULIB_POSIXCHECK
1651 # undef log1p
1652 # if HAVE_RAW_DECL_LOG1P
1653 _GL_WARN_ON_USE (log1p, "log1p has portability problems - "
1654 "use gnulib module log1p for portability");
1655 # endif
1656 #endif
1657
1658 #if @GNULIB_LOG1PL@
1659 # if @REPLACE_LOG1PL@
1660 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1661 # undef log1pl
1662 # define log1pl rpl_log1pl
1663 # endif
1664 _GL_FUNCDECL_RPL (log1pl, long double, (long double x));
1665 _GL_CXXALIAS_RPL (log1pl, long double, (long double x));
1666 # else
1667 # if !@HAVE_LOG1PL@
1668 _GL_FUNCDECL_SYS (log1pl, long double, (long double x));
1669 # endif
1670 _GL_CXXALIAS_SYS (log1pl, long double, (long double x));
1671 # endif
1672 # if __GLIBC__ >= 2
1673 _GL_CXXALIASWARN (log1pl);
1674 # endif
1675 #elif defined GNULIB_POSIXCHECK
1676 # undef log1pl
1677 # if HAVE_RAW_DECL_LOG1PL
1678 _GL_WARN_ON_USE (log1pl, "log1pl has portability problems - "
1679 "use gnulib module log1pl for portability");
1680 # endif
1681 #endif
1682
1683
1684 #if @GNULIB_LOG2F@
1685 # if @REPLACE_LOG2F@
1686 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1687 # undef log2f
1688 # define log2f rpl_log2f
1689 # endif
1690 _GL_FUNCDECL_RPL (log2f, float, (float x));
1691 _GL_CXXALIAS_RPL (log2f, float, (float x));
1692 # else
1693 # if !@HAVE_DECL_LOG2F@
1694 # undef log2f
1695 _GL_FUNCDECL_SYS (log2f, float, (float x));
1696 # endif
1697 _GL_CXXALIAS_SYS (log2f, float, (float x));
1698 # endif
1699 # if __GLIBC__ >= 2
1700 _GL_CXXALIASWARN (log2f);
1701 # endif
1702 #elif defined GNULIB_POSIXCHECK
1703 # undef log2f
1704 # if HAVE_RAW_DECL_LOG2F
1705 _GL_WARN_ON_USE (log2f, "log2f is unportable - "
1706 "use gnulib module log2f for portability");
1707 # endif
1708 #endif
1709
1710 #if @GNULIB_LOG2@
1711 # if @REPLACE_LOG2@
1712 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1713 # undef log2
1714 # define log2 rpl_log2
1715 # endif
1716 _GL_FUNCDECL_RPL (log2, double, (double x));
1717 _GL_CXXALIAS_RPL (log2, double, (double x));
1718 # else
1719 # if !@HAVE_DECL_LOG2@
1720 # undef log2
1721 _GL_FUNCDECL_SYS (log2, double, (double x));
1722 # endif
1723 _GL_CXXALIAS_SYS (log2, double, (double x));
1724 # endif
1725 # if __GLIBC__ >= 2
1726 _GL_CXXALIASWARN1 (log2, double, (double x));
1727 # endif
1728 #elif defined GNULIB_POSIXCHECK
1729 # undef log2
1730 # if HAVE_RAW_DECL_LOG2
1731 _GL_WARN_ON_USE (log2, "log2 is unportable - "
1732 "use gnulib module log2 for portability");
1733 # endif
1734 #endif
1735
1736 #if @GNULIB_LOG2L@
1737 # if @REPLACE_LOG2L@
1738 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1739 # undef log2l
1740 # define log2l rpl_log2l
1741 # endif
1742 _GL_FUNCDECL_RPL (log2l, long double, (long double x));
1743 _GL_CXXALIAS_RPL (log2l, long double, (long double x));
1744 # else
1745 # if !@HAVE_DECL_LOG2L@
1746 _GL_FUNCDECL_SYS (log2l, long double, (long double x));
1747 # endif
1748 _GL_CXXALIAS_SYS (log2l, long double, (long double x));
1749 # endif
1750 # if __GLIBC__ >= 2
1751 _GL_CXXALIASWARN (log2l);
1752 # endif
1753 #elif defined GNULIB_POSIXCHECK
1754 # undef log2l
1755 # if HAVE_RAW_DECL_LOG2L
1756 _GL_WARN_ON_USE (log2l, "log2l is unportable - "
1757 "use gnulib module log2l for portability");
1758 # endif
1759 #endif
1760
1761
1762 #if @GNULIB_LOGBF@
1763 # if @REPLACE_LOGBF@
1764 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1765 # undef logbf
1766 # define logbf rpl_logbf
1767 # endif
1768 _GL_FUNCDECL_RPL (logbf, float, (float x));
1769 _GL_CXXALIAS_RPL (logbf, float, (float x));
1770 # else
1771 # if !@HAVE_LOGBF@
1772 _GL_FUNCDECL_SYS (logbf, float, (float x));
1773 # endif
1774 _GL_CXXALIAS_SYS (logbf, float, (float x));
1775 # endif
1776 _GL_CXXALIASWARN (logbf);
1777 #elif defined GNULIB_POSIXCHECK
1778 # undef logbf
1779 # if HAVE_RAW_DECL_LOGBF
1780 _GL_WARN_ON_USE (logbf, "logbf is unportable - "
1781 "use gnulib module logbf for portability");
1782 # endif
1783 #endif
1784
1785 #if @GNULIB_LOGB@
1786 # if @REPLACE_LOGB@
1787 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1788 # undef logb
1789 # define logb rpl_logb
1790 # endif
1791 _GL_FUNCDECL_RPL (logb, double, (double x));
1792 _GL_CXXALIAS_RPL (logb, double, (double x));
1793 # else
1794 # if !@HAVE_DECL_LOGB@
1795 _GL_FUNCDECL_SYS (logb, double, (double x));
1796 # endif
1797 _GL_CXXALIAS_SYS (logb, double, (double x));
1798 # endif
1799 # if __GLIBC__ >= 2
1800 _GL_CXXALIASWARN1 (logb, double, (double x));
1801 # endif
1802 #elif defined GNULIB_POSIXCHECK
1803 # undef logb
1804 # if HAVE_RAW_DECL_LOGB
1805 _GL_WARN_ON_USE (logb, "logb is unportable - "
1806 "use gnulib module logb for portability");
1807 # endif
1808 #endif
1809
1810 #if @GNULIB_LOGBL@
1811 # if @REPLACE_LOGBL@
1812 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1813 # undef logbl
1814 # define logbl rpl_logbl
1815 # endif
1816 _GL_FUNCDECL_RPL (logbl, long double, (long double x));
1817 _GL_CXXALIAS_RPL (logbl, long double, (long double x));
1818 # else
1819 # if !@HAVE_LOGBL@
1820 _GL_FUNCDECL_SYS (logbl, long double, (long double x));
1821 # endif
1822 _GL_CXXALIAS_SYS (logbl, long double, (long double x));
1823 # endif
1824 # if __GLIBC__ >= 2
1825 _GL_CXXALIASWARN (logbl);
1826 # endif
1827 #elif defined GNULIB_POSIXCHECK
1828 # undef logbl
1829 # if HAVE_RAW_DECL_LOGBL
1830 _GL_WARN_ON_USE (logbl, "logbl is unportable - "
1831 "use gnulib module logbl for portability");
1832 # endif
1833 #endif
1834
1835
1836 #if @GNULIB_MODFF@
1837 # if @REPLACE_MODFF@
1838 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1839 # undef modff
1840 # define modff rpl_modff
1841 # endif
1842 _GL_FUNCDECL_RPL (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
1843 _GL_CXXALIAS_RPL (modff, float, (float x, float *iptr));
1844 # else
1845 # if !@HAVE_MODFF@
1846 # undef modff
1847 _GL_FUNCDECL_SYS (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
1848 # endif
1849 _GL_CXXALIAS_SYS (modff, float, (float x, float *iptr));
1850 # endif
1851 _GL_CXXALIASWARN (modff);
1852 #elif defined GNULIB_POSIXCHECK
1853 # undef modff
1854 # if HAVE_RAW_DECL_MODFF
1855 _GL_WARN_ON_USE (modff, "modff is unportable - "
1856 "use gnulib module modff for portability");
1857 # endif
1858 #endif
1859
1860 #if @GNULIB_MODF@
1861 # if @REPLACE_MODF@
1862 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1863 # undef modf
1864 # define modf rpl_modf
1865 # endif
1866 _GL_FUNCDECL_RPL (modf, double, (double x, double *iptr) _GL_ARG_NONNULL ((2)));
1867 _GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
1868 # else
1869 _GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
1870 # endif
1871 # if __GLIBC__ >= 2
1872 _GL_CXXALIASWARN1 (modf, double, (double x, double *iptr));
1873 # endif
1874 #elif defined GNULIB_POSIXCHECK
1875 # undef modf
1876 # if HAVE_RAW_DECL_MODF
1877 _GL_WARN_ON_USE (modf, "modf has portability problems - "
1878 "use gnulib module modf for portability");
1879 # endif
1880 #endif
1881
1882 #if @GNULIB_MODFL@
1883 # if @REPLACE_MODFL@
1884 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1885 # undef modfl
1886 # define modfl rpl_modfl
1887 # endif
1888 _GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr)
1889 _GL_ARG_NONNULL ((2)));
1890 _GL_CXXALIAS_RPL (modfl, long double, (long double x, long double *iptr));
1891 # else
1892 # if !@HAVE_MODFL@
1893 # undef modfl
1894 _GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr)
1895 _GL_ARG_NONNULL ((2)));
1896 # endif
1897 _GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr));
1898 # endif
1899 # if __GLIBC__ >= 2
1900 _GL_CXXALIASWARN (modfl);
1901 # endif
1902 #elif defined GNULIB_POSIXCHECK
1903 # undef modfl
1904 # if HAVE_RAW_DECL_MODFL
1905 _GL_WARN_ON_USE (modfl, "modfl is unportable - "
1906 "use gnulib module modfl for portability");
1907 # endif
1908 #endif
1909
1910
1911 #if @GNULIB_POWF@
1912 # if !@HAVE_POWF@
1913 # undef powf
1914 _GL_FUNCDECL_SYS (powf, float, (float x, float y));
1915 # endif
1916 _GL_CXXALIAS_SYS (powf, float, (float x, float y));
1917 _GL_CXXALIASWARN (powf);
1918 #elif defined GNULIB_POSIXCHECK
1919 # undef powf
1920 # if HAVE_RAW_DECL_POWF
1921 _GL_WARN_ON_USE (powf, "powf is unportable - "
1922 "use gnulib module powf for portability");
1923 # endif
1924 #endif
1925
1926
1927 #if @GNULIB_REMAINDERF@
1928 # if @REPLACE_REMAINDERF@
1929 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1930 # undef remainderf
1931 # define remainderf rpl_remainderf
1932 # endif
1933 _GL_FUNCDECL_RPL (remainderf, float, (float x, float y));
1934 _GL_CXXALIAS_RPL (remainderf, float, (float x, float y));
1935 # else
1936 # if !@HAVE_REMAINDERF@
1937 _GL_FUNCDECL_SYS (remainderf, float, (float x, float y));
1938 # endif
1939 _GL_CXXALIAS_SYS (remainderf, float, (float x, float y));
1940 # endif
1941 _GL_CXXALIASWARN (remainderf);
1942 #elif defined GNULIB_POSIXCHECK
1943 # undef remainderf
1944 # if HAVE_RAW_DECL_REMAINDERF
1945 _GL_WARN_ON_USE (remainderf, "remainderf is unportable - "
1946 "use gnulib module remainderf for portability");
1947 # endif
1948 #endif
1949
1950 #if @GNULIB_REMAINDER@
1951 # if @REPLACE_REMAINDER@
1952 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1953 # undef remainder
1954 # define remainder rpl_remainder
1955 # endif
1956 _GL_FUNCDECL_RPL (remainder, double, (double x, double y));
1957 _GL_CXXALIAS_RPL (remainder, double, (double x, double y));
1958 # else
1959 # if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@
1960 _GL_FUNCDECL_SYS (remainder, double, (double x, double y));
1961 # endif
1962 _GL_CXXALIAS_SYS (remainder, double, (double x, double y));
1963 # endif
1964 # if __GLIBC__ >= 2
1965 _GL_CXXALIASWARN1 (remainder, double, (double x, double y));
1966 # endif
1967 #elif defined GNULIB_POSIXCHECK
1968 # undef remainder
1969 # if HAVE_RAW_DECL_REMAINDER
1970 _GL_WARN_ON_USE (remainder, "remainder is unportable - "
1971 "use gnulib module remainder for portability");
1972 # endif
1973 #endif
1974
1975 #if @GNULIB_REMAINDERL@
1976 # if @REPLACE_REMAINDERL@
1977 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1978 # undef remainderl
1979 # define remainderl rpl_remainderl
1980 # endif
1981 _GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y));
1982 _GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
1983 # else
1984 # if !@HAVE_DECL_REMAINDERL@
1985 # undef remainderl
1986 # if !(defined __cplusplus && defined _AIX)
1987 _GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));
1988 # endif
1989 # endif
1990 _GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));
1991 # endif
1992 # if __GLIBC__ >= 2
1993 _GL_CXXALIASWARN (remainderl);
1994 # endif
1995 #elif defined GNULIB_POSIXCHECK
1996 # undef remainderl
1997 # if HAVE_RAW_DECL_REMAINDERL
1998 _GL_WARN_ON_USE (remainderl, "remainderl is unportable - "
1999 "use gnulib module remainderl for portability");
2000 # endif
2001 #endif
2002
2003
2004 #if @GNULIB_RINTF@
2005 # if !@HAVE_DECL_RINTF@
2006 _GL_FUNCDECL_SYS (rintf, float, (float x));
2007 # endif
2008 _GL_CXXALIAS_SYS (rintf, float, (float x));
2009 _GL_CXXALIASWARN (rintf);
2010 #elif defined GNULIB_POSIXCHECK
2011 # undef rintf
2012 # if HAVE_RAW_DECL_RINTF
2013 _GL_WARN_ON_USE (rintf, "rintf is unportable - "
2014 "use gnulib module rintf for portability");
2015 # endif
2016 #endif
2017
2018 #if @GNULIB_RINT@
2019 # if !@HAVE_RINT@
2020 _GL_FUNCDECL_SYS (rint, double, (double x));
2021 # endif
2022 _GL_CXXALIAS_SYS (rint, double, (double x));
2023 # if __GLIBC__ >= 2
2024 _GL_CXXALIASWARN1 (rint, double, (double x));
2025 # endif
2026 #elif defined GNULIB_POSIXCHECK
2027 # undef rint
2028 # if HAVE_RAW_DECL_RINT
2029 _GL_WARN_ON_USE (rint, "rint is unportable - "
2030 "use gnulib module rint for portability");
2031 # endif
2032 #endif
2033
2034 #if @GNULIB_RINTL@
2035 # if @REPLACE_RINTL@
2036 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2037 # undef rintl
2038 # define rintl rpl_rintl
2039 # endif
2040 _GL_FUNCDECL_RPL (rintl, long double, (long double x));
2041 _GL_CXXALIAS_RPL (rintl, long double, (long double x));
2042 # else
2043 # if !@HAVE_RINTL@
2044 _GL_FUNCDECL_SYS (rintl, long double, (long double x));
2045 # endif
2046 _GL_CXXALIAS_SYS (rintl, long double, (long double x));
2047 # endif
2048 # if __GLIBC__ >= 2
2049 _GL_CXXALIASWARN (rintl);
2050 # endif
2051 #elif defined GNULIB_POSIXCHECK
2052 # undef rintl
2053 # if HAVE_RAW_DECL_RINTL
2054 _GL_WARN_ON_USE (rintl, "rintl is unportable - "
2055 "use gnulib module rintl for portability");
2056 # endif
2057 #endif
2058
2059
2060 #if @GNULIB_ROUNDF@
2061 # if @REPLACE_ROUNDF@
2062 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2063 # undef roundf
2064 # define roundf rpl_roundf
2065 # endif
2066 _GL_FUNCDECL_RPL (roundf, float, (float x));
2067 _GL_CXXALIAS_RPL (roundf, float, (float x));
2068 # else
2069 # if !@HAVE_DECL_ROUNDF@
2070 _GL_FUNCDECL_SYS (roundf, float, (float x));
2071 # endif
2072 _GL_CXXALIAS_SYS (roundf, float, (float x));
2073 # endif
2074 _GL_CXXALIASWARN (roundf);
2075 #elif defined GNULIB_POSIXCHECK
2076 # undef roundf
2077 # if HAVE_RAW_DECL_ROUNDF
2078 _GL_WARN_ON_USE (roundf, "roundf is unportable - "
2079 "use gnulib module roundf for portability");
2080 # endif
2081 #endif
2082
2083 #if @GNULIB_ROUND@
2084 # if @REPLACE_ROUND@
2085 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2086 # undef round
2087 # define round rpl_round
2088 # endif
2089 _GL_FUNCDECL_RPL (round, double, (double x));
2090 _GL_CXXALIAS_RPL (round, double, (double x));
2091 # else
2092 # if !@HAVE_DECL_ROUND@
2093 _GL_FUNCDECL_SYS (round, double, (double x));
2094 # endif
2095 _GL_CXXALIAS_SYS (round, double, (double x));
2096 # endif
2097 # if __GLIBC__ >= 2
2098 _GL_CXXALIASWARN1 (round, double, (double x));
2099 # endif
2100 #elif defined GNULIB_POSIXCHECK
2101 # undef round
2102 # if HAVE_RAW_DECL_ROUND
2103 _GL_WARN_ON_USE (round, "round is unportable - "
2104 "use gnulib module round for portability");
2105 # endif
2106 #endif
2107
2108 #if @GNULIB_ROUNDL@
2109 # if @REPLACE_ROUNDL@
2110 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2111 # undef roundl
2112 # define roundl rpl_roundl
2113 # endif
2114 _GL_FUNCDECL_RPL (roundl, long double, (long double x));
2115 _GL_CXXALIAS_RPL (roundl, long double, (long double x));
2116 # else
2117 # if !@HAVE_DECL_ROUNDL@
2118 # undef roundl
2119 # if !(defined __cplusplus && defined _AIX)
2120 _GL_FUNCDECL_SYS (roundl, long double, (long double x));
2121 # endif
2122 # endif
2123 _GL_CXXALIAS_SYS (roundl, long double, (long double x));
2124 # endif
2125 # if __GLIBC__ >= 2
2126 _GL_CXXALIASWARN (roundl);
2127 # endif
2128 #elif defined GNULIB_POSIXCHECK
2129 # undef roundl
2130 # if HAVE_RAW_DECL_ROUNDL
2131 _GL_WARN_ON_USE (roundl, "roundl is unportable - "
2132 "use gnulib module roundl for portability");
2133 # endif
2134 #endif
2135
2136
2137 #if @GNULIB_SINF@
2138 # if @REPLACE_SINF@
2139 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2140 # undef sinf
2141 # define sinf rpl_sinf
2142 # endif
2143 _GL_FUNCDECL_RPL (sinf, float, (float x));
2144 _GL_CXXALIAS_RPL (sinf, float, (float x));
2145 # else
2146 # if !@HAVE_SINF@
2147 # undef sinf
2148 _GL_FUNCDECL_SYS (sinf, float, (float x));
2149 # endif
2150 _GL_CXXALIAS_SYS (sinf, float, (float x));
2151 # endif
2152 _GL_CXXALIASWARN (sinf);
2153 #elif defined GNULIB_POSIXCHECK
2154 # undef sinf
2155 # if HAVE_RAW_DECL_SINF
2156 _GL_WARN_ON_USE (sinf, "sinf is unportable - "
2157 "use gnulib module sinf for portability");
2158 # endif
2159 #endif
2160
2161 #if @GNULIB_SINL@
2162 # if !@HAVE_SINL@ || !@HAVE_DECL_SINL@
2163 # undef sinl
2164 _GL_FUNCDECL_SYS (sinl, long double, (long double x));
2165 # endif
2166 _GL_CXXALIAS_SYS (sinl, long double, (long double x));
2167 # if __GLIBC__ >= 2
2168 _GL_CXXALIASWARN (sinl);
2169 # endif
2170 #elif defined GNULIB_POSIXCHECK
2171 # undef sinl
2172 # if HAVE_RAW_DECL_SINL
2173 _GL_WARN_ON_USE (sinl, "sinl is unportable - "
2174 "use gnulib module sinl for portability");
2175 # endif
2176 #endif
2177
2178
2179 #if @GNULIB_SINHF@
2180 # if @REPLACE_SINHF@
2181 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2182 # undef sinhf
2183 # define sinhf rpl_sinhf
2184 # endif
2185 _GL_FUNCDECL_RPL (sinhf, float, (float x));
2186 _GL_CXXALIAS_RPL (sinhf, float, (float x));
2187 # else
2188 # if !@HAVE_SINHF@
2189 # undef sinhf
2190 _GL_FUNCDECL_SYS (sinhf, float, (float x));
2191 # endif
2192 _GL_CXXALIAS_SYS (sinhf, float, (float x));
2193 # endif
2194 _GL_CXXALIASWARN (sinhf);
2195 #elif defined GNULIB_POSIXCHECK
2196 # undef sinhf
2197 # if HAVE_RAW_DECL_SINHF
2198 _GL_WARN_ON_USE (sinhf, "sinhf is unportable - "
2199 "use gnulib module sinhf for portability");
2200 # endif
2201 #endif
2202
2203
2204 #if @GNULIB_SQRTF@
2205 # if @REPLACE_SQRTF@
2206 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2207 # undef sqrtf
2208 # define sqrtf rpl_sqrtf
2209 # endif
2210 _GL_FUNCDECL_RPL (sqrtf, float, (float x));
2211 _GL_CXXALIAS_RPL (sqrtf, float, (float x));
2212 # else
2213 # if !@HAVE_SQRTF@
2214 # undef sqrtf
2215 _GL_FUNCDECL_SYS (sqrtf, float, (float x));
2216 # endif
2217 _GL_CXXALIAS_SYS (sqrtf, float, (float x));
2218 # endif
2219 _GL_CXXALIASWARN (sqrtf);
2220 #elif defined GNULIB_POSIXCHECK
2221 # undef sqrtf
2222 # if HAVE_RAW_DECL_SQRTF
2223 _GL_WARN_ON_USE (sqrtf, "sqrtf is unportable - "
2224 "use gnulib module sqrtf for portability");
2225 # endif
2226 #endif
2227
2228 #if @GNULIB_SQRTL@
2229 # if @REPLACE_SQRTL@
2230 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2231 # undef sqrtl
2232 # define sqrtl rpl_sqrtl
2233 # endif
2234 _GL_FUNCDECL_RPL (sqrtl, long double, (long double x));
2235 _GL_CXXALIAS_RPL (sqrtl, long double, (long double x));
2236 # else
2237 # if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@
2238 # undef sqrtl
2239 _GL_FUNCDECL_SYS (sqrtl, long double, (long double x));
2240 # endif
2241 _GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
2242 # endif
2243 # if __GLIBC__ >= 2
2244 _GL_CXXALIASWARN (sqrtl);
2245 # endif
2246 #elif defined GNULIB_POSIXCHECK
2247 # undef sqrtl
2248 # if HAVE_RAW_DECL_SQRTL
2249 _GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
2250 "use gnulib module sqrtl for portability");
2251 # endif
2252 #endif
2253
2254
2255 #if @GNULIB_TANF@
2256 # if @REPLACE_TANF@
2257 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2258 # undef tanf
2259 # define tanf rpl_tanf
2260 # endif
2261 _GL_FUNCDECL_RPL (tanf, float, (float x));
2262 _GL_CXXALIAS_RPL (tanf, float, (float x));
2263 # else
2264 # if !@HAVE_TANF@
2265 # undef tanf
2266 _GL_FUNCDECL_SYS (tanf, float, (float x));
2267 # endif
2268 _GL_CXXALIAS_SYS (tanf, float, (float x));
2269 # endif
2270 _GL_CXXALIASWARN (tanf);
2271 #elif defined GNULIB_POSIXCHECK
2272 # undef tanf
2273 # if HAVE_RAW_DECL_TANF
2274 _GL_WARN_ON_USE (tanf, "tanf is unportable - "
2275 "use gnulib module tanf for portability");
2276 # endif
2277 #endif
2278
2279 #if @GNULIB_TANL@
2280 # if !@HAVE_TANL@ || !@HAVE_DECL_TANL@
2281 # undef tanl
2282 _GL_FUNCDECL_SYS (tanl, long double, (long double x));
2283 # endif
2284 _GL_CXXALIAS_SYS (tanl, long double, (long double x));
2285 # if __GLIBC__ >= 2
2286 _GL_CXXALIASWARN (tanl);
2287 # endif
2288 #elif defined GNULIB_POSIXCHECK
2289 # undef tanl
2290 # if HAVE_RAW_DECL_TANL
2291 _GL_WARN_ON_USE (tanl, "tanl is unportable - "
2292 "use gnulib module tanl for portability");
2293 # endif
2294 #endif
2295
2296
2297 #if @GNULIB_TANHF@
2298 # if @REPLACE_TANHF@
2299 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2300 # undef tanhf
2301 # define tanhf rpl_tanhf
2302 # endif
2303 _GL_FUNCDECL_RPL (tanhf, float, (float x));
2304 _GL_CXXALIAS_RPL (tanhf, float, (float x));
2305 # else
2306 # if !@HAVE_TANHF@
2307 # undef tanhf
2308 _GL_FUNCDECL_SYS (tanhf, float, (float x));
2309 # endif
2310 _GL_CXXALIAS_SYS (tanhf, float, (float x));
2311 # endif
2312 _GL_CXXALIASWARN (tanhf);
2313 #elif defined GNULIB_POSIXCHECK
2314 # undef tanhf
2315 # if HAVE_RAW_DECL_TANHF
2316 _GL_WARN_ON_USE (tanhf, "tanhf is unportable - "
2317 "use gnulib module tanhf for portability");
2318 # endif
2319 #endif
2320
2321
2322 #if @GNULIB_TRUNCF@
2323 # if @REPLACE_TRUNCF@
2324 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2325 # undef truncf
2326 # define truncf rpl_truncf
2327 # endif
2328 _GL_FUNCDECL_RPL (truncf, float, (float x));
2329 _GL_CXXALIAS_RPL (truncf, float, (float x));
2330 # else
2331 # if !@HAVE_DECL_TRUNCF@
2332 _GL_FUNCDECL_SYS (truncf, float, (float x));
2333 # endif
2334 _GL_CXXALIAS_SYS (truncf, float, (float x));
2335 # endif
2336 _GL_CXXALIASWARN (truncf);
2337 #elif defined GNULIB_POSIXCHECK
2338 # undef truncf
2339 # if HAVE_RAW_DECL_TRUNCF
2340 _GL_WARN_ON_USE (truncf, "truncf is unportable - "
2341 "use gnulib module truncf for portability");
2342 # endif
2343 #endif
2344
2345 #if @GNULIB_TRUNC@
2346 # if @REPLACE_TRUNC@
2347 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2348 # undef trunc
2349 # define trunc rpl_trunc
2350 # endif
2351 _GL_FUNCDECL_RPL (trunc, double, (double x));
2352 _GL_CXXALIAS_RPL (trunc, double, (double x));
2353 # else
2354 # if !@HAVE_DECL_TRUNC@
2355 _GL_FUNCDECL_SYS (trunc, double, (double x));
2356 # endif
2357 _GL_CXXALIAS_SYS (trunc, double, (double x));
2358 # endif
2359 # if __GLIBC__ >= 2
2360 _GL_CXXALIASWARN1 (trunc, double, (double x));
2361 # endif
2362 #elif defined GNULIB_POSIXCHECK
2363 # undef trunc
2364 # if HAVE_RAW_DECL_TRUNC
2365 _GL_WARN_ON_USE (trunc, "trunc is unportable - "
2366 "use gnulib module trunc for portability");
2367 # endif
2368 #endif
2369
2370 #if @GNULIB_TRUNCL@
2371 # if @REPLACE_TRUNCL@
2372 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2373 # undef truncl
2374 # define truncl rpl_truncl
2375 # endif
2376 _GL_FUNCDECL_RPL (truncl, long double, (long double x));
2377 _GL_CXXALIAS_RPL (truncl, long double, (long double x));
2378 # else
2379 # if !@HAVE_DECL_TRUNCL@
2380 _GL_FUNCDECL_SYS (truncl, long double, (long double x));
2381 # endif
2382 _GL_CXXALIAS_SYS (truncl, long double, (long double x));
2383 # endif
2384 # if __GLIBC__ >= 2
2385 _GL_CXXALIASWARN (truncl);
2386 # endif
2387 #elif defined GNULIB_POSIXCHECK
2388 # undef truncl
2389 # if HAVE_RAW_DECL_TRUNCL
2390 _GL_WARN_ON_USE (truncl, "truncl is unportable - "
2391 "use gnulib module truncl for portability");
2392 # endif
2393 #endif
2394
2395
2396 #if @GNULIB_MDA_Y0@
2397 /* On native Windows, map 'y0' to '_y0', so that -loldnames is not
2398 required. In C++ with GNULIB_NAMESPACE, avoid differences between
2399 platforms by defining GNULIB_NAMESPACE::y0 always. */
2400 # if defined _WIN32 && !defined __CYGWIN__
2401 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2402 # undef y0
2403 # define y0 _y0
2404 # endif
2405 _GL_CXXALIAS_MDA (y0, double, (double x));
2406 # else
2407 _GL_CXXALIAS_SYS (y0, double, (double x));
2408 # endif
2409 _GL_CXXALIASWARN (y0);
2410 #endif
2411
2412 #if @GNULIB_MDA_Y1@
2413 /* On native Windows, map 'y1' to '_y1', so that -loldnames is not
2414 required. In C++ with GNULIB_NAMESPACE, avoid differences between
2415 platforms by defining GNULIB_NAMESPACE::y1 always. */
2416 # if defined _WIN32 && !defined __CYGWIN__
2417 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2418 # undef y1
2419 # define y1 _y1
2420 # endif
2421 _GL_CXXALIAS_MDA (y1, double, (double x));
2422 # else
2423 _GL_CXXALIAS_SYS (y1, double, (double x));
2424 # endif
2425 _GL_CXXALIASWARN (y1);
2426 #endif
2427
2428 #if @GNULIB_MDA_YN@
2429 /* On native Windows, map 'yn' to '_yn', so that -loldnames is not
2430 required. In C++ with GNULIB_NAMESPACE, avoid differences between
2431 platforms by defining GNULIB_NAMESPACE::yn always. */
2432 # if defined _WIN32 && !defined __CYGWIN__
2433 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2434 # undef yn
2435 # define yn _yn
2436 # endif
2437 _GL_CXXALIAS_MDA (yn, double, (int n, double x));
2438 # else
2439 _GL_CXXALIAS_SYS (yn, double, (int n, double x));
2440 # endif
2441 _GL_CXXALIASWARN (yn);
2442 #endif
2443
2444
2445 /* Definitions of function-like macros come here, after the function
2446 declarations. */
2447
2448
2449 #if @GNULIB_ISFINITE@
2450 # if @REPLACE_ISFINITE@
2451 _GL_EXTERN_C int gl_isfinitef (float x);
2452 _GL_EXTERN_C int gl_isfinited (double x);
2453 _GL_EXTERN_C int gl_isfinitel (long double x);
2454 # undef isfinite
2455 # define isfinite(x) \
2456 (sizeof (x) == sizeof (long double) ? gl_isfinitel (x) : \
2457 sizeof (x) == sizeof (double) ? gl_isfinited (x) : \
2458 gl_isfinitef (x))
2459 # endif
2460 # ifdef __cplusplus
2461 # if defined isfinite || defined GNULIB_NAMESPACE
2462 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
2463 # undef isfinite
2464 # if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
2465 /* This platform's <cmath> possibly defines isfinite through a set of inline
2466 functions. */
2467 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
2468 # define isfinite rpl_isfinite
2469 # define GNULIB_NAMESPACE_LACKS_ISFINITE 1
2470 # else
2471 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, isfinite, bool)
2472 # endif
2473 # endif
2474 # endif
2475 #elif defined GNULIB_POSIXCHECK
2476 # if defined isfinite
2477 _GL_WARN_REAL_FLOATING_DECL (isfinite);
2478 # undef isfinite
2479 # define isfinite(x) _GL_WARN_REAL_FLOATING_IMPL (isfinite, x)
2480 # endif
2481 #endif
2482
2483
2484 #if @GNULIB_ISINF@
2485 # if @REPLACE_ISINF@
2486 _GL_EXTERN_C int gl_isinff (float x);
2487 _GL_EXTERN_C int gl_isinfd (double x);
2488 _GL_EXTERN_C int gl_isinfl (long double x);
2489 # undef isinf
2490 # define isinf(x) \
2491 (sizeof (x) == sizeof (long double) ? gl_isinfl (x) : \
2492 sizeof (x) == sizeof (double) ? gl_isinfd (x) : \
2493 gl_isinff (x))
2494 # endif
2495 # ifdef __cplusplus
2496 # if defined isinf || defined GNULIB_NAMESPACE
2497 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isinf)
2498 # undef isinf
2499 # if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
2500 /* This platform's <cmath> possibly defines isinf through a set of inline
2501 functions. */
2502 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, rpl_isinf, bool)
2503 # define isinf rpl_isinf
2504 # define GNULIB_NAMESPACE_LACKS_ISINF 1
2505 # else
2506 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, isinf, bool)
2507 # endif
2508 # endif
2509 # endif
2510 #elif defined GNULIB_POSIXCHECK
2511 # if defined isinf
2512 _GL_WARN_REAL_FLOATING_DECL (isinf);
2513 # undef isinf
2514 # define isinf(x) _GL_WARN_REAL_FLOATING_IMPL (isinf, x)
2515 # endif
2516 #endif
2517
2518
2519 #if @GNULIB_ISNANF@
2520 /* Test for NaN for 'float' numbers. */
2521 # if @HAVE_ISNANF@
2522 /* The original <math.h> included above provides a declaration of isnan macro
2523 or (older) isnanf function. */
2524 # if (__GNUC__ >= 4) || (__clang_major__ >= 4)
2525 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
2526 GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
2527 # undef isnanf
2528 # define isnanf(x) __builtin_isnan ((float)(x))
2529 # elif defined isnan
2530 # undef isnanf
2531 # define isnanf(x) isnan ((float)(x))
2532 # endif
2533 # else
2534 /* Test whether X is a NaN. */
2535 # undef isnanf
2536 # define isnanf rpl_isnanf
2537 _GL_EXTERN_C int isnanf (float x);
2538 # endif
2539 #endif
2540
2541 #if @GNULIB_ISNAND@
2542 /* Test for NaN for 'double' numbers.
2543 This function is a gnulib extension, unlike isnan() which applied only
2544 to 'double' numbers earlier but now is a type-generic macro. */
2545 # if @HAVE_ISNAND@
2546 /* The original <math.h> included above provides a declaration of isnan
2547 macro. */
2548 # if (__GNUC__ >= 4) || (__clang_major__ >= 4)
2549 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */
2550 # undef isnand
2551 # define isnand(x) __builtin_isnan ((double)(x))
2552 # else
2553 # undef isnand
2554 # define isnand(x) isnan ((double)(x))
2555 # endif
2556 # else
2557 /* Test whether X is a NaN. */
2558 # undef isnand
2559 # define isnand rpl_isnand
2560 _GL_EXTERN_C int isnand (double x);
2561 # endif
2562 #endif
2563
2564 #if @GNULIB_ISNANL@
2565 /* Test for NaN for 'long double' numbers. */
2566 # if @HAVE_ISNANL@
2567 /* The original <math.h> included above provides a declaration of isnan
2568 macro or (older) isnanl function. */
2569 # if (__GNUC__ >= 4) || (__clang_major__ >= 4)
2570 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
2571 GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
2572 # undef isnanl
2573 # define isnanl(x) __builtin_isnan ((long double)(x))
2574 # elif defined isnan
2575 # undef isnanl
2576 # define isnanl(x) isnan ((long double)(x))
2577 # endif
2578 # else
2579 /* Test whether X is a NaN. */
2580 # undef isnanl
2581 # define isnanl rpl_isnanl
2582 _GL_EXTERN_C int isnanl (long double x) _GL_ATTRIBUTE_CONST;
2583 # endif
2584 #endif
2585
2586 /* This must come *after* the snippets for GNULIB_ISNANF and GNULIB_ISNANL! */
2587 #if @GNULIB_ISNAN@
2588 # if @REPLACE_ISNAN@
2589 /* We can't just use the isnanf macro (e.g.) as exposed by
2590 isnanf.h (e.g.) here, because those may end up being macros
2591 that recursively expand back to isnan. So use the gnulib
2592 replacements for them directly. */
2593 # if @HAVE_ISNANF@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
2594 # define gl_isnan_f(x) __builtin_isnan ((float)(x))
2595 # else
2596 _GL_EXTERN_C int rpl_isnanf (float x);
2597 # define gl_isnan_f(x) rpl_isnanf (x)
2598 # endif
2599 # if @HAVE_ISNAND@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
2600 # define gl_isnan_d(x) __builtin_isnan ((double)(x))
2601 # else
2602 _GL_EXTERN_C int rpl_isnand (double x);
2603 # define gl_isnan_d(x) rpl_isnand (x)
2604 # endif
2605 # if @HAVE_ISNANL@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
2606 # define gl_isnan_l(x) __builtin_isnan ((long double)(x))
2607 # else
2608 _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
2609 # define gl_isnan_l(x) rpl_isnanl (x)
2610 # endif
2611 # undef isnan
2612 # define isnan(x) \
2613 (sizeof (x) == sizeof (long double) ? gl_isnan_l (x) : \
2614 sizeof (x) == sizeof (double) ? gl_isnan_d (x) : \
2615 gl_isnan_f (x))
2616 # elif (__GNUC__ >= 4) || (__clang_major__ >= 4)
2617 # undef isnan
2618 # define isnan(x) \
2619 (sizeof (x) == sizeof (long double) ? __builtin_isnan ((long double)(x)) : \
2620 sizeof (x) == sizeof (double) ? __builtin_isnan ((double)(x)) : \
2621 __builtin_isnan ((float)(x)))
2622 # endif
2623 # ifdef __cplusplus
2624 # if defined isnan || defined GNULIB_NAMESPACE
2625 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
2626 # undef isnan
2627 # if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ != 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
2628 /* This platform's <cmath> possibly defines isnan through a set of inline
2629 functions. */
2630 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
2631 # define isnan rpl_isnan
2632 # define GNULIB_NAMESPACE_LACKS_ISNAN 1
2633 # else
2634 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool)
2635 # endif
2636 # endif
2637 # else
2638 /* Ensure isnan is a macro. */
2639 # ifndef isnan
2640 # define isnan isnan
2641 # endif
2642 # endif
2643 #elif defined GNULIB_POSIXCHECK
2644 # if defined isnan
2645 _GL_WARN_REAL_FLOATING_DECL (isnan);
2646 # undef isnan
2647 # define isnan(x) _GL_WARN_REAL_FLOATING_IMPL (isnan, x)
2648 # endif
2649 #endif
2650
2651
2652 #if @GNULIB_SIGNBIT@
2653 # if (@REPLACE_SIGNBIT_USING_BUILTINS@ \
2654 && (!defined __cplusplus || __cplusplus < 201103))
2655 # undef signbit
2656 /* GCC >= 4.0 and clang provide three built-ins for signbit. */
2657 # define signbit(x) \
2658 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
2659 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
2660 __builtin_signbitf (x))
2661 # endif
2662 # if @REPLACE_SIGNBIT@ && !GNULIB_defined_signbit
2663 # undef signbit
2664 _GL_EXTERN_C int gl_signbitf (float arg);
2665 _GL_EXTERN_C int gl_signbitd (double arg);
2666 _GL_EXTERN_C int gl_signbitl (long double arg);
2667 # if (__GNUC__ >= 2 || defined __clang__) && !defined __STRICT_ANSI__
2668 # define _GL_NUM_UINT_WORDS(type) \
2669 ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
2670 # if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf
2671 # define gl_signbitf_OPTIMIZED_MACRO
2672 # define gl_signbitf(arg) \
2673 ({ union { float _value; \
2674 unsigned int _word[_GL_NUM_UINT_WORDS (float)]; \
2675 } _m; \
2676 _m._value = (arg); \
2677 (_m._word[FLT_SIGNBIT_WORD] >> FLT_SIGNBIT_BIT) & 1; \
2678 })
2679 # endif
2680 # if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd
2681 # define gl_signbitd_OPTIMIZED_MACRO
2682 # define gl_signbitd(arg) \
2683 ({ union { double _value; \
2684 unsigned int _word[_GL_NUM_UINT_WORDS (double)]; \
2685 } _m; \
2686 _m._value = (arg); \
2687 (_m._word[DBL_SIGNBIT_WORD] >> DBL_SIGNBIT_BIT) & 1; \
2688 })
2689 # endif
2690 # if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl
2691 # define gl_signbitl_OPTIMIZED_MACRO
2692 # define gl_signbitl(arg) \
2693 ({ union { long double _value; \
2694 unsigned int _word[_GL_NUM_UINT_WORDS (long double)]; \
2695 } _m; \
2696 _m._value = (arg); \
2697 (_m._word[LDBL_SIGNBIT_WORD] >> LDBL_SIGNBIT_BIT) & 1; \
2698 })
2699 # endif
2700 # endif
2701 # define signbit(x) \
2702 (sizeof (x) == sizeof (long double) ? gl_signbitl (x) : \
2703 sizeof (x) == sizeof (double) ? gl_signbitd (x) : \
2704 gl_signbitf (x))
2705 # define GNULIB_defined_signbit 1
2706 # endif
2707 # ifdef __cplusplus
2708 # if defined signbit || defined GNULIB_NAMESPACE
2709 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
2710 # undef signbit
2711 # if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
2712 /* This platform's <cmath> possibly defines signbit through a set of inline
2713 functions. */
2714 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
2715 # define signbit rpl_signbit
2716 # define GNULIB_NAMESPACE_LACKS_SIGNBIT 1
2717 # else
2718 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
2719 # endif
2720 # endif
2721 # endif
2722 #elif defined GNULIB_POSIXCHECK
2723 # if defined signbit
2724 _GL_WARN_REAL_FLOATING_DECL (signbit);
2725 # undef signbit
2726 # define signbit(x) _GL_WARN_REAL_FLOATING_IMPL (signbit, x)
2727 # endif
2728 #endif
2729
2730 _GL_INLINE_HEADER_END
2731
2732 #endif /* _@GUARD_PREFIX@_MATH_H */
2733 #endif /* _GL_INCLUDING_MATH_H */
2734 #endif /* _@GUARD_PREFIX@_MATH_H */
2735 #endif