13a8617a8SJordan K. Hubbard /* 23a8617a8SJordan K. Hubbard * ==================================================== 33a8617a8SJordan K. Hubbard * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 43a8617a8SJordan K. Hubbard * 53a8617a8SJordan K. Hubbard * Developed at SunPro, a Sun Microsystems, Inc. business. 63a8617a8SJordan K. Hubbard * Permission to use, copy, modify, and distribute this 73a8617a8SJordan K. Hubbard * software is freely granted, provided that this notice 83a8617a8SJordan K. Hubbard * is preserved. 93a8617a8SJordan K. Hubbard * ==================================================== 103a8617a8SJordan K. Hubbard */ 113a8617a8SJordan K. Hubbard 123a8617a8SJordan K. Hubbard /* 133a8617a8SJordan K. Hubbard * from: @(#)fdlibm.h 5.1 93/09/24 147f3dea24SPeter Wemm * $FreeBSD$ 153a8617a8SJordan K. Hubbard */ 163a8617a8SJordan K. Hubbard 173a8617a8SJordan K. Hubbard #ifndef _MATH_H_ 183a8617a8SJordan K. Hubbard #define _MATH_H_ 193a8617a8SJordan K. Hubbard 208cf5ed51SMike Barcroft #include <sys/_types.h> 218cf5ed51SMike Barcroft 223a8617a8SJordan K. Hubbard /* 233a8617a8SJordan K. Hubbard * ANSI/POSIX 243a8617a8SJordan K. Hubbard */ 2583999f5aSArchie Cobbs extern const union __infinity_un { 2683999f5aSArchie Cobbs unsigned char __uc[8]; 2783999f5aSArchie Cobbs double __ud; 2883999f5aSArchie Cobbs } __infinity; 298cf5ed51SMike Barcroft 308cf5ed51SMike Barcroft extern const union __nan_un { 318cf5ed51SMike Barcroft unsigned char __uc[sizeof(float)]; 328cf5ed51SMike Barcroft float __uf; 338cf5ed51SMike Barcroft } __nan; 348cf5ed51SMike Barcroft 358cf5ed51SMike Barcroft #define FP_ILOGB0 (-0x7fffffff - 1) /* INT_MIN */ 368cf5ed51SMike Barcroft #define FP_ILOGBNAN 0x7fffffff /* INT_MAX */ 3783999f5aSArchie Cobbs #define HUGE_VAL (__infinity.__ud) 388cf5ed51SMike Barcroft #define HUGE_VALF (float)HUGE_VAL 398cf5ed51SMike Barcroft #define HUGE_VALL (long double)HUGE_VAL 408cf5ed51SMike Barcroft #define INFINITY HUGE_VALF 418cf5ed51SMike Barcroft #define NAN (__nan.__uf) 428cf5ed51SMike Barcroft 436eb2d83eSBruce Evans #if __ISO_C_VISIBLE >= 1999 446eb2d83eSBruce Evans #define MATH_ERRNO 1 456eb2d83eSBruce Evans #define MATH_ERREXCEPT 2 466eb2d83eSBruce Evans #define math_errhandling 0 476eb2d83eSBruce Evans #endif 486eb2d83eSBruce Evans 498cf5ed51SMike Barcroft /* Symbolic constants to classify floating point numbers. */ 505d62092fSMike Barcroft #define FP_INFINITE 0x01 515d62092fSMike Barcroft #define FP_NAN 0x02 525d62092fSMike Barcroft #define FP_NORMAL 0x04 535d62092fSMike Barcroft #define FP_SUBNORMAL 0x08 545d62092fSMike Barcroft #define FP_ZERO 0x10 558cf5ed51SMike Barcroft #define fpclassify(x) \ 568cf5ed51SMike Barcroft ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ 578cf5ed51SMike Barcroft : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ 588cf5ed51SMike Barcroft : __fpclassifyl(x)) 595d62092fSMike Barcroft 606d3bd953SDavid Schultz #define isfinite(x) ((fpclassify(x) & (FP_INFINITE|FP_NAN)) == 0) 615d62092fSMike Barcroft #define isinf(x) (fpclassify(x) == FP_INFINITE) 625d62092fSMike Barcroft #define isnan(x) (fpclassify(x) == FP_NAN) 635d62092fSMike Barcroft #define isnanf(x) isnan(x) 645d62092fSMike Barcroft #define isnormal(x) (fpclassify(x) == FP_NORMAL) 655d62092fSMike Barcroft 665d62092fSMike Barcroft #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) 675d62092fSMike Barcroft #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) 685d62092fSMike Barcroft #define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) 695d62092fSMike Barcroft #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) 705d62092fSMike Barcroft #define islessgreater(x, y) (!isunordered((x), (y)) && \ 715d62092fSMike Barcroft ((x) > (y) || (y) > (x))) 725d62092fSMike Barcroft #define isunordered(x, y) (isnan(x) || isnan(y)) 735d62092fSMike Barcroft 748e9b2831SMike Barcroft #define signbit(x) __signbit(x) 758cf5ed51SMike Barcroft 768cf5ed51SMike Barcroft typedef __double_t double_t; 778cf5ed51SMike Barcroft typedef __float_t float_t; 783a8617a8SJordan K. Hubbard 793a8617a8SJordan K. Hubbard /* 803a8617a8SJordan K. Hubbard * XOPEN/SVID 813a8617a8SJordan K. Hubbard */ 823a8617a8SJordan K. Hubbard #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 833a8617a8SJordan K. Hubbard #define M_E 2.7182818284590452354 /* e */ 843a8617a8SJordan K. Hubbard #define M_LOG2E 1.4426950408889634074 /* log 2e */ 853a8617a8SJordan K. Hubbard #define M_LOG10E 0.43429448190325182765 /* log 10e */ 863a8617a8SJordan K. Hubbard #define M_LN2 0.69314718055994530942 /* log e2 */ 873a8617a8SJordan K. Hubbard #define M_LN10 2.30258509299404568402 /* log e10 */ 883a8617a8SJordan K. Hubbard #define M_PI 3.14159265358979323846 /* pi */ 893a8617a8SJordan K. Hubbard #define M_PI_2 1.57079632679489661923 /* pi/2 */ 903a8617a8SJordan K. Hubbard #define M_PI_4 0.78539816339744830962 /* pi/4 */ 913a8617a8SJordan K. Hubbard #define M_1_PI 0.31830988618379067154 /* 1/pi */ 923a8617a8SJordan K. Hubbard #define M_2_PI 0.63661977236758134308 /* 2/pi */ 933a8617a8SJordan K. Hubbard #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ 943a8617a8SJordan K. Hubbard #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ 953a8617a8SJordan K. Hubbard #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ 963a8617a8SJordan K. Hubbard 973a8617a8SJordan K. Hubbard #define MAXFLOAT ((float)3.40282346638528860e+38) 983a8617a8SJordan K. Hubbard extern int signgam; 993a8617a8SJordan K. Hubbard 1003a8617a8SJordan K. Hubbard #if !defined(_XOPEN_SOURCE) 1013a8617a8SJordan K. Hubbard enum fdversion {fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix}; 1023a8617a8SJordan K. Hubbard 1033a8617a8SJordan K. Hubbard #define _LIB_VERSION_TYPE enum fdversion 1043a8617a8SJordan K. Hubbard #define _LIB_VERSION _fdlib_version 1053a8617a8SJordan K. Hubbard 1063a8617a8SJordan K. Hubbard /* if global variable _LIB_VERSION is not desirable, one may 1073a8617a8SJordan K. Hubbard * change the following to be a constant by: 1083a8617a8SJordan K. Hubbard * #define _LIB_VERSION_TYPE const enum version 1093a8617a8SJordan K. Hubbard * In that case, after one initializes the value _LIB_VERSION (see 1103a8617a8SJordan K. Hubbard * s_lib_version.c) during compile time, it cannot be modified 1113a8617a8SJordan K. Hubbard * in the middle of a program 1123a8617a8SJordan K. Hubbard */ 1133a8617a8SJordan K. Hubbard extern _LIB_VERSION_TYPE _LIB_VERSION; 1143a8617a8SJordan K. Hubbard 1153a8617a8SJordan K. Hubbard #define _IEEE_ fdlibm_ieee 1163a8617a8SJordan K. Hubbard #define _SVID_ fdlibm_svid 1173a8617a8SJordan K. Hubbard #define _XOPEN_ fdlibm_xopen 1183a8617a8SJordan K. Hubbard #define _POSIX_ fdlibm_posix 1193a8617a8SJordan K. Hubbard 120d6f56cfcSDavid E. O'Brien /* We have a problem when using C++ since `exception' is a reserved 121d6f56cfcSDavid E. O'Brien name in C++. */ 1226a9280beSBruce Evans #ifndef __cplusplus 1233a8617a8SJordan K. Hubbard struct exception { 1243a8617a8SJordan K. Hubbard int type; 1253a8617a8SJordan K. Hubbard char *name; 1263a8617a8SJordan K. Hubbard double arg1; 1273a8617a8SJordan K. Hubbard double arg2; 1283a8617a8SJordan K. Hubbard double retval; 1293a8617a8SJordan K. Hubbard }; 1306a9280beSBruce Evans #endif 1313a8617a8SJordan K. Hubbard 132219cbe10SBruce Evans #if 0 13354e9b367SBruce Evans /* Old value from 4.4BSD-Lite math.h; this is probably better. */ 134219cbe10SBruce Evans #define HUGE HUGE_VAL 135219cbe10SBruce Evans #else 1363a8617a8SJordan K. Hubbard #define HUGE MAXFLOAT 137219cbe10SBruce Evans #endif 1383a8617a8SJordan K. Hubbard 1393a8617a8SJordan K. Hubbard /* 1403a8617a8SJordan K. Hubbard * set X_TLOSS = pi*2**52, which is possibly defined in <values.h> 1413a8617a8SJordan K. Hubbard * (one may replace the following line by "#include <values.h>") 1423a8617a8SJordan K. Hubbard */ 1433a8617a8SJordan K. Hubbard 1443a8617a8SJordan K. Hubbard #define X_TLOSS 1.41484755040568800000e+16 1453a8617a8SJordan K. Hubbard 1463a8617a8SJordan K. Hubbard #define DOMAIN 1 1473a8617a8SJordan K. Hubbard #define SING 2 1483a8617a8SJordan K. Hubbard #define OVERFLOW 3 1493a8617a8SJordan K. Hubbard #define UNDERFLOW 4 1503a8617a8SJordan K. Hubbard #define TLOSS 5 1513a8617a8SJordan K. Hubbard #define PLOSS 6 1523a8617a8SJordan K. Hubbard 1533a8617a8SJordan K. Hubbard #endif /* !_XOPEN_SOURCE */ 1543a8617a8SJordan K. Hubbard #endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */ 1553a8617a8SJordan K. Hubbard 1563a8617a8SJordan K. Hubbard #include <sys/cdefs.h> 1576898f8c4SBruce Evans 158219cbe10SBruce Evans /* 159219cbe10SBruce Evans * Most of these functions have the side effect of setting errno, so they 160219cbe10SBruce Evans * are not declared as __pure2. (XXX: this point needs to be revisited, 161219cbe10SBruce Evans * since C99 doesn't require the mistake of setting errno, and we mostly 162219cbe10SBruce Evans * don't set it anyway. In C99, pragmas and functions for changing the 163219cbe10SBruce Evans * rounding mode affect the purity of these functions.) 164219cbe10SBruce Evans */ 1656898f8c4SBruce Evans __BEGIN_DECLS 1663a8617a8SJordan K. Hubbard /* 1673a8617a8SJordan K. Hubbard * ANSI/POSIX 1683a8617a8SJordan K. Hubbard */ 1695d62092fSMike Barcroft int __fpclassifyd(double) __pure2; 1705d62092fSMike Barcroft int __fpclassifyf(float) __pure2; 1715d62092fSMike Barcroft int __fpclassifyl(long double) __pure2; 1725d62092fSMike Barcroft int __signbit(double) __pure2; 1738cf5ed51SMike Barcroft 17469160b1eSDavid E. O'Brien double acos(double); 17569160b1eSDavid E. O'Brien double asin(double); 17669160b1eSDavid E. O'Brien double atan(double); 17769160b1eSDavid E. O'Brien double atan2(double, double); 17869160b1eSDavid E. O'Brien double cos(double); 17969160b1eSDavid E. O'Brien double sin(double); 18069160b1eSDavid E. O'Brien double tan(double); 1813a8617a8SJordan K. Hubbard 18269160b1eSDavid E. O'Brien double cosh(double); 18369160b1eSDavid E. O'Brien double sinh(double); 18469160b1eSDavid E. O'Brien double tanh(double); 1853a8617a8SJordan K. Hubbard 18669160b1eSDavid E. O'Brien double exp(double); 187219cbe10SBruce Evans double frexp(double, int *); /* fundamentally !__pure2 */ 18869160b1eSDavid E. O'Brien double ldexp(double, int); 18969160b1eSDavid E. O'Brien double log(double); 19069160b1eSDavid E. O'Brien double log10(double); 191219cbe10SBruce Evans double modf(double, double *); /* fundamentally !__pure2 */ 1923a8617a8SJordan K. Hubbard 19369160b1eSDavid E. O'Brien double pow(double, double); 19469160b1eSDavid E. O'Brien double sqrt(double); 1953a8617a8SJordan K. Hubbard 19669160b1eSDavid E. O'Brien double ceil(double); 19769160b1eSDavid E. O'Brien double fabs(double); 19869160b1eSDavid E. O'Brien double floor(double); 19969160b1eSDavid E. O'Brien double fmod(double, double); 2003a8617a8SJordan K. Hubbard 201219cbe10SBruce Evans /* 202219cbe10SBruce Evans * These functions are not in C90 so they can be "right". The ones that 203219cbe10SBruce Evans * never set errno in lib/msun are declared as __pure2. 204219cbe10SBruce Evans */ 2053a8617a8SJordan K. Hubbard #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 20669160b1eSDavid E. O'Brien double erf(double); 207219cbe10SBruce Evans double erfc(double) __pure2; 208219cbe10SBruce Evans int finite(double) __pure2; 20969160b1eSDavid E. O'Brien double gamma(double); 21069160b1eSDavid E. O'Brien double hypot(double, double); 21169160b1eSDavid E. O'Brien double j0(double); 21269160b1eSDavid E. O'Brien double j1(double); 21369160b1eSDavid E. O'Brien double jn(int, double); 21469160b1eSDavid E. O'Brien double lgamma(double); 21569160b1eSDavid E. O'Brien double y0(double); 21669160b1eSDavid E. O'Brien double y1(double); 21769160b1eSDavid E. O'Brien double yn(int, double); 2183a8617a8SJordan K. Hubbard 2193a8617a8SJordan K. Hubbard #if !defined(_XOPEN_SOURCE) 22069160b1eSDavid E. O'Brien double acosh(double); 22169160b1eSDavid E. O'Brien double asinh(double); 22269160b1eSDavid E. O'Brien double atanh(double); 223219cbe10SBruce Evans double cbrt(double) __pure2; 224219cbe10SBruce Evans double logb(double) __pure2; 22569160b1eSDavid E. O'Brien double nextafter(double, double); 22669160b1eSDavid E. O'Brien double remainder(double, double); 22769160b1eSDavid E. O'Brien double scalb(double, double); 22846d7c297SBruce Evans double tgamma(double); 2293a8617a8SJordan K. Hubbard 2306a9280beSBruce Evans #ifndef __cplusplus 23169160b1eSDavid E. O'Brien int matherr(struct exception *); 2326a9280beSBruce Evans #endif 2333a8617a8SJordan K. Hubbard 2343a8617a8SJordan K. Hubbard /* 2353a8617a8SJordan K. Hubbard * IEEE Test Vector 2363a8617a8SJordan K. Hubbard */ 23769160b1eSDavid E. O'Brien double significand(double); 2383a8617a8SJordan K. Hubbard 2393a8617a8SJordan K. Hubbard /* 2403a8617a8SJordan K. Hubbard * Functions callable from C, intended to support IEEE arithmetic. 2413a8617a8SJordan K. Hubbard */ 242219cbe10SBruce Evans double copysign(double, double) __pure2; 24369160b1eSDavid E. O'Brien int ilogb(double); 244219cbe10SBruce Evans double rint(double) __pure2; 24569160b1eSDavid E. O'Brien double scalbn(double, int); 2463a8617a8SJordan K. Hubbard 2473a8617a8SJordan K. Hubbard /* 2483a8617a8SJordan K. Hubbard * BSD math library entry points 2493a8617a8SJordan K. Hubbard */ 25069160b1eSDavid E. O'Brien double drem(double, double); 251219cbe10SBruce Evans double expm1(double) __pure2; 252219cbe10SBruce Evans double log1p(double) __pure2; 2533a8617a8SJordan K. Hubbard 2543a8617a8SJordan K. Hubbard /* 2553a8617a8SJordan K. Hubbard * Reentrant version of gamma & lgamma; passes signgam back by reference 2563a8617a8SJordan K. Hubbard * as the second argument; user must allocate space for signgam. 2573a8617a8SJordan K. Hubbard */ 2586f9622a9SMike Barcroft #if __BSD_VISIBLE 25969160b1eSDavid E. O'Brien double gamma_r(double, int *); 26069160b1eSDavid E. O'Brien double lgamma_r(double, int *); 261457f6cd2SWarner Losh #endif /* __BSD_VISIBLE */ 2623a8617a8SJordan K. Hubbard 2633a8617a8SJordan K. Hubbard /* float versions of ANSI/POSIX functions */ 26469160b1eSDavid E. O'Brien float acosf(float); 26569160b1eSDavid E. O'Brien float asinf(float); 26669160b1eSDavid E. O'Brien float atanf(float); 26769160b1eSDavid E. O'Brien float atan2f(float, float); 26869160b1eSDavid E. O'Brien float cosf(float); 26969160b1eSDavid E. O'Brien float sinf(float); 27069160b1eSDavid E. O'Brien float tanf(float); 2713a8617a8SJordan K. Hubbard 27269160b1eSDavid E. O'Brien float coshf(float); 27369160b1eSDavid E. O'Brien float sinhf(float); 27469160b1eSDavid E. O'Brien float tanhf(float); 2753a8617a8SJordan K. Hubbard 27669160b1eSDavid E. O'Brien float expf(float); 277219cbe10SBruce Evans float frexpf(float, int *); /* fundamentally !__pure2 */ 27869160b1eSDavid E. O'Brien float ldexpf(float, int); 27969160b1eSDavid E. O'Brien float logf(float); 28069160b1eSDavid E. O'Brien float log10f(float); 281219cbe10SBruce Evans float modff(float, float *); /* fundamentally !__pure2 */ 2823a8617a8SJordan K. Hubbard 28369160b1eSDavid E. O'Brien float powf(float, float); 28469160b1eSDavid E. O'Brien float sqrtf(float); 2853a8617a8SJordan K. Hubbard 28669160b1eSDavid E. O'Brien float ceilf(float); 28769160b1eSDavid E. O'Brien float fabsf(float); 28869160b1eSDavid E. O'Brien float floorf(float); 28969160b1eSDavid E. O'Brien float fmodf(float, float); 2903a8617a8SJordan K. Hubbard 29169160b1eSDavid E. O'Brien float erff(float); 292219cbe10SBruce Evans float erfcf(float) __pure2; 293219cbe10SBruce Evans int finitef(float) __pure2; 29469160b1eSDavid E. O'Brien float gammaf(float); 295219cbe10SBruce Evans float hypotf(float, float) __pure2; 29669160b1eSDavid E. O'Brien float j0f(float); 29769160b1eSDavid E. O'Brien float j1f(float); 29869160b1eSDavid E. O'Brien float jnf(int, float); 29969160b1eSDavid E. O'Brien float lgammaf(float); 30069160b1eSDavid E. O'Brien float y0f(float); 30169160b1eSDavid E. O'Brien float y1f(float); 30269160b1eSDavid E. O'Brien float ynf(int, float); 3033a8617a8SJordan K. Hubbard 30469160b1eSDavid E. O'Brien float acoshf(float); 30569160b1eSDavid E. O'Brien float asinhf(float); 30669160b1eSDavid E. O'Brien float atanhf(float); 307219cbe10SBruce Evans float cbrtf(float) __pure2; 308219cbe10SBruce Evans float logbf(float) __pure2; 30969160b1eSDavid E. O'Brien float nextafterf(float, float); 31069160b1eSDavid E. O'Brien float remainderf(float, float); 31169160b1eSDavid E. O'Brien float scalbf(float, float); 3123a8617a8SJordan K. Hubbard 3133a8617a8SJordan K. Hubbard /* 3143a8617a8SJordan K. Hubbard * float version of IEEE Test Vector 3153a8617a8SJordan K. Hubbard */ 31669160b1eSDavid E. O'Brien float significandf(float); 3173a8617a8SJordan K. Hubbard 3183a8617a8SJordan K. Hubbard /* 3193a8617a8SJordan K. Hubbard * Float versions of functions callable from C, intended to support 3203a8617a8SJordan K. Hubbard * IEEE arithmetic. 3213a8617a8SJordan K. Hubbard */ 322219cbe10SBruce Evans float copysignf(float, float) __pure2; 32369160b1eSDavid E. O'Brien int ilogbf(float); 32469160b1eSDavid E. O'Brien float rintf(float); 32569160b1eSDavid E. O'Brien float scalbnf(float, int); 3263a8617a8SJordan K. Hubbard 3273a8617a8SJordan K. Hubbard /* 3283a8617a8SJordan K. Hubbard * float versions of BSD math library entry points 3293a8617a8SJordan K. Hubbard */ 33069160b1eSDavid E. O'Brien float dremf(float, float); 331219cbe10SBruce Evans float expm1f(float) __pure2; 332219cbe10SBruce Evans float log1pf(float) __pure2; 3333a8617a8SJordan K. Hubbard 3343a8617a8SJordan K. Hubbard /* 3353a8617a8SJordan K. Hubbard * Float versions of reentrant version of gamma & lgamma; passes 3363a8617a8SJordan K. Hubbard * signgam back by reference as the second argument; user must 3373a8617a8SJordan K. Hubbard * allocate space for signgam. 3383a8617a8SJordan K. Hubbard */ 3396f9622a9SMike Barcroft #if __BSD_VISIBLE 34069160b1eSDavid E. O'Brien float gammaf_r(float, int *); 34169160b1eSDavid E. O'Brien float lgammaf_r(float, int *); 342457f6cd2SWarner Losh #endif /* __BSD_VISIBLE */ 3433a8617a8SJordan K. Hubbard 34429bd23abSDag-Erling Smørgrav /* 34529bd23abSDag-Erling Smørgrav * long double versions of ISO/POSIX math functions 34629bd23abSDag-Erling Smørgrav */ 34729bd23abSDag-Erling Smørgrav #if 0 34829bd23abSDag-Erling Smørgrav long double acoshl(long double); 34929bd23abSDag-Erling Smørgrav long double acosl(long double); 35029bd23abSDag-Erling Smørgrav long double asinhl(long double); 35129bd23abSDag-Erling Smørgrav long double asinl(long double); 35229bd23abSDag-Erling Smørgrav long double atan2l(long double, long double); 35329bd23abSDag-Erling Smørgrav long double atanhl(long double); 35429bd23abSDag-Erling Smørgrav long double atanl(long double); 35529bd23abSDag-Erling Smørgrav long double cbrtl(long double); 35629bd23abSDag-Erling Smørgrav long double ceill(long double); 35729bd23abSDag-Erling Smørgrav long double copysignl(long double, long double); 35829bd23abSDag-Erling Smørgrav long double coshl(long double); 35929bd23abSDag-Erling Smørgrav long double cosl(long double); 36029bd23abSDag-Erling Smørgrav long double erfcl(long double); 36129bd23abSDag-Erling Smørgrav long double erfl(long double); 36229bd23abSDag-Erling Smørgrav long double exp2l(long double); 36329bd23abSDag-Erling Smørgrav long double expl(long double); 36429bd23abSDag-Erling Smørgrav long double expm1l(long double); 36529bd23abSDag-Erling Smørgrav #endif 36629bd23abSDag-Erling Smørgrav long double fabsl(long double); 36729bd23abSDag-Erling Smørgrav #if 0 36829bd23abSDag-Erling Smørgrav long double fdiml(long double, long double); 36929bd23abSDag-Erling Smørgrav long double floorl(long double); 37029bd23abSDag-Erling Smørgrav long double fmal(long double, long double, long double); 37129bd23abSDag-Erling Smørgrav long double fmaxl(long double, long double); 37229bd23abSDag-Erling Smørgrav long double fminl(long double, long double); 37329bd23abSDag-Erling Smørgrav long double fmodl(long double, long double); 37429bd23abSDag-Erling Smørgrav long double frexpl(long double value, int *); 37529bd23abSDag-Erling Smørgrav long double hypotl(long double, long double); 37629bd23abSDag-Erling Smørgrav int ilogbl(long double); 37729bd23abSDag-Erling Smørgrav long double ldexpl(long double, int); 37829bd23abSDag-Erling Smørgrav long double lgammal(long double); 37929bd23abSDag-Erling Smørgrav long long llrintl(long double); 38029bd23abSDag-Erling Smørgrav long long llroundl(long double); 38129bd23abSDag-Erling Smørgrav long double log10l(long double); 38229bd23abSDag-Erling Smørgrav long double log1pl(long double); 38329bd23abSDag-Erling Smørgrav long double log2l(long double); 38429bd23abSDag-Erling Smørgrav long double logbl(long double); 38529bd23abSDag-Erling Smørgrav long double logl(long double); 38629bd23abSDag-Erling Smørgrav long lrintl(long double); 38729bd23abSDag-Erling Smørgrav long lroundl(long double); 38829bd23abSDag-Erling Smørgrav long double modfl(long double, long double *); 38929bd23abSDag-Erling Smørgrav long double nanl(const char *); 39029bd23abSDag-Erling Smørgrav long double nearbyintl(long double); 39129bd23abSDag-Erling Smørgrav long double nextafterl(long double, long double); 39229bd23abSDag-Erling Smørgrav double nexttoward(double, long double); 39329bd23abSDag-Erling Smørgrav float nexttowardf(float, long double); 39429bd23abSDag-Erling Smørgrav long double nexttowardl(long double, long double); 39529bd23abSDag-Erling Smørgrav long double powl(long double, long double); 39629bd23abSDag-Erling Smørgrav long double remainderl(long double, long double); 39729bd23abSDag-Erling Smørgrav long double remquol(long double, long double, int *); 39829bd23abSDag-Erling Smørgrav long double rintl(long double); 39929bd23abSDag-Erling Smørgrav long double roundl(long double); 40029bd23abSDag-Erling Smørgrav long double scalblnl(long double, long); 40129bd23abSDag-Erling Smørgrav long double scalbnl(long double, int); 40229bd23abSDag-Erling Smørgrav long double sinhl(long double); 40329bd23abSDag-Erling Smørgrav long double sinl(long double); 40429bd23abSDag-Erling Smørgrav long double sqrtl(long double); 40529bd23abSDag-Erling Smørgrav long double tanhl(long double); 40629bd23abSDag-Erling Smørgrav long double tanl(long double); 40729bd23abSDag-Erling Smørgrav long double tgammal(long double); 40829bd23abSDag-Erling Smørgrav long double truncl(long double); 40929bd23abSDag-Erling Smørgrav #endif 41029bd23abSDag-Erling Smørgrav 4113a8617a8SJordan K. Hubbard #endif /* !_XOPEN_SOURCE */ 4123a8617a8SJordan K. Hubbard #endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */ 4133a8617a8SJordan K. Hubbard __END_DECLS 4143a8617a8SJordan K. Hubbard 415ef1ee63eSAlexey Zelkin #endif /* !_MATH_H_ */ 416