| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: math.h,v 1.62 2013/04/19 16:40:59 joerg Exp $ */ | | 1 | /* $NetBSD: math.h,v 1.63 2013/09/16 15:54:42 martin Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * ==================================================== | | 4 | * ==================================================== |
5 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. | | 5 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
6 | * | | 6 | * |
7 | * Developed at SunPro, a Sun Microsystems, Inc. business. | | 7 | * Developed at SunPro, a Sun Microsystems, Inc. business. |
8 | * Permission to use, copy, modify, and distribute this | | 8 | * Permission to use, copy, modify, and distribute this |
9 | * software is freely granted, provided that this notice | | 9 | * software is freely granted, provided that this notice |
10 | * is preserved. | | 10 | * is preserved. |
11 | * ==================================================== | | 11 | * ==================================================== |
12 | */ | | 12 | */ |
13 | | | 13 | |
14 | /* | | 14 | /* |
| @@ -462,34 +462,34 @@ float fminf(float, float); | | | @@ -462,34 +462,34 @@ float fminf(float, float); |
462 | long double fdiml(long double, long double); | | 462 | long double fdiml(long double, long double); |
463 | long double fmal(long double, long double, long double); | | 463 | long double fmal(long double, long double, long double); |
464 | long double fmaxl(long double, long double); | | 464 | long double fmaxl(long double, long double); |
465 | long double fminl(long double, long double); | | 465 | long double fminl(long double, long double); |
466 | | | 466 | |
467 | #endif /* !_ANSI_SOURCE && ... */ | | 467 | #endif /* !_ANSI_SOURCE && ... */ |
468 | | | 468 | |
469 | #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ | | 469 | #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ |
470 | !defined(_XOPEN_SOURCE) || \ | | 470 | !defined(_XOPEN_SOURCE) || \ |
471 | ((__STDC_VERSION__ - 0) >= 199901L) || \ | | 471 | ((__STDC_VERSION__ - 0) >= 199901L) || \ |
472 | ((_POSIX_C_SOURCE - 0) >= 200112L) || \ | | 472 | ((_POSIX_C_SOURCE - 0) >= 200112L) || \ |
473 | defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) | | 473 | defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) |
474 | /* 7.12.3.3 int isinf(real-floating x) */ | | 474 | /* 7.12.3.3 int isinf(real-floating x) */ |
475 | #ifdef __isinf | | 475 | #if defined(__isinf) || defined(__HAVE_INLINE___ISINF) |
476 | #define isinf(__x) __isinf(__x) | | 476 | #define isinf(__x) __isinf(__x) |
477 | #else | | 477 | #else |
478 | #define isinf(__x) __fpmacro_unary_floating(isinf, __x) | | 478 | #define isinf(__x) __fpmacro_unary_floating(isinf, __x) |
479 | #endif | | 479 | #endif |
480 | | | 480 | |
481 | /* 7.12.3.4 int isnan(real-floating x) */ | | 481 | /* 7.12.3.4 int isnan(real-floating x) */ |
482 | #ifdef __isnan | | 482 | #if defined(__isnan) || defined(__HAVE_INLINE___ISNAN) |
483 | #define isnan(__x) __isnan(__x) | | 483 | #define isnan(__x) __isnan(__x) |
484 | #else | | 484 | #else |
485 | #define isnan(__x) __fpmacro_unary_floating(isnan, __x) | | 485 | #define isnan(__x) __fpmacro_unary_floating(isnan, __x) |
486 | #endif | | 486 | #endif |
487 | #endif /* !_ANSI_SOURCE && ... */ | | 487 | #endif /* !_ANSI_SOURCE && ... */ |
488 | | | 488 | |
489 | #if defined(_NETBSD_SOURCE) | | 489 | #if defined(_NETBSD_SOURCE) |
490 | #ifndef __cplusplus | | 490 | #ifndef __cplusplus |
491 | int matherr(struct exception *); | | 491 | int matherr(struct exception *); |
492 | #endif | | 492 | #endif |
493 | | | 493 | |
494 | /* | | 494 | /* |
495 | * IEEE Test Vector | | 495 | * IEEE Test Vector |