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 358f3f7c66SDavid Schultz #define HUGE_VAL (__infinity.__ud) 368f3f7c66SDavid Schultz 378f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 388cf5ed51SMike Barcroft #define FP_ILOGB0 (-0x7fffffff - 1) /* INT_MIN */ 398cf5ed51SMike Barcroft #define FP_ILOGBNAN 0x7fffffff /* INT_MAX */ 408cf5ed51SMike Barcroft #define HUGE_VALF (float)HUGE_VAL 418cf5ed51SMike Barcroft #define HUGE_VALL (long double)HUGE_VAL 428cf5ed51SMike Barcroft #define INFINITY HUGE_VALF 438cf5ed51SMike Barcroft #define NAN (__nan.__uf) 448cf5ed51SMike Barcroft 456eb2d83eSBruce Evans #define MATH_ERRNO 1 466eb2d83eSBruce Evans #define MATH_ERREXCEPT 2 476eb2d83eSBruce Evans #define math_errhandling 0 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 isnormal(x) (fpclassify(x) == FP_NORMAL) 645d62092fSMike Barcroft 655d62092fSMike Barcroft #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) 665d62092fSMike Barcroft #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) 675d62092fSMike Barcroft #define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) 685d62092fSMike Barcroft #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) 695d62092fSMike Barcroft #define islessgreater(x, y) (!isunordered((x), (y)) && \ 705d62092fSMike Barcroft ((x) > (y) || (y) > (x))) 715d62092fSMike Barcroft #define isunordered(x, y) (isnan(x) || isnan(y)) 725d62092fSMike Barcroft 738e9b2831SMike Barcroft #define signbit(x) __signbit(x) 748cf5ed51SMike Barcroft 758cf5ed51SMike Barcroft typedef __double_t double_t; 768cf5ed51SMike Barcroft typedef __float_t float_t; 778f3f7c66SDavid Schultz #endif /* __ISO_C_VISIBLE >= 1999 */ 783a8617a8SJordan K. Hubbard 793a8617a8SJordan K. Hubbard /* 803a8617a8SJordan K. Hubbard * XOPEN/SVID 813a8617a8SJordan K. Hubbard */ 828f3f7c66SDavid Schultz #if __BSD_VISIBLE || __XSI_VISIBLE 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; 998f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __XSI_VISIBLE */ 1003a8617a8SJordan K. Hubbard 1018f3f7c66SDavid Schultz #if __BSD_VISIBLE 1023a8617a8SJordan K. Hubbard enum fdversion {fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix}; 1033a8617a8SJordan K. Hubbard 1043a8617a8SJordan K. Hubbard #define _LIB_VERSION_TYPE enum fdversion 1053a8617a8SJordan K. Hubbard #define _LIB_VERSION _fdlib_version 1063a8617a8SJordan K. Hubbard 1073a8617a8SJordan K. Hubbard /* if global variable _LIB_VERSION is not desirable, one may 1083a8617a8SJordan K. Hubbard * change the following to be a constant by: 1093a8617a8SJordan K. Hubbard * #define _LIB_VERSION_TYPE const enum version 1103a8617a8SJordan K. Hubbard * In that case, after one initializes the value _LIB_VERSION (see 1113a8617a8SJordan K. Hubbard * s_lib_version.c) during compile time, it cannot be modified 1123a8617a8SJordan K. Hubbard * in the middle of a program 1133a8617a8SJordan K. Hubbard */ 1143a8617a8SJordan K. Hubbard extern _LIB_VERSION_TYPE _LIB_VERSION; 1153a8617a8SJordan K. Hubbard 1163a8617a8SJordan K. Hubbard #define _IEEE_ fdlibm_ieee 1173a8617a8SJordan K. Hubbard #define _SVID_ fdlibm_svid 1183a8617a8SJordan K. Hubbard #define _XOPEN_ fdlibm_xopen 1193a8617a8SJordan K. Hubbard #define _POSIX_ fdlibm_posix 1203a8617a8SJordan K. Hubbard 121d6f56cfcSDavid E. O'Brien /* We have a problem when using C++ since `exception' is a reserved 122d6f56cfcSDavid E. O'Brien name in C++. */ 1236a9280beSBruce Evans #ifndef __cplusplus 1243a8617a8SJordan K. Hubbard struct exception { 1253a8617a8SJordan K. Hubbard int type; 1263a8617a8SJordan K. Hubbard char *name; 1273a8617a8SJordan K. Hubbard double arg1; 1283a8617a8SJordan K. Hubbard double arg2; 1293a8617a8SJordan K. Hubbard double retval; 1303a8617a8SJordan K. Hubbard }; 1316a9280beSBruce Evans #endif 1323a8617a8SJordan K. Hubbard 1338f3f7c66SDavid Schultz #define isnanf(x) isnan(x) 1348f3f7c66SDavid Schultz 135219cbe10SBruce Evans #if 0 13654e9b367SBruce Evans /* Old value from 4.4BSD-Lite math.h; this is probably better. */ 137219cbe10SBruce Evans #define HUGE HUGE_VAL 138219cbe10SBruce Evans #else 1393a8617a8SJordan K. Hubbard #define HUGE MAXFLOAT 140219cbe10SBruce Evans #endif 1413a8617a8SJordan K. Hubbard 142334c760eSDavid Schultz #define X_TLOSS 1.41484755040568800000e+16 /* pi*2**52 */ 1433a8617a8SJordan K. Hubbard 1443a8617a8SJordan K. Hubbard #define DOMAIN 1 1453a8617a8SJordan K. Hubbard #define SING 2 1463a8617a8SJordan K. Hubbard #define OVERFLOW 3 1473a8617a8SJordan K. Hubbard #define UNDERFLOW 4 1483a8617a8SJordan K. Hubbard #define TLOSS 5 1493a8617a8SJordan K. Hubbard #define PLOSS 6 1503a8617a8SJordan K. Hubbard 1518f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE */ 1523a8617a8SJordan K. Hubbard 1533a8617a8SJordan K. Hubbard #include <sys/cdefs.h> 1546898f8c4SBruce Evans 155219cbe10SBruce Evans /* 156219cbe10SBruce Evans * Most of these functions have the side effect of setting errno, so they 157219cbe10SBruce Evans * are not declared as __pure2. (XXX: this point needs to be revisited, 158219cbe10SBruce Evans * since C99 doesn't require the mistake of setting errno, and we mostly 159219cbe10SBruce Evans * don't set it anyway. In C99, pragmas and functions for changing the 160219cbe10SBruce Evans * rounding mode affect the purity of these functions.) 161219cbe10SBruce Evans */ 1626898f8c4SBruce Evans __BEGIN_DECLS 1633a8617a8SJordan K. Hubbard /* 1643a8617a8SJordan K. Hubbard * ANSI/POSIX 1653a8617a8SJordan K. Hubbard */ 1665d62092fSMike Barcroft int __fpclassifyd(double) __pure2; 1675d62092fSMike Barcroft int __fpclassifyf(float) __pure2; 1685d62092fSMike Barcroft int __fpclassifyl(long double) __pure2; 1695d62092fSMike Barcroft int __signbit(double) __pure2; 1708cf5ed51SMike Barcroft 17169160b1eSDavid E. O'Brien double acos(double); 17269160b1eSDavid E. O'Brien double asin(double); 17369160b1eSDavid E. O'Brien double atan(double); 17469160b1eSDavid E. O'Brien double atan2(double, double); 17569160b1eSDavid E. O'Brien double cos(double); 17669160b1eSDavid E. O'Brien double sin(double); 17769160b1eSDavid E. O'Brien double tan(double); 1783a8617a8SJordan K. Hubbard 17969160b1eSDavid E. O'Brien double cosh(double); 18069160b1eSDavid E. O'Brien double sinh(double); 18169160b1eSDavid E. O'Brien double tanh(double); 1823a8617a8SJordan K. Hubbard 18369160b1eSDavid E. O'Brien double exp(double); 184219cbe10SBruce Evans double frexp(double, int *); /* fundamentally !__pure2 */ 18569160b1eSDavid E. O'Brien double ldexp(double, int); 18669160b1eSDavid E. O'Brien double log(double); 18769160b1eSDavid E. O'Brien double log10(double); 188219cbe10SBruce Evans double modf(double, double *); /* fundamentally !__pure2 */ 1893a8617a8SJordan K. Hubbard 19069160b1eSDavid E. O'Brien double pow(double, double); 19169160b1eSDavid E. O'Brien double sqrt(double); 1923a8617a8SJordan K. Hubbard 19369160b1eSDavid E. O'Brien double ceil(double); 19469160b1eSDavid E. O'Brien double fabs(double); 19569160b1eSDavid E. O'Brien double floor(double); 19669160b1eSDavid E. O'Brien double fmod(double, double); 1973a8617a8SJordan K. Hubbard 198219cbe10SBruce Evans /* 199219cbe10SBruce Evans * These functions are not in C90 so they can be "right". The ones that 200219cbe10SBruce Evans * never set errno in lib/msun are declared as __pure2. 201219cbe10SBruce Evans */ 2028f3f7c66SDavid Schultz #if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE 20369160b1eSDavid E. O'Brien double acosh(double); 20469160b1eSDavid E. O'Brien double asinh(double); 20569160b1eSDavid E. O'Brien double atanh(double); 206219cbe10SBruce Evans double cbrt(double) __pure2; 2078f3f7c66SDavid Schultz double erf(double); 2088f3f7c66SDavid Schultz double erfc(double) __pure2; 2098f3f7c66SDavid Schultz double expm1(double) __pure2; 2108f3f7c66SDavid Schultz double hypot(double, double); 2118f3f7c66SDavid Schultz int ilogb(double); 2128f3f7c66SDavid Schultz double lgamma(double); 2138f3f7c66SDavid Schultz double log1p(double) __pure2; 214219cbe10SBruce Evans double logb(double) __pure2; 21569160b1eSDavid E. O'Brien double nextafter(double, double); 21669160b1eSDavid E. O'Brien double remainder(double, double); 2178f3f7c66SDavid Schultz double rint(double) __pure2; 218d0f13633SDavid Schultz double round(double); 2198f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */ 2203a8617a8SJordan K. Hubbard 2218f3f7c66SDavid Schultz #if __BSD_VISIBLE || __XSI_VISIBLE 2228f3f7c66SDavid Schultz double j0(double); 2238f3f7c66SDavid Schultz double j1(double); 2248f3f7c66SDavid Schultz double jn(int, double); 2258f3f7c66SDavid Schultz double scalb(double, double); 2268f3f7c66SDavid Schultz double y0(double); 2278f3f7c66SDavid Schultz double y1(double); 2288f3f7c66SDavid Schultz double yn(int, double); 2298f3f7c66SDavid Schultz 2308f3f7c66SDavid Schultz #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE 2318f3f7c66SDavid Schultz double gamma(double); 2326a9280beSBruce Evans #endif 2338f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __XSI_VISIBLE */ 2348f3f7c66SDavid Schultz 2358f3f7c66SDavid Schultz #if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 2368f3f7c66SDavid Schultz double copysign(double, double) __pure2; 2378f3f7c66SDavid Schultz double scalbn(double, int); 2388f3f7c66SDavid Schultz double tgamma(double); 2398f3f7c66SDavid Schultz #endif 2408f3f7c66SDavid Schultz 2418f3f7c66SDavid Schultz /* 2428f3f7c66SDavid Schultz * BSD math library entry points 2438f3f7c66SDavid Schultz */ 2448f3f7c66SDavid Schultz #if __BSD_VISIBLE 2458f3f7c66SDavid Schultz double drem(double, double); 2468f3f7c66SDavid Schultz int finite(double) __pure2; 2478f3f7c66SDavid Schultz 2488f3f7c66SDavid Schultz /* 2498f3f7c66SDavid Schultz * Reentrant version of gamma & lgamma; passes signgam back by reference 2508f3f7c66SDavid Schultz * as the second argument; user must allocate space for signgam. 2518f3f7c66SDavid Schultz */ 2528f3f7c66SDavid Schultz double gamma_r(double, int *); 2538f3f7c66SDavid Schultz double lgamma_r(double, int *); 2543a8617a8SJordan K. Hubbard 2553a8617a8SJordan K. Hubbard /* 2563a8617a8SJordan K. Hubbard * IEEE Test Vector 2573a8617a8SJordan K. Hubbard */ 25869160b1eSDavid E. O'Brien double significand(double); 2593a8617a8SJordan K. Hubbard 2608f3f7c66SDavid Schultz #ifndef __cplusplus 2618f3f7c66SDavid Schultz int matherr(struct exception *); 2628f3f7c66SDavid Schultz #endif 263457f6cd2SWarner Losh #endif /* __BSD_VISIBLE */ 2643a8617a8SJordan K. Hubbard 2653a8617a8SJordan K. Hubbard /* float versions of ANSI/POSIX functions */ 2668f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 26769160b1eSDavid E. O'Brien float acosf(float); 26869160b1eSDavid E. O'Brien float asinf(float); 26969160b1eSDavid E. O'Brien float atanf(float); 27069160b1eSDavid E. O'Brien float atan2f(float, float); 27169160b1eSDavid E. O'Brien float cosf(float); 27269160b1eSDavid E. O'Brien float sinf(float); 27369160b1eSDavid E. O'Brien float tanf(float); 2743a8617a8SJordan K. Hubbard 27569160b1eSDavid E. O'Brien float coshf(float); 27669160b1eSDavid E. O'Brien float sinhf(float); 27769160b1eSDavid E. O'Brien float tanhf(float); 2783a8617a8SJordan K. Hubbard 27969160b1eSDavid E. O'Brien float expf(float); 2808f3f7c66SDavid Schultz float expm1f(float) __pure2; 281219cbe10SBruce Evans float frexpf(float, int *); /* fundamentally !__pure2 */ 2828f3f7c66SDavid Schultz int ilogbf(float); 28369160b1eSDavid E. O'Brien float ldexpf(float, int); 28469160b1eSDavid E. O'Brien float log10f(float); 2858f3f7c66SDavid Schultz float log1pf(float) __pure2; 2868f3f7c66SDavid Schultz float logf(float); 287219cbe10SBruce Evans float modff(float, float *); /* fundamentally !__pure2 */ 2883a8617a8SJordan K. Hubbard 28969160b1eSDavid E. O'Brien float powf(float, float); 29069160b1eSDavid E. O'Brien float sqrtf(float); 2913a8617a8SJordan K. Hubbard 29269160b1eSDavid E. O'Brien float ceilf(float); 29369160b1eSDavid E. O'Brien float fabsf(float); 29469160b1eSDavid E. O'Brien float floorf(float); 29569160b1eSDavid E. O'Brien float fmodf(float, float); 296d0f13633SDavid Schultz float roundf(float); 2973a8617a8SJordan K. Hubbard 29869160b1eSDavid E. O'Brien float erff(float); 299219cbe10SBruce Evans float erfcf(float) __pure2; 300219cbe10SBruce Evans float hypotf(float, float) __pure2; 30169160b1eSDavid E. O'Brien float lgammaf(float); 3023a8617a8SJordan K. Hubbard 30369160b1eSDavid E. O'Brien float acoshf(float); 30469160b1eSDavid E. O'Brien float asinhf(float); 30569160b1eSDavid E. O'Brien float atanhf(float); 306219cbe10SBruce Evans float cbrtf(float) __pure2; 307219cbe10SBruce Evans float logbf(float) __pure2; 3088f3f7c66SDavid Schultz float copysignf(float, float) __pure2; 30969160b1eSDavid E. O'Brien float nextafterf(float, float); 31069160b1eSDavid E. O'Brien float remainderf(float, float); 31169160b1eSDavid E. O'Brien float rintf(float); 31269160b1eSDavid E. O'Brien float scalbnf(float, int); 3138f3f7c66SDavid Schultz #endif 3143a8617a8SJordan K. Hubbard 3153a8617a8SJordan K. Hubbard /* 3163a8617a8SJordan K. Hubbard * float versions of BSD math library entry points 3173a8617a8SJordan K. Hubbard */ 3188f3f7c66SDavid Schultz #if __BSD_VISIBLE 31969160b1eSDavid E. O'Brien float dremf(float, float); 3208f3f7c66SDavid Schultz int finitef(float) __pure2; 3218f3f7c66SDavid Schultz float gammaf(float); 3228f3f7c66SDavid Schultz float j0f(float); 3238f3f7c66SDavid Schultz float j1f(float); 3248f3f7c66SDavid Schultz float jnf(int, float); 3258f3f7c66SDavid Schultz float scalbf(float, float); 3268f3f7c66SDavid Schultz float y0f(float); 3278f3f7c66SDavid Schultz float y1f(float); 3288f3f7c66SDavid Schultz float ynf(int, float); 3293a8617a8SJordan K. Hubbard 3303a8617a8SJordan K. Hubbard /* 3313a8617a8SJordan K. Hubbard * Float versions of reentrant version of gamma & lgamma; passes 3323a8617a8SJordan K. Hubbard * signgam back by reference as the second argument; user must 3333a8617a8SJordan K. Hubbard * allocate space for signgam. 3343a8617a8SJordan K. Hubbard */ 33569160b1eSDavid E. O'Brien float gammaf_r(float, int *); 33669160b1eSDavid E. O'Brien float lgammaf_r(float, int *); 3378f3f7c66SDavid Schultz 3388f3f7c66SDavid Schultz /* 3398f3f7c66SDavid Schultz * float version of IEEE Test Vector 3408f3f7c66SDavid Schultz */ 3418f3f7c66SDavid Schultz float significandf(float); 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 */ 3478f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 34829bd23abSDag-Erling Smørgrav #if 0 34929bd23abSDag-Erling Smørgrav long double acoshl(long double); 35029bd23abSDag-Erling Smørgrav long double acosl(long double); 35129bd23abSDag-Erling Smørgrav long double asinhl(long double); 35229bd23abSDag-Erling Smørgrav long double asinl(long double); 35329bd23abSDag-Erling Smørgrav long double atan2l(long double, long double); 35429bd23abSDag-Erling Smørgrav long double atanhl(long double); 35529bd23abSDag-Erling Smørgrav long double atanl(long double); 35629bd23abSDag-Erling Smørgrav long double cbrtl(long double); 35729bd23abSDag-Erling Smørgrav long double ceill(long double); 358b60cb13fSStefan Farfeleder #endif 35929bd23abSDag-Erling Smørgrav long double copysignl(long double, long double); 360b60cb13fSStefan Farfeleder #if 0 36129bd23abSDag-Erling Smørgrav long double coshl(long double); 36229bd23abSDag-Erling Smørgrav long double cosl(long double); 36329bd23abSDag-Erling Smørgrav long double erfcl(long double); 36429bd23abSDag-Erling Smørgrav long double erfl(long double); 36529bd23abSDag-Erling Smørgrav long double exp2l(long double); 36629bd23abSDag-Erling Smørgrav long double expl(long double); 36729bd23abSDag-Erling Smørgrav long double expm1l(long double); 36829bd23abSDag-Erling Smørgrav #endif 36929bd23abSDag-Erling Smørgrav long double fabsl(long double); 37029bd23abSDag-Erling Smørgrav #if 0 37129bd23abSDag-Erling Smørgrav long double fdiml(long double, long double); 37229bd23abSDag-Erling Smørgrav long double floorl(long double); 37329bd23abSDag-Erling Smørgrav long double fmal(long double, long double, long double); 37429bd23abSDag-Erling Smørgrav long double fmaxl(long double, long double); 37529bd23abSDag-Erling Smørgrav long double fminl(long double, long double); 37629bd23abSDag-Erling Smørgrav long double fmodl(long double, long double); 37729bd23abSDag-Erling Smørgrav long double frexpl(long double value, int *); 37829bd23abSDag-Erling Smørgrav long double hypotl(long double, long double); 37929bd23abSDag-Erling Smørgrav int ilogbl(long double); 38029bd23abSDag-Erling Smørgrav long double ldexpl(long double, int); 38129bd23abSDag-Erling Smørgrav long double lgammal(long double); 38229bd23abSDag-Erling Smørgrav long long llrintl(long double); 38329bd23abSDag-Erling Smørgrav long long llroundl(long double); 38429bd23abSDag-Erling Smørgrav long double log10l(long double); 38529bd23abSDag-Erling Smørgrav long double log1pl(long double); 38629bd23abSDag-Erling Smørgrav long double log2l(long double); 38729bd23abSDag-Erling Smørgrav long double logbl(long double); 38829bd23abSDag-Erling Smørgrav long double logl(long double); 38929bd23abSDag-Erling Smørgrav long lrintl(long double); 39029bd23abSDag-Erling Smørgrav long lroundl(long double); 39129bd23abSDag-Erling Smørgrav long double modfl(long double, long double *); 39229bd23abSDag-Erling Smørgrav long double nanl(const char *); 39329bd23abSDag-Erling Smørgrav long double nearbyintl(long double); 39429bd23abSDag-Erling Smørgrav long double nextafterl(long double, long double); 39529bd23abSDag-Erling Smørgrav double nexttoward(double, long double); 39629bd23abSDag-Erling Smørgrav float nexttowardf(float, long double); 39729bd23abSDag-Erling Smørgrav long double nexttowardl(long double, long double); 39829bd23abSDag-Erling Smørgrav long double powl(long double, long double); 39929bd23abSDag-Erling Smørgrav long double remainderl(long double, long double); 40029bd23abSDag-Erling Smørgrav long double remquol(long double, long double, int *); 40129bd23abSDag-Erling Smørgrav long double rintl(long double); 40229bd23abSDag-Erling Smørgrav long double roundl(long double); 40329bd23abSDag-Erling Smørgrav long double scalblnl(long double, long); 40429bd23abSDag-Erling Smørgrav long double scalbnl(long double, int); 40529bd23abSDag-Erling Smørgrav long double sinhl(long double); 40629bd23abSDag-Erling Smørgrav long double sinl(long double); 40729bd23abSDag-Erling Smørgrav long double sqrtl(long double); 40829bd23abSDag-Erling Smørgrav long double tanhl(long double); 40929bd23abSDag-Erling Smørgrav long double tanl(long double); 41029bd23abSDag-Erling Smørgrav long double tgammal(long double); 41129bd23abSDag-Erling Smørgrav long double truncl(long double); 41229bd23abSDag-Erling Smørgrav #endif 41329bd23abSDag-Erling Smørgrav 4148f3f7c66SDavid Schultz #endif /* __ISO_C_VISIBLE >= 1999 */ 4153a8617a8SJordan K. Hubbard __END_DECLS 4163a8617a8SJordan K. Hubbard 417ef1ee63eSAlexey Zelkin #endif /* !_MATH_H_ */ 418