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