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 20207bc1d7SDavid Schultz #include <sys/cdefs.h> 218cf5ed51SMike Barcroft #include <sys/_types.h> 2283bc8931SStefan Farfeleder #include <machine/_limits.h> 238cf5ed51SMike Barcroft 243a8617a8SJordan K. Hubbard /* 253a8617a8SJordan K. Hubbard * ANSI/POSIX 263a8617a8SJordan K. Hubbard */ 2783999f5aSArchie Cobbs extern const union __infinity_un { 2883999f5aSArchie Cobbs unsigned char __uc[8]; 2983999f5aSArchie Cobbs double __ud; 3083999f5aSArchie Cobbs } __infinity; 318cf5ed51SMike Barcroft 328cf5ed51SMike Barcroft extern const union __nan_un { 338cf5ed51SMike Barcroft unsigned char __uc[sizeof(float)]; 348cf5ed51SMike Barcroft float __uf; 358cf5ed51SMike Barcroft } __nan; 368cf5ed51SMike Barcroft 378f3f7c66SDavid Schultz #define HUGE_VAL (__infinity.__ud) 388f3f7c66SDavid Schultz 398f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 4083bc8931SStefan Farfeleder #define FP_ILOGB0 (-__INT_MAX) 4183bc8931SStefan Farfeleder #define FP_ILOGBNAN __INT_MAX 428cf5ed51SMike Barcroft #define HUGE_VALF (float)HUGE_VAL 438cf5ed51SMike Barcroft #define HUGE_VALL (long double)HUGE_VAL 448cf5ed51SMike Barcroft #define INFINITY HUGE_VALF 458cf5ed51SMike Barcroft #define NAN (__nan.__uf) 468cf5ed51SMike Barcroft 476eb2d83eSBruce Evans #define MATH_ERRNO 1 486eb2d83eSBruce Evans #define MATH_ERREXCEPT 2 496eb2d83eSBruce Evans #define math_errhandling 0 506eb2d83eSBruce Evans 518cf5ed51SMike Barcroft /* Symbolic constants to classify floating point numbers. */ 525d62092fSMike Barcroft #define FP_INFINITE 0x01 535d62092fSMike Barcroft #define FP_NAN 0x02 545d62092fSMike Barcroft #define FP_NORMAL 0x04 555d62092fSMike Barcroft #define FP_SUBNORMAL 0x08 565d62092fSMike Barcroft #define FP_ZERO 0x10 578cf5ed51SMike Barcroft #define fpclassify(x) \ 588cf5ed51SMike Barcroft ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ 598cf5ed51SMike Barcroft : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ 608cf5ed51SMike Barcroft : __fpclassifyl(x)) 615d62092fSMike Barcroft 626d3bd953SDavid Schultz #define isfinite(x) ((fpclassify(x) & (FP_INFINITE|FP_NAN)) == 0) 635d62092fSMike Barcroft #define isinf(x) (fpclassify(x) == FP_INFINITE) 645d62092fSMike Barcroft #define isnan(x) (fpclassify(x) == FP_NAN) 655d62092fSMike Barcroft #define isnormal(x) (fpclassify(x) == FP_NORMAL) 665d62092fSMike Barcroft 675d62092fSMike Barcroft #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) 685d62092fSMike Barcroft #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) 695d62092fSMike Barcroft #define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) 705d62092fSMike Barcroft #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) 715d62092fSMike Barcroft #define islessgreater(x, y) (!isunordered((x), (y)) && \ 725d62092fSMike Barcroft ((x) > (y) || (y) > (x))) 735d62092fSMike Barcroft #define isunordered(x, y) (isnan(x) || isnan(y)) 745d62092fSMike Barcroft 758e9b2831SMike Barcroft #define signbit(x) __signbit(x) 768cf5ed51SMike Barcroft 778cf5ed51SMike Barcroft typedef __double_t double_t; 788cf5ed51SMike Barcroft typedef __float_t float_t; 798f3f7c66SDavid Schultz #endif /* __ISO_C_VISIBLE >= 1999 */ 803a8617a8SJordan K. Hubbard 813a8617a8SJordan K. Hubbard /* 823a8617a8SJordan K. Hubbard * XOPEN/SVID 833a8617a8SJordan K. Hubbard */ 848f3f7c66SDavid Schultz #if __BSD_VISIBLE || __XSI_VISIBLE 853a8617a8SJordan K. Hubbard #define M_E 2.7182818284590452354 /* e */ 863a8617a8SJordan K. Hubbard #define M_LOG2E 1.4426950408889634074 /* log 2e */ 873a8617a8SJordan K. Hubbard #define M_LOG10E 0.43429448190325182765 /* log 10e */ 883a8617a8SJordan K. Hubbard #define M_LN2 0.69314718055994530942 /* log e2 */ 893a8617a8SJordan K. Hubbard #define M_LN10 2.30258509299404568402 /* log e10 */ 903a8617a8SJordan K. Hubbard #define M_PI 3.14159265358979323846 /* pi */ 913a8617a8SJordan K. Hubbard #define M_PI_2 1.57079632679489661923 /* pi/2 */ 923a8617a8SJordan K. Hubbard #define M_PI_4 0.78539816339744830962 /* pi/4 */ 933a8617a8SJordan K. Hubbard #define M_1_PI 0.31830988618379067154 /* 1/pi */ 943a8617a8SJordan K. Hubbard #define M_2_PI 0.63661977236758134308 /* 2/pi */ 953a8617a8SJordan K. Hubbard #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ 963a8617a8SJordan K. Hubbard #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ 973a8617a8SJordan K. Hubbard #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ 983a8617a8SJordan K. Hubbard 993a8617a8SJordan K. Hubbard #define MAXFLOAT ((float)3.40282346638528860e+38) 1003a8617a8SJordan K. Hubbard extern int signgam; 1018f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __XSI_VISIBLE */ 1023a8617a8SJordan K. Hubbard 1038f3f7c66SDavid Schultz #if __BSD_VISIBLE 1043a8617a8SJordan K. Hubbard enum fdversion {fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix}; 1053a8617a8SJordan K. Hubbard 1063a8617a8SJordan K. Hubbard #define _LIB_VERSION_TYPE enum fdversion 1073a8617a8SJordan K. Hubbard #define _LIB_VERSION _fdlib_version 1083a8617a8SJordan K. Hubbard 1093a8617a8SJordan K. Hubbard /* if global variable _LIB_VERSION is not desirable, one may 1103a8617a8SJordan K. Hubbard * change the following to be a constant by: 1113a8617a8SJordan K. Hubbard * #define _LIB_VERSION_TYPE const enum version 1123a8617a8SJordan K. Hubbard * In that case, after one initializes the value _LIB_VERSION (see 1133a8617a8SJordan K. Hubbard * s_lib_version.c) during compile time, it cannot be modified 1143a8617a8SJordan K. Hubbard * in the middle of a program 1153a8617a8SJordan K. Hubbard */ 1163a8617a8SJordan K. Hubbard extern _LIB_VERSION_TYPE _LIB_VERSION; 1173a8617a8SJordan K. Hubbard 1183a8617a8SJordan K. Hubbard #define _IEEE_ fdlibm_ieee 1193a8617a8SJordan K. Hubbard #define _SVID_ fdlibm_svid 1203a8617a8SJordan K. Hubbard #define _XOPEN_ fdlibm_xopen 1213a8617a8SJordan K. Hubbard #define _POSIX_ fdlibm_posix 1223a8617a8SJordan K. Hubbard 123d6f56cfcSDavid E. O'Brien /* We have a problem when using C++ since `exception' is a reserved 124d6f56cfcSDavid E. O'Brien name in C++. */ 1256a9280beSBruce Evans #ifndef __cplusplus 1263a8617a8SJordan K. Hubbard struct exception { 1273a8617a8SJordan K. Hubbard int type; 1283a8617a8SJordan K. Hubbard char *name; 1293a8617a8SJordan K. Hubbard double arg1; 1303a8617a8SJordan K. Hubbard double arg2; 1313a8617a8SJordan K. Hubbard double retval; 1323a8617a8SJordan K. Hubbard }; 1336a9280beSBruce Evans #endif 1343a8617a8SJordan K. Hubbard 1358f3f7c66SDavid Schultz #define isnanf(x) isnan(x) 1368f3f7c66SDavid Schultz 137219cbe10SBruce Evans #if 0 13854e9b367SBruce Evans /* Old value from 4.4BSD-Lite math.h; this is probably better. */ 139219cbe10SBruce Evans #define HUGE HUGE_VAL 140219cbe10SBruce Evans #else 1413a8617a8SJordan K. Hubbard #define HUGE MAXFLOAT 142219cbe10SBruce Evans #endif 1433a8617a8SJordan K. Hubbard 144334c760eSDavid Schultz #define X_TLOSS 1.41484755040568800000e+16 /* pi*2**52 */ 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 1538f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE */ 1543a8617a8SJordan K. Hubbard 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); 21962247e90SDavid Schultz double trunc(double); 2208f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */ 2213a8617a8SJordan K. Hubbard 2228f3f7c66SDavid Schultz #if __BSD_VISIBLE || __XSI_VISIBLE 2238f3f7c66SDavid Schultz double j0(double); 2248f3f7c66SDavid Schultz double j1(double); 2258f3f7c66SDavid Schultz double jn(int, double); 2268f3f7c66SDavid Schultz double scalb(double, double); 2278f3f7c66SDavid Schultz double y0(double); 2288f3f7c66SDavid Schultz double y1(double); 2298f3f7c66SDavid Schultz double yn(int, double); 2308f3f7c66SDavid Schultz 2318f3f7c66SDavid Schultz #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE 2328f3f7c66SDavid Schultz double gamma(double); 2336a9280beSBruce Evans #endif 2348f3f7c66SDavid Schultz #endif /* __BSD_VISIBLE || __XSI_VISIBLE */ 2358f3f7c66SDavid Schultz 2368f3f7c66SDavid Schultz #if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 2378f3f7c66SDavid Schultz double copysign(double, double) __pure2; 23862247e90SDavid Schultz double scalbln(double, long); 2398f3f7c66SDavid Schultz double scalbn(double, int); 2408f3f7c66SDavid Schultz double tgamma(double); 2418f3f7c66SDavid Schultz #endif 2428f3f7c66SDavid Schultz 2438f3f7c66SDavid Schultz /* 2448f3f7c66SDavid Schultz * BSD math library entry points 2458f3f7c66SDavid Schultz */ 2468f3f7c66SDavid Schultz #if __BSD_VISIBLE 2478f3f7c66SDavid Schultz double drem(double, double); 2488f3f7c66SDavid Schultz int finite(double) __pure2; 2498f3f7c66SDavid Schultz 2508f3f7c66SDavid Schultz /* 2518f3f7c66SDavid Schultz * Reentrant version of gamma & lgamma; passes signgam back by reference 2528f3f7c66SDavid Schultz * as the second argument; user must allocate space for signgam. 2538f3f7c66SDavid Schultz */ 2548f3f7c66SDavid Schultz double gamma_r(double, int *); 2558f3f7c66SDavid Schultz double lgamma_r(double, int *); 2563a8617a8SJordan K. Hubbard 2573a8617a8SJordan K. Hubbard /* 2583a8617a8SJordan K. Hubbard * IEEE Test Vector 2593a8617a8SJordan K. Hubbard */ 26069160b1eSDavid E. O'Brien double significand(double); 2613a8617a8SJordan K. Hubbard 2628f3f7c66SDavid Schultz #ifndef __cplusplus 2638f3f7c66SDavid Schultz int matherr(struct exception *); 2648f3f7c66SDavid Schultz #endif 265457f6cd2SWarner Losh #endif /* __BSD_VISIBLE */ 2663a8617a8SJordan K. Hubbard 2673a8617a8SJordan K. Hubbard /* float versions of ANSI/POSIX functions */ 2688f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 26969160b1eSDavid E. O'Brien float acosf(float); 27069160b1eSDavid E. O'Brien float asinf(float); 27169160b1eSDavid E. O'Brien float atanf(float); 27269160b1eSDavid E. O'Brien float atan2f(float, float); 27369160b1eSDavid E. O'Brien float cosf(float); 27469160b1eSDavid E. O'Brien float sinf(float); 27569160b1eSDavid E. O'Brien float tanf(float); 2763a8617a8SJordan K. Hubbard 27769160b1eSDavid E. O'Brien float coshf(float); 27869160b1eSDavid E. O'Brien float sinhf(float); 27969160b1eSDavid E. O'Brien float tanhf(float); 2803a8617a8SJordan K. Hubbard 28169160b1eSDavid E. O'Brien float expf(float); 2828f3f7c66SDavid Schultz float expm1f(float) __pure2; 283219cbe10SBruce Evans float frexpf(float, int *); /* fundamentally !__pure2 */ 2848f3f7c66SDavid Schultz int ilogbf(float); 28569160b1eSDavid E. O'Brien float ldexpf(float, int); 28669160b1eSDavid E. O'Brien float log10f(float); 2878f3f7c66SDavid Schultz float log1pf(float) __pure2; 2888f3f7c66SDavid Schultz float logf(float); 289219cbe10SBruce Evans float modff(float, float *); /* fundamentally !__pure2 */ 2903a8617a8SJordan K. Hubbard 29169160b1eSDavid E. O'Brien float powf(float, float); 29269160b1eSDavid E. O'Brien float sqrtf(float); 2933a8617a8SJordan K. Hubbard 29469160b1eSDavid E. O'Brien float ceilf(float); 29569160b1eSDavid E. O'Brien float fabsf(float); 29669160b1eSDavid E. O'Brien float floorf(float); 29769160b1eSDavid E. O'Brien float fmodf(float, float); 298d0f13633SDavid Schultz float roundf(float); 2993a8617a8SJordan K. Hubbard 30069160b1eSDavid E. O'Brien float erff(float); 301219cbe10SBruce Evans float erfcf(float) __pure2; 302219cbe10SBruce Evans float hypotf(float, float) __pure2; 30369160b1eSDavid E. O'Brien float lgammaf(float); 3043a8617a8SJordan K. Hubbard 30569160b1eSDavid E. O'Brien float acoshf(float); 30669160b1eSDavid E. O'Brien float asinhf(float); 30769160b1eSDavid E. O'Brien float atanhf(float); 308219cbe10SBruce Evans float cbrtf(float) __pure2; 309219cbe10SBruce Evans float logbf(float) __pure2; 3108f3f7c66SDavid Schultz float copysignf(float, float) __pure2; 31169160b1eSDavid E. O'Brien float nextafterf(float, float); 31269160b1eSDavid E. O'Brien float remainderf(float, float); 31369160b1eSDavid E. O'Brien float rintf(float); 31462247e90SDavid Schultz float scalblnf(float, long); 31569160b1eSDavid E. O'Brien float scalbnf(float, int); 31662247e90SDavid Schultz float truncf(float); 3178f3f7c66SDavid Schultz #endif 3183a8617a8SJordan K. Hubbard 3193a8617a8SJordan K. Hubbard /* 3203a8617a8SJordan K. Hubbard * float versions of BSD math library entry points 3213a8617a8SJordan K. Hubbard */ 3228f3f7c66SDavid Schultz #if __BSD_VISIBLE 32369160b1eSDavid E. O'Brien float dremf(float, float); 3248f3f7c66SDavid Schultz int finitef(float) __pure2; 3258f3f7c66SDavid Schultz float gammaf(float); 3268f3f7c66SDavid Schultz float j0f(float); 3278f3f7c66SDavid Schultz float j1f(float); 3288f3f7c66SDavid Schultz float jnf(int, float); 3298f3f7c66SDavid Schultz float scalbf(float, float); 3308f3f7c66SDavid Schultz float y0f(float); 3318f3f7c66SDavid Schultz float y1f(float); 3328f3f7c66SDavid Schultz float ynf(int, float); 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 */ 33969160b1eSDavid E. O'Brien float gammaf_r(float, int *); 34069160b1eSDavid E. O'Brien float lgammaf_r(float, int *); 3418f3f7c66SDavid Schultz 3428f3f7c66SDavid Schultz /* 3438f3f7c66SDavid Schultz * float version of IEEE Test Vector 3448f3f7c66SDavid Schultz */ 3458f3f7c66SDavid Schultz float significandf(float); 346457f6cd2SWarner Losh #endif /* __BSD_VISIBLE */ 3473a8617a8SJordan K. Hubbard 34829bd23abSDag-Erling Smørgrav /* 34929bd23abSDag-Erling Smørgrav * long double versions of ISO/POSIX math functions 35029bd23abSDag-Erling Smørgrav */ 3518f3f7c66SDavid Schultz #if __ISO_C_VISIBLE >= 1999 35229bd23abSDag-Erling Smørgrav #if 0 35329bd23abSDag-Erling Smørgrav long double acoshl(long double); 35429bd23abSDag-Erling Smørgrav long double acosl(long double); 35529bd23abSDag-Erling Smørgrav long double asinhl(long double); 35629bd23abSDag-Erling Smørgrav long double asinl(long double); 35729bd23abSDag-Erling Smørgrav long double atan2l(long double, long double); 35829bd23abSDag-Erling Smørgrav long double atanhl(long double); 35929bd23abSDag-Erling Smørgrav long double atanl(long double); 36029bd23abSDag-Erling Smørgrav long double cbrtl(long double); 36129bd23abSDag-Erling Smørgrav long double ceill(long double); 362b60cb13fSStefan Farfeleder #endif 36329bd23abSDag-Erling Smørgrav long double copysignl(long double, long double); 364b60cb13fSStefan Farfeleder #if 0 36529bd23abSDag-Erling Smørgrav long double coshl(long double); 36629bd23abSDag-Erling Smørgrav long double cosl(long double); 36729bd23abSDag-Erling Smørgrav long double erfcl(long double); 36829bd23abSDag-Erling Smørgrav long double erfl(long double); 36929bd23abSDag-Erling Smørgrav long double exp2l(long double); 37029bd23abSDag-Erling Smørgrav long double expl(long double); 37129bd23abSDag-Erling Smørgrav long double expm1l(long double); 37229bd23abSDag-Erling Smørgrav #endif 37329bd23abSDag-Erling Smørgrav long double fabsl(long double); 37429bd23abSDag-Erling Smørgrav #if 0 37529bd23abSDag-Erling Smørgrav long double fdiml(long double, long double); 37629bd23abSDag-Erling Smørgrav long double floorl(long double); 37729bd23abSDag-Erling Smørgrav long double fmal(long double, long double, long double); 37829bd23abSDag-Erling Smørgrav long double fmaxl(long double, long double); 37929bd23abSDag-Erling Smørgrav long double fminl(long double, long double); 38029bd23abSDag-Erling Smørgrav long double fmodl(long double, long double); 38129bd23abSDag-Erling Smørgrav long double frexpl(long double value, int *); 38229bd23abSDag-Erling Smørgrav long double hypotl(long double, long double); 38329bd23abSDag-Erling Smørgrav int ilogbl(long double); 38429bd23abSDag-Erling Smørgrav long double ldexpl(long double, int); 38529bd23abSDag-Erling Smørgrav long double lgammal(long double); 38629bd23abSDag-Erling Smørgrav long long llrintl(long double); 38729bd23abSDag-Erling Smørgrav long long llroundl(long double); 38829bd23abSDag-Erling Smørgrav long double log10l(long double); 38929bd23abSDag-Erling Smørgrav long double log1pl(long double); 39029bd23abSDag-Erling Smørgrav long double log2l(long double); 39129bd23abSDag-Erling Smørgrav long double logbl(long double); 39229bd23abSDag-Erling Smørgrav long double logl(long double); 39329bd23abSDag-Erling Smørgrav long lrintl(long double); 39429bd23abSDag-Erling Smørgrav long lroundl(long double); 39529bd23abSDag-Erling Smørgrav long double modfl(long double, long double *); 39629bd23abSDag-Erling Smørgrav long double nanl(const char *); 39729bd23abSDag-Erling Smørgrav long double nearbyintl(long double); 39829bd23abSDag-Erling Smørgrav long double nextafterl(long double, long double); 39929bd23abSDag-Erling Smørgrav double nexttoward(double, long double); 40029bd23abSDag-Erling Smørgrav float nexttowardf(float, long double); 40129bd23abSDag-Erling Smørgrav long double nexttowardl(long double, long double); 40229bd23abSDag-Erling Smørgrav long double powl(long double, long double); 40329bd23abSDag-Erling Smørgrav long double remainderl(long double, long double); 40429bd23abSDag-Erling Smørgrav long double remquol(long double, long double, int *); 40529bd23abSDag-Erling Smørgrav long double rintl(long double); 40629bd23abSDag-Erling Smørgrav long double roundl(long double); 40729bd23abSDag-Erling Smørgrav long double scalblnl(long double, long); 40829bd23abSDag-Erling Smørgrav long double scalbnl(long double, int); 40929bd23abSDag-Erling Smørgrav long double sinhl(long double); 41029bd23abSDag-Erling Smørgrav long double sinl(long double); 41129bd23abSDag-Erling Smørgrav long double sqrtl(long double); 41229bd23abSDag-Erling Smørgrav long double tanhl(long double); 41329bd23abSDag-Erling Smørgrav long double tanl(long double); 41429bd23abSDag-Erling Smørgrav long double tgammal(long double); 41529bd23abSDag-Erling Smørgrav long double truncl(long double); 41629bd23abSDag-Erling Smørgrav #endif 41729bd23abSDag-Erling Smørgrav 4188f3f7c66SDavid Schultz #endif /* __ISO_C_VISIBLE >= 1999 */ 4193a8617a8SJordan K. Hubbard __END_DECLS 4203a8617a8SJordan K. Hubbard 421ef1ee63eSAlexey Zelkin #endif /* !_MATH_H_ */ 422