Home | History | Annotate | Line # | Download | only in include
math.h revision 1.52
      1  1.52  dholland /*	$NetBSD: math.h,v 1.52 2010/05/02 06:31:48 dholland Exp $	*/
      2  1.10       cgd 
      3   1.1       cgd /*
      4   1.6       jtc  * ====================================================
      5   1.6       jtc  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
      6   1.1       cgd  *
      7   1.6       jtc  * Developed at SunPro, a Sun Microsystems, Inc. business.
      8   1.6       jtc  * Permission to use, copy, modify, and distribute this
      9  1.38  junyoung  * software is freely granted, provided that this notice
     10   1.6       jtc  * is preserved.
     11   1.6       jtc  * ====================================================
     12   1.1       cgd  */
     13   1.1       cgd 
     14   1.6       jtc /*
     15  1.10       cgd  * @(#)fdlibm.h 5.1 93/09/24
     16   1.6       jtc  */
     17   1.1       cgd 
     18   1.6       jtc #ifndef _MATH_H_
     19   1.7       cgd #define _MATH_H_
     20   1.1       cgd 
     21  1.21    kleink #include <sys/cdefs.h>
     22  1.12    kleink #include <sys/featuretest.h>
     23  1.24    simonb 
     24  1.24    simonb union __float_u {
     25  1.24    simonb 	unsigned char __dummy[sizeof(float)];
     26  1.24    simonb 	float __val;
     27  1.24    simonb };
     28  1.24    simonb 
     29  1.24    simonb union __double_u {
     30  1.24    simonb 	unsigned char __dummy[sizeof(double)];
     31  1.24    simonb 	double __val;
     32  1.24    simonb };
     33  1.24    simonb 
     34  1.26   thorpej union __long_double_u {
     35  1.26   thorpej 	unsigned char __dummy[sizeof(long double)];
     36  1.26   thorpej 	long double __val;
     37  1.26   thorpej };
     38  1.26   thorpej 
     39  1.26   thorpej #include <machine/math.h>		/* may use __float_u, __double_u,
     40  1.26   thorpej 					   or __long_double_u */
     41  1.12    kleink 
     42  1.29    kleink #ifdef __HAVE_LONG_DOUBLE
     43  1.29    kleink #define	__fpmacro_unary_floating(__name, __arg0)			\
     44  1.33    kleink 	/* LINTED */							\
     45  1.29    kleink 	((sizeof (__arg0) == sizeof (float))				\
     46  1.29    kleink 	?	__ ## __name ## f (__arg0)				\
     47  1.29    kleink 	: (sizeof (__arg0) == sizeof (double))				\
     48  1.29    kleink 	?	__ ## __name ## d (__arg0)				\
     49  1.29    kleink 	:	__ ## __name ## l (__arg0))
     50  1.29    kleink #else
     51  1.29    kleink #define	__fpmacro_unary_floating(__name, __arg0)			\
     52  1.33    kleink 	/* LINTED */							\
     53  1.29    kleink 	((sizeof (__arg0) == sizeof (float))				\
     54  1.29    kleink 	?	__ ## __name ## f (__arg0)				\
     55  1.29    kleink 	:	__ ## __name ## d (__arg0))
     56  1.30       uwe #endif /* __HAVE_LONG_DOUBLE */
     57  1.29    kleink 
     58   1.1       cgd /*
     59   1.6       jtc  * ANSI/POSIX
     60   1.6       jtc  */
     61  1.28    kleink /* 7.12#3 HUGE_VAL, HUGELF, HUGE_VALL */
     62  1.51     joerg #if __GNUC_PREREQ__(3, 3)
     63  1.51     joerg #define HUGE_VAL	__builtin_huge_val()
     64  1.51     joerg #else
     65  1.42     perry extern const union __double_u __infinity;
     66  1.24    simonb #define HUGE_VAL	__infinity.__val
     67  1.51     joerg #endif
     68  1.24    simonb 
     69  1.24    simonb /*
     70  1.24    simonb  * ISO C99
     71  1.24    simonb  */
     72  1.27    kleink #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     73  1.27    kleink     !defined(_XOPEN_SOURCE) || \
     74  1.27    kleink     ((__STDC_VERSION__ - 0) >= 199901L) || \
     75  1.27    kleink     ((_POSIX_C_SOURCE - 0) >= 200112L) || \
     76  1.27    kleink     ((_XOPEN_SOURCE  - 0) >= 600) || \
     77  1.27    kleink     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
     78  1.28    kleink /* 7.12#3 HUGE_VAL, HUGELF, HUGE_VALL */
     79  1.51     joerg #if __GNUC_PREREQ__(3, 3)
     80  1.51     joerg #define	HUGE_VALF	__builtin_huge_valf()
     81  1.51     joerg #define	HUGE_VALL	__builtin_huge_vall()
     82  1.51     joerg #else
     83  1.42     perry extern const union __float_u __infinityf;
     84  1.27    kleink #define	HUGE_VALF	__infinityf.__val
     85  1.27    kleink 
     86  1.42     perry extern const union __long_double_u __infinityl;
     87  1.27    kleink #define	HUGE_VALL	__infinityl.__val
     88  1.51     joerg #endif
     89  1.27    kleink 
     90  1.28    kleink /* 7.12#4 INFINITY */
     91  1.51     joerg #if __GNUC_PREREQ__(3, 3)
     92  1.51     joerg #define	INFINITY	__builtin_inff()
     93  1.51     joerg #elif defined(__INFINITY)
     94  1.28    kleink #define	INFINITY	__INFINITY	/* float constant which overflows */
     95  1.28    kleink #else
     96  1.28    kleink #define	INFINITY	HUGE_VALF	/* positive infinity */
     97  1.28    kleink #endif /* __INFINITY */
     98  1.28    kleink 
     99  1.28    kleink /* 7.12#5 NAN: a quiet NaN, if supported */
    100  1.27    kleink #ifdef __HAVE_NANF
    101  1.48    martin #if __GNUC_PREREQ__(3,3)
    102  1.48    martin #define	NAN	__builtin_nanf("")
    103  1.48    martin #else
    104  1.42     perry extern const union __float_u __nanf;
    105  1.24    simonb #define	NAN		__nanf.__val
    106  1.48    martin #endif
    107  1.27    kleink #endif /* __HAVE_NANF */
    108  1.29    kleink 
    109  1.29    kleink /* 7.12#6 number classification macros */
    110  1.29    kleink #define	FP_INFINITE	0x00
    111  1.29    kleink #define	FP_NAN		0x01
    112  1.29    kleink #define	FP_NORMAL	0x02
    113  1.29    kleink #define	FP_SUBNORMAL	0x03
    114  1.29    kleink #define	FP_ZERO		0x04
    115  1.29    kleink /* NetBSD extensions */
    116  1.29    kleink #define	_FP_LOMD	0x80		/* range for machine-specific classes */
    117  1.29    kleink #define	_FP_HIMD	0xff
    118  1.29    kleink 
    119  1.27    kleink #endif /* !_ANSI_SOURCE && ... */
    120   1.1       cgd 
    121   1.6       jtc /*
    122   1.6       jtc  * XOPEN/SVID
    123   1.6       jtc  */
    124  1.25     bjh21 #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
    125   1.1       cgd #define	M_E		2.7182818284590452354	/* e */
    126   1.1       cgd #define	M_LOG2E		1.4426950408889634074	/* log 2e */
    127   1.1       cgd #define	M_LOG10E	0.43429448190325182765	/* log 10e */
    128   1.1       cgd #define	M_LN2		0.69314718055994530942	/* log e2 */
    129   1.1       cgd #define	M_LN10		2.30258509299404568402	/* log e10 */
    130   1.1       cgd #define	M_PI		3.14159265358979323846	/* pi */
    131   1.1       cgd #define	M_PI_2		1.57079632679489661923	/* pi/2 */
    132   1.1       cgd #define	M_PI_4		0.78539816339744830962	/* pi/4 */
    133   1.1       cgd #define	M_1_PI		0.31830988618379067154	/* 1/pi */
    134   1.1       cgd #define	M_2_PI		0.63661977236758134308	/* 2/pi */
    135   1.1       cgd #define	M_2_SQRTPI	1.12837916709551257390	/* 2/sqrt(pi) */
    136   1.1       cgd #define	M_SQRT2		1.41421356237309504880	/* sqrt(2) */
    137   1.1       cgd #define	M_SQRT1_2	0.70710678118654752440	/* 1/sqrt(2) */
    138   1.6       jtc 
    139   1.6       jtc #define	MAXFLOAT	((float)3.40282346638528860e+38)
    140   1.6       jtc extern int signgam;
    141  1.25     bjh21 #endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
    142   1.6       jtc 
    143  1.25     bjh21 #if defined(_NETBSD_SOURCE)
    144   1.6       jtc enum fdversion {fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix};
    145   1.6       jtc 
    146   1.6       jtc #define _LIB_VERSION_TYPE enum fdversion
    147  1.38  junyoung #define _LIB_VERSION _fdlib_version
    148   1.6       jtc 
    149  1.38  junyoung /* if global variable _LIB_VERSION is not desirable, one may
    150  1.38  junyoung  * change the following to be a constant by:
    151   1.6       jtc  *	#define _LIB_VERSION_TYPE const enum version
    152   1.6       jtc  * In that case, after one initializes the value _LIB_VERSION (see
    153   1.6       jtc  * s_lib_version.c) during compile time, it cannot be modified
    154   1.6       jtc  * in the middle of a program
    155  1.38  junyoung  */
    156   1.6       jtc extern  _LIB_VERSION_TYPE  _LIB_VERSION;
    157   1.6       jtc 
    158   1.6       jtc #define _IEEE_  fdlibm_ieee
    159   1.6       jtc #define _SVID_  fdlibm_svid
    160   1.6       jtc #define _XOPEN_ fdlibm_xopen
    161   1.6       jtc #define _POSIX_ fdlibm_posix
    162   1.6       jtc 
    163  1.11        tv #ifndef __cplusplus
    164   1.6       jtc struct exception {
    165   1.6       jtc 	int type;
    166  1.47  christos 	const char *name;
    167   1.6       jtc 	double arg1;
    168   1.6       jtc 	double arg2;
    169   1.6       jtc 	double retval;
    170   1.6       jtc };
    171  1.11        tv #endif
    172   1.6       jtc 
    173   1.6       jtc #define	HUGE		MAXFLOAT
    174   1.6       jtc 
    175  1.38  junyoung /*
    176   1.6       jtc  * set X_TLOSS = pi*2**52, which is possibly defined in <values.h>
    177   1.6       jtc  * (one may replace the following line by "#include <values.h>")
    178   1.6       jtc  */
    179   1.6       jtc 
    180  1.38  junyoung #define X_TLOSS		1.41484755040568800000e+16
    181   1.6       jtc 
    182   1.6       jtc #define	DOMAIN		1
    183   1.6       jtc #define	SING		2
    184   1.6       jtc #define	OVERFLOW	3
    185   1.6       jtc #define	UNDERFLOW	4
    186   1.6       jtc #define	TLOSS		5
    187   1.6       jtc #define	PLOSS		6
    188   1.6       jtc 
    189  1.25     bjh21 #endif /* _NETBSD_SOURCE */
    190   1.6       jtc 
    191   1.1       cgd __BEGIN_DECLS
    192   1.6       jtc /*
    193   1.6       jtc  * ANSI/POSIX
    194   1.6       jtc  */
    195  1.40     perry double	acos(double);
    196  1.40     perry double	asin(double);
    197  1.40     perry double	atan(double);
    198  1.40     perry double	atan2(double, double);
    199  1.40     perry double	cos(double);
    200  1.40     perry double	sin(double);
    201  1.40     perry double	tan(double);
    202  1.40     perry 
    203  1.40     perry double	cosh(double);
    204  1.40     perry double	sinh(double);
    205  1.40     perry double	tanh(double);
    206  1.40     perry 
    207  1.40     perry double	exp(double);
    208  1.50  christos double	exp2(double);
    209  1.40     perry double	frexp(double, int *);
    210  1.40     perry double	ldexp(double, int);
    211  1.40     perry double	log(double);
    212  1.41  christos double	log2(double);
    213  1.40     perry double	log10(double);
    214  1.40     perry double	modf(double, double *);
    215  1.40     perry 
    216  1.40     perry double	pow(double, double);
    217  1.40     perry double	sqrt(double);
    218  1.40     perry 
    219  1.40     perry double	ceil(double);
    220  1.40     perry double	fabs(double);
    221  1.40     perry double	floor(double);
    222  1.40     perry double	fmod(double, double);
    223   1.1       cgd 
    224  1.25     bjh21 #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
    225  1.40     perry double	erf(double);
    226  1.40     perry double	erfc(double);
    227  1.40     perry double	gamma(double);
    228  1.40     perry double	hypot(double, double);
    229  1.40     perry int	finite(double);
    230  1.40     perry double	j0(double);
    231  1.40     perry double	j1(double);
    232  1.40     perry double	jn(int, double);
    233  1.40     perry double	lgamma(double);
    234  1.40     perry double	y0(double);
    235  1.40     perry double	y1(double);
    236  1.40     perry double	yn(int, double);
    237   1.6       jtc 
    238  1.25     bjh21 #if (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
    239  1.40     perry double	acosh(double);
    240  1.40     perry double	asinh(double);
    241  1.40     perry double	atanh(double);
    242  1.40     perry double	cbrt(double);
    243  1.40     perry double	expm1(double);
    244  1.40     perry int	ilogb(double);
    245  1.40     perry double	log1p(double);
    246  1.40     perry double	logb(double);
    247  1.40     perry double	nextafter(double, double);
    248  1.40     perry double	remainder(double, double);
    249  1.40     perry double	rint(double);
    250  1.40     perry double	scalb(double, double);
    251  1.25     bjh21 #endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/
    252  1.25     bjh21 #endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
    253   1.6       jtc 
    254  1.29    kleink /*
    255  1.29    kleink  * ISO C99
    256  1.29    kleink  */
    257  1.29    kleink #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
    258  1.29    kleink     !defined(_XOPEN_SOURCE) || \
    259  1.29    kleink     ((__STDC_VERSION__ - 0) >= 199901L) || \
    260  1.29    kleink     ((_POSIX_C_SOURCE - 0) >= 200112L) || \
    261  1.29    kleink     ((_XOPEN_SOURCE  - 0) >= 600) || \
    262  1.29    kleink     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
    263  1.29    kleink /* 7.12.3.1 int fpclassify(real-floating x) */
    264  1.29    kleink #define	fpclassify(__x)	__fpmacro_unary_floating(fpclassify, __x)
    265  1.29    kleink 
    266  1.29    kleink /* 7.12.3.2 int isfinite(real-floating x) */
    267  1.29    kleink #define	isfinite(__x)	__fpmacro_unary_floating(isfinite, __x)
    268  1.29    kleink 
    269  1.29    kleink /* 7.12.3.5 int isnormal(real-floating x) */
    270  1.29    kleink #define	isnormal(__x)	(fpclassify(__x) == FP_NORMAL)
    271  1.29    kleink 
    272  1.29    kleink /* 7.12.3.6 int signbit(real-floating x) */
    273  1.29    kleink #define	signbit(__x)	__fpmacro_unary_floating(signbit, __x)
    274  1.29    kleink 
    275  1.35  drochner /* 7.12.4 trigonometric */
    276  1.35  drochner 
    277  1.40     perry float	acosf(float);
    278  1.40     perry float	asinf(float);
    279  1.40     perry float	atanf(float);
    280  1.40     perry float	atan2f(float, float);
    281  1.40     perry float	cosf(float);
    282  1.40     perry float	sinf(float);
    283  1.40     perry float	tanf(float);
    284  1.35  drochner 
    285  1.35  drochner /* 7.12.5 hyperbolic */
    286  1.35  drochner 
    287  1.40     perry float	acoshf(float);
    288  1.40     perry float	asinhf(float);
    289  1.40     perry float	atanhf(float);
    290  1.40     perry float	coshf(float);
    291  1.40     perry float	sinhf(float);
    292  1.40     perry float	tanhf(float);
    293  1.35  drochner 
    294  1.35  drochner /* 7.12.6 exp / log */
    295  1.35  drochner 
    296  1.40     perry float	expf(float);
    297  1.50  christos float	exp2f(float);
    298  1.40     perry float	expm1f(float);
    299  1.40     perry float	frexpf(float, int *);
    300  1.40     perry int	ilogbf(float);
    301  1.40     perry float	ldexpf(float, int);
    302  1.40     perry float	logf(float);
    303  1.41  christos float	log2f(float);
    304  1.40     perry float	log10f(float);
    305  1.40     perry float	log1pf(float);
    306  1.40     perry float	logbf(float);
    307  1.40     perry float	modff(float, float *);
    308  1.40     perry float	scalbnf(float, int);
    309  1.35  drochner 
    310  1.35  drochner /* 7.12.7 power / absolute */
    311  1.35  drochner 
    312  1.40     perry float	cbrtf(float);
    313  1.40     perry float	fabsf(float);
    314  1.40     perry float	hypotf(float, float);
    315  1.40     perry float	powf(float, float);
    316  1.40     perry float	sqrtf(float);
    317  1.35  drochner 
    318  1.35  drochner /* 7.12.8 error / gamma */
    319  1.35  drochner 
    320  1.40     perry float	erff(float);
    321  1.40     perry float	erfcf(float);
    322  1.40     perry float	lgammaf(float);
    323  1.35  drochner 
    324  1.35  drochner /* 7.12.9 nearest integer */
    325  1.35  drochner 
    326  1.40     perry float	ceilf(float);
    327  1.40     perry float	floorf(float);
    328  1.40     perry float	rintf(float);
    329  1.40     perry double	round(double);
    330  1.40     perry float	roundf(float);
    331  1.44   xtraeme double	trunc(double);
    332  1.44   xtraeme float	truncf(float);
    333  1.40     perry long int	lrint(double);
    334  1.40     perry long int	lrintf(float);
    335  1.36  drochner /* LONGLONG */
    336  1.40     perry long long int	llrint(double);
    337  1.36  drochner /* LONGLONG */
    338  1.40     perry long long int	llrintf(float);
    339  1.40     perry long int	lround(double);
    340  1.40     perry long int	lroundf(float);
    341  1.37  drochner /* LONGLONG */
    342  1.40     perry long long int	llround(double);
    343  1.37  drochner /* LONGLONG */
    344  1.40     perry long long int	llroundf(float);
    345  1.35  drochner 
    346  1.35  drochner /* 7.12.10 remainder */
    347  1.35  drochner 
    348  1.40     perry float	fmodf(float, float);
    349  1.40     perry float	remainderf(float, float);
    350  1.35  drochner 
    351  1.45  drochner /* 7.12.11 manipulation */
    352  1.35  drochner 
    353  1.40     perry float	copysignf(float, float);
    354  1.43    kleink double	nan(const char *);
    355  1.43    kleink float	nanf(const char *);
    356  1.43    kleink long double	nanl(const char *);
    357  1.40     perry float	nextafterf(float, float);
    358  1.35  drochner 
    359  1.52  dholland /* 7.12.14 comparison */
    360  1.45  drochner 
    361  1.45  drochner #define isunordered(x, y)	(isnan(x) || isnan(y))
    362  1.45  drochner #define isgreater(x, y)		(!isunordered((x), (y)) && (x) > (y))
    363  1.45  drochner #define isgreaterequal(x, y)	(!isunordered((x), (y)) && (x) >= (y))
    364  1.45  drochner #define isless(x, y)		(!isunordered((x), (y)) && (x) < (y))
    365  1.45  drochner #define islessequal(x, y)	(!isunordered((x), (y)) && (x) <= (y))
    366  1.45  drochner #define islessgreater(x, y)	(!isunordered((x), (y)) && \
    367  1.45  drochner 				 ((x) > (y) || (y) > (x)))
    368  1.49  christos double	fdim(double, double);
    369  1.49  christos double	fmax(double, double);
    370  1.49  christos double	fmin(double, double);
    371  1.49  christos float	fdimf(float, float);
    372  1.49  christos float	fmaxf(float, float);
    373  1.49  christos float	fminf(float, float);
    374  1.49  christos long double fdiml(long double, long double);
    375  1.49  christos long double fmaxl(long double, long double);
    376  1.49  christos long double fminl(long double, long double);
    377  1.35  drochner 
    378  1.29    kleink #endif /* !_ANSI_SOURCE && ... */
    379  1.29    kleink 
    380  1.34    kleink #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \
    381  1.34    kleink     !defined(_XOPEN_SOURCE) || \
    382  1.34    kleink     ((__STDC_VERSION__ - 0) >= 199901L) || \
    383  1.34    kleink     ((_POSIX_C_SOURCE - 0) >= 200112L) || \
    384  1.34    kleink     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
    385  1.34    kleink /* 7.12.3.3 int isinf(real-floating x) */
    386  1.34    kleink #ifdef __isinf
    387  1.34    kleink #define	isinf(__x)	__isinf(__x)
    388  1.34    kleink #else
    389  1.34    kleink #define	isinf(__x)	__fpmacro_unary_floating(isinf, __x)
    390  1.34    kleink #endif
    391  1.34    kleink 
    392  1.34    kleink /* 7.12.3.4 int isnan(real-floating x) */
    393  1.34    kleink #ifdef __isnan
    394  1.34    kleink #define	isnan(__x)	__isnan(__x)
    395  1.34    kleink #else
    396  1.34    kleink #define	isnan(__x)	__fpmacro_unary_floating(isnan, __x)
    397  1.34    kleink #endif
    398  1.34    kleink #endif /* !_ANSI_SOURCE && ... */
    399  1.34    kleink 
    400  1.25     bjh21 #if defined(_NETBSD_SOURCE)
    401  1.11        tv #ifndef __cplusplus
    402  1.40     perry int	matherr(struct exception *);
    403  1.11        tv #endif
    404   1.6       jtc 
    405   1.6       jtc /*
    406   1.6       jtc  * IEEE Test Vector
    407   1.6       jtc  */
    408  1.40     perry double	significand(double);
    409   1.1       cgd 
    410   1.6       jtc /*
    411   1.6       jtc  * Functions callable from C, intended to support IEEE arithmetic.
    412   1.6       jtc  */
    413  1.40     perry double	copysign(double, double);
    414  1.40     perry double	scalbn(double, int);
    415   1.6       jtc 
    416   1.6       jtc /*
    417   1.6       jtc  * BSD math library entry points
    418   1.6       jtc  */
    419  1.40     perry double	drem(double, double);
    420   1.6       jtc 
    421  1.25     bjh21 #endif /* _NETBSD_SOURCE */
    422  1.12    kleink 
    423  1.25     bjh21 #if defined(_NETBSD_SOURCE) || defined(_REENTRANT)
    424   1.6       jtc /*
    425   1.6       jtc  * Reentrant version of gamma & lgamma; passes signgam back by reference
    426   1.6       jtc  * as the second argument; user must allocate space for signgam.
    427   1.6       jtc  */
    428  1.40     perry double	gamma_r(double, int *);
    429  1.40     perry double	lgamma_r(double, int *);
    430  1.25     bjh21 #endif /* _NETBSD_SOURCE || _REENTRANT */
    431   1.9       jtc 
    432   1.9       jtc 
    433  1.25     bjh21 #if defined(_NETBSD_SOURCE)
    434  1.15    kleink 
    435   1.9       jtc /* float versions of ANSI/POSIX functions */
    436  1.22    simonb 
    437  1.40     perry float	gammaf(float);
    438  1.40     perry int	isinff(float);
    439  1.40     perry int	isnanf(float);
    440  1.40     perry int	finitef(float);
    441  1.40     perry float	j0f(float);
    442  1.40     perry float	j1f(float);
    443  1.40     perry float	jnf(int, float);
    444  1.40     perry float	y0f(float);
    445  1.40     perry float	y1f(float);
    446  1.40     perry float	ynf(int, float);
    447  1.22    simonb 
    448  1.40     perry float	scalbf(float, float);
    449   1.9       jtc 
    450   1.9       jtc /*
    451   1.9       jtc  * float version of IEEE Test Vector
    452   1.9       jtc  */
    453  1.40     perry float	significandf(float);
    454   1.9       jtc 
    455   1.9       jtc /*
    456   1.9       jtc  * float versions of BSD math library entry points
    457   1.9       jtc  */
    458  1.40     perry float	dremf(float, float);
    459  1.25     bjh21 #endif /* _NETBSD_SOURCE */
    460   1.9       jtc 
    461  1.25     bjh21 #if defined(_NETBSD_SOURCE) || defined(_REENTRANT)
    462   1.9       jtc /*
    463   1.9       jtc  * Float versions of reentrant version of gamma & lgamma; passes
    464   1.9       jtc  * signgam back by reference as the second argument; user must
    465   1.9       jtc  * allocate space for signgam.
    466   1.9       jtc  */
    467  1.40     perry float	gammaf_r(float, int *);
    468  1.40     perry float	lgammaf_r(float, int *);
    469  1.12    kleink #endif /* !... || _REENTRANT */
    470   1.9       jtc 
    471  1.29    kleink /*
    472  1.29    kleink  * Library implementation
    473  1.29    kleink  */
    474  1.40     perry int	__fpclassifyf(float);
    475  1.40     perry int	__fpclassifyd(double);
    476  1.40     perry int	__isfinitef(float);
    477  1.40     perry int	__isfinited(double);
    478  1.40     perry int	__isinff(float);
    479  1.40     perry int	__isinfd(double);
    480  1.40     perry int	__isnanf(float);
    481  1.40     perry int	__isnand(double);
    482  1.40     perry int	__signbitf(float);
    483  1.40     perry int	__signbitd(double);
    484  1.29    kleink 
    485  1.29    kleink #ifdef __HAVE_LONG_DOUBLE
    486  1.40     perry int	__fpclassifyl(long double);
    487  1.40     perry int	__isfinitel(long double);
    488  1.40     perry int	__isinfl(long double);
    489  1.40     perry int	__isnanl(long double);
    490  1.40     perry int	__signbitl(long double);
    491  1.29    kleink #endif
    492   1.1       cgd __END_DECLS
    493   1.1       cgd 
    494   1.1       cgd #endif /* _MATH_H_ */
    495