View | Details | Raw Unified | Return to bug 276669
Collapse All | Expand All

(-)b/lib/msun/bsdsrc/b_exp.c (-1 lines)
Lines 29-35 Link Here
29
 * SUCH DAMAGE.
29
 * SUCH DAMAGE.
30
 */
30
 */
31
31
32
#include <sys/cdefs.h>
33
/* EXP(X)
32
/* EXP(X)
34
 * RETURN THE EXPONENTIAL OF X
33
 * RETURN THE EXPONENTIAL OF X
35
 * DOUBLE PRECISION (IEEE 53 bits, VAX D FORMAT 56 BITS)
34
 * DOUBLE PRECISION (IEEE 53 bits, VAX D FORMAT 56 BITS)
(-)b/lib/msun/bsdsrc/b_log.c (-1 lines)
Lines 29-35 Link Here
29
 * SUCH DAMAGE.
29
 * SUCH DAMAGE.
30
 */
30
 */
31
31
32
#include <sys/cdefs.h>
33
/* Table-driven natural logarithm.
32
/* Table-driven natural logarithm.
34
 *
33
 *
35
 * This code was derived, with minor modifications, from:
34
 * This code was derived, with minor modifications, from:
(-)b/lib/msun/bsdsrc/b_tgamma.c (-1 lines)
Lines 42-48 Link Here
42
 *  porting to other precisions.
42
 *  porting to other precisions.
43
 */
43
 */
44
44
45
#include <sys/cdefs.h>
46
#include <float.h>
45
#include <float.h>
47
46
48
#include "math.h"
47
#include "math.h"
(-)b/lib/msun/bsdsrc/mathimpl.h (-1 lines)
Lines 36-42 Link Here
36
#ifndef _MATHIMPL_H_
36
#ifndef _MATHIMPL_H_
37
#define	_MATHIMPL_H_
37
#define	_MATHIMPL_H_
38
38
39
#include <sys/cdefs.h>
40
#include <math.h>
39
#include <math.h>
41
40
42
#include "../src/math_private.h"
41
#include "../src/math_private.h"
(-)b/lib/msun/i387/invtrig.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <stdint.h>
29
#include <stdint.h>
31
30
32
#define STRUCT_DECLS
31
#define STRUCT_DECLS
(-)b/lib/msun/ld128/e_lgammal_r.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * See e_lgamma_r.c for complete comments.
13
 * See e_lgamma_r.c for complete comments.
15
 *
14
 *
(-)b/lib/msun/ld128/e_powl.c (-1 lines)
Lines 59-65 Link Here
59
 *
59
 *
60
 */
60
 */
61
61
62
#include <sys/cdefs.h>
63
#include <float.h>
62
#include <float.h>
64
#include <math.h>
63
#include <math.h>
65
64
(-)b/lib/msun/ld128/e_rem_pio2l.h (-1 lines)
Lines 12-18 Link Here
12
 * Optimized by Bruce D. Evans.
12
 * Optimized by Bruce D. Evans.
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/* ld128 version of __ieee754_rem_pio2l(x,y)
15
/* ld128 version of __ieee754_rem_pio2l(x,y)
17
 * 
16
 * 
18
 * return the remainder of x rem pi/2 in y[0]+y[1] 
17
 * return the remainder of x rem pi/2 in y[0]+y[1] 
(-)b/lib/msun/ld128/invtrig.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include "invtrig.h"
29
#include "invtrig.h"
31
30
32
/*
31
/*
(-)b/lib/msun/ld128/k_cosl.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * ld128 version of k_cos.c.  See ../src/k_cos.c for most comments.
14
 * ld128 version of k_cos.c.  See ../src/k_cos.c for most comments.
16
 */
15
 */
(-)b/lib/msun/ld128/k_expl.h (-1 lines)
Lines 30-36 Link Here
30
 * Optimized by Bruce D. Evans.
30
 * Optimized by Bruce D. Evans.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
/*
33
/*
35
 * ld128 version of k_expl.h.  See ../ld80/s_expl.c for most comments.
34
 * ld128 version of k_expl.h.  See ../ld80/s_expl.c for most comments.
36
 *
35
 *
(-)b/lib/msun/ld128/k_sinl.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * ld128 version of k_sin.c.  See ../src/k_sin.c for most comments.
14
 * ld128 version of k_sin.c.  See ../src/k_sin.c for most comments.
16
 */
15
 */
(-)b/lib/msun/ld128/k_tanl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * ld128 version of k_tan.c.  See ../src/k_tan.c for most comments.
13
 * ld128 version of k_tan.c.  See ../src/k_tan.c for most comments.
15
 */
14
 */
(-)b/lib/msun/ld128/s_cexpl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/ld128/s_erfl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * See s_erf.c for complete comments.
13
 * See s_erf.c for complete comments.
15
 *
14
 *
(-)b/lib/msun/ld128/s_exp2l.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#include <stdint.h>
30
#include <stdint.h>
32
31
(-)b/lib/msun/ld128/s_expl.c (-1 lines)
Lines 28-34 Link Here
28
 * Optimized by Bruce D. Evans.
28
 * Optimized by Bruce D. Evans.
29
 */
29
 */
30
30
31
#include <sys/cdefs.h>
32
/*
31
/*
33
 * ld128 version of s_expl.c.  See ../ld80/s_expl.c for most comments.
32
 * ld128 version of s_expl.c.  See ../ld80/s_expl.c for most comments.
34
 */
33
 */
(-)b/lib/msun/ld128/s_logl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
/**
29
/**
31
 * Implementation of the natural logarithm of x for 128-bit format.
30
 * Implementation of the natural logarithm of x for 128-bit format.
32
 *
31
 *
(-)b/lib/msun/ld80/e_lgammal_r.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * See e_lgamma_r.c for complete comments.
13
 * See e_lgamma_r.c for complete comments.
15
 *
14
 *
(-)b/lib/msun/ld80/e_powl.c (-2 lines)
Lines 14-20 Link Here
14
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include <math.h>
17
#include <math.h>
19
18
20
#include "math_private.h"
19
#include "math_private.h"
Lines 114-120 __p1evll(long double x, long double *PP, int n) Link Here
114
 *
113
 *
115
 */
114
 */
116
115
117
#include <sys/cdefs.h>
118
#include <float.h>
116
#include <float.h>
119
#include <math.h>
117
#include <math.h>
120
118
(-)b/lib/msun/ld80/e_rem_pio2l.h (-1 lines)
Lines 12-18 Link Here
12
 * Optimized by Bruce D. Evans.
12
 * Optimized by Bruce D. Evans.
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/* ld80 version of __ieee754_rem_pio2l(x,y)
15
/* ld80 version of __ieee754_rem_pio2l(x,y)
17
 * 
16
 * 
18
 * return the remainder of x rem pi/2 in y[0]+y[1] 
17
 * return the remainder of x rem pi/2 in y[0]+y[1] 
(-)b/lib/msun/ld80/invtrig.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include "invtrig.h"
29
#include "invtrig.h"
31
30
32
/*
31
/*
(-)b/lib/msun/ld80/k_cosl.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * ld80 version of k_cos.c.  See ../src/k_cos.c for most comments.
14
 * ld80 version of k_cos.c.  See ../src/k_cos.c for most comments.
16
 */
15
 */
(-)b/lib/msun/ld80/k_expl.h (-1 lines)
Lines 30-36 Link Here
30
 * Optimized by Bruce D. Evans.
30
 * Optimized by Bruce D. Evans.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
/*
33
/*
35
 * See s_expl.c for more comments about __k_expl().
34
 * See s_expl.c for more comments about __k_expl().
36
 *
35
 *
(-)b/lib/msun/ld80/k_sinl.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * ld80 version of k_sin.c.  See ../src/k_sin.c for most comments.
14
 * ld80 version of k_sin.c.  See ../src/k_sin.c for most comments.
16
 */
15
 */
(-)b/lib/msun/ld80/k_tanl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * ld80 version of k_tan.c.  See ../src/k_tan.c for most comments.
13
 * ld80 version of k_tan.c.  See ../src/k_tan.c for most comments.
15
 */
14
 */
(-)b/lib/msun/ld80/s_cexpl.c (-1 lines)
Lines 28-34 Link Here
28
 * src/s_cexp.c converted to long double complex by Steven G. Kargl
28
 * src/s_cexp.c converted to long double complex by Steven G. Kargl
29
 */
29
 */
30
30
31
#include <sys/cdefs.h>
32
#include <complex.h>
31
#include <complex.h>
33
#include <float.h>
32
#include <float.h>
34
#ifdef __i386__
33
#ifdef __i386__
(-)b/lib/msun/ld80/s_erfl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * See s_erf.c for complete comments.
13
 * See s_erf.c for complete comments.
15
 *
14
 *
(-)b/lib/msun/ld80/s_exp2l.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#include <stdint.h>
30
#include <stdint.h>
32
31
(-)b/lib/msun/ld80/s_expl.c (-1 lines)
Lines 28-34 Link Here
28
 * Optimized by Bruce D. Evans.
28
 * Optimized by Bruce D. Evans.
29
 */
29
 */
30
30
31
#include <sys/cdefs.h>
32
/**
31
/**
33
 * Compute the exponential of x for Intel 80-bit format.  This is based on:
32
 * Compute the exponential of x for Intel 80-bit format.  This is based on:
34
 *
33
 *
(-)b/lib/msun/ld80/s_logl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
/**
29
/**
31
 * Implementation of the natural logarithm of x for Intel 80-bit format.
30
 * Implementation of the natural logarithm of x for Intel 80-bit format.
32
 *
31
 *
(-)b/lib/msun/src/catrig.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
31
(-)b/lib/msun/src/catrigf.c (-1 lines)
Lines 40-46 Link Here
40
 * a few comments on the right of declarations remain.
40
 * a few comments on the right of declarations remain.
41
 */
41
 */
42
42
43
#include <sys/cdefs.h>
44
#include <complex.h>
43
#include <complex.h>
45
#include <float.h>
44
#include <float.h>
46
45
(-)b/lib/msun/src/catrigl.c (-1 lines)
Lines 39-45 Link Here
39
 * a few comments on the right of declarations remain.
39
 * a few comments on the right of declarations remain.
40
 */
40
 */
41
41
42
#include <sys/cdefs.h>
43
#include <complex.h>
42
#include <complex.h>
44
#include <float.h>
43
#include <float.h>
45
44
(-)b/lib/msun/src/e_acos.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* acos(x)
13
/* acos(x)
15
 * Method :                  
14
 * Method :                  
16
 *	acos(x)  = pi/2 - asin(x)
15
 *	acos(x)  = pi/2 - asin(x)
(-)b/lib/msun/src/e_acosf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_acosh.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* acosh(x)
14
/* acosh(x)
16
 * Method :
15
 * Method :
17
 *	Based on 
16
 *	Based on 
(-)b/lib/msun/src/e_acoshf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_acoshl.c (-1 lines)
Lines 12-18 Link Here
12
 *
12
 *
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/*
15
/*
17
 * See e_acosh.c for complete comments.
16
 * See e_acosh.c for complete comments.
18
 *
17
 *
(-)b/lib/msun/src/e_acosl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See comments in e_acos.c.
15
 * See comments in e_acos.c.
17
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
16
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
(-)b/lib/msun/src/e_asin.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* asin(x)
13
/* asin(x)
15
 * Method :                  
14
 * Method :                  
16
 *	Since  asin(x) = x + x^3/6 + x^5*3/40 + x^7*15/336 + ...
15
 *	Since  asin(x) = x + x^3/6 + x^5*3/40 + x^7*15/336 + ...
(-)b/lib/msun/src/e_asinf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_asinl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See comments in e_asin.c.
15
 * See comments in e_asin.c.
17
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
16
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
(-)b/lib/msun/src/e_atan2.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* atan2(y,x)
14
/* atan2(y,x)
16
 * Method :
15
 * Method :
17
 *	1. Reduce y to positive by atan2(y,x)=-atan2(-y,x).
16
 *	1. Reduce y to positive by atan2(y,x)=-atan2(-y,x).
(-)b/lib/msun/src/e_atan2f.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_atan2l.c (-1 lines)
Lines 12-18 Link Here
12
 *
12
 *
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/*
15
/*
17
 * See comments in e_atan2.c.
16
 * See comments in e_atan2.c.
18
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
17
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
(-)b/lib/msun/src/e_atanh.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* atanh(x)
14
/* atanh(x)
16
 * Method :
15
 * Method :
17
 *    1.Reduced x to positive by atanh(-x) = -atanh(x)
16
 *    1.Reduced x to positive by atanh(-x) = -atanh(x)
(-)b/lib/msun/src/e_atanhf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_atanhl.c (-1 lines)
Lines 12-18 Link Here
12
 *
12
 *
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/*
15
/*
17
 * See e_atanh.c for complete comments.
16
 * See e_atanh.c for complete comments.
18
 *
17
 *
(-)b/lib/msun/src/e_cosh.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* cosh(x)
13
/* cosh(x)
15
 * Method : 
14
 * Method : 
16
 * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
15
 * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
(-)b/lib/msun/src/e_coshf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_coshl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See e_cosh.c for complete comments.
15
 * See e_cosh.c for complete comments.
17
 *
16
 *
(-)b/lib/msun/src/e_exp.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* exp(x)
12
/* exp(x)
14
 * Returns the exponential of x.
13
 * Returns the exponential of x.
15
 *
14
 *
(-)b/lib/msun/src/e_expf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include <float.h>
16
#include <float.h>
18
17
19
#include "math.h"
18
#include "math.h"
(-)b/lib/msun/src/e_fmod.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* 
13
/* 
15
 * fmod(x,y)
14
 * fmod(x,y)
16
 * Return x mod y in exact arithmetic
15
 * Return x mod y in exact arithmetic
(-)b/lib/msun/src/e_fmodf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * fmodf(x,y)
17
 * fmodf(x,y)
19
 * Return x mod y in exact arithmetic
18
 * Return x mod y in exact arithmetic
(-)b/lib/msun/src/e_fmodl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
#include <stdint.h>
13
#include <stdint.h>
15
14
(-)b/lib/msun/src/e_gamma.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* gamma(x)
14
/* gamma(x)
16
 * Return the logarithm of the Gamma function of x.
15
 * Return the logarithm of the Gamma function of x.
17
 *
16
 *
(-)b/lib/msun/src/e_gamma_r.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* gamma_r(x, signgamp)
14
/* gamma_r(x, signgamp)
16
 * Reentrant version of the logarithm of the Gamma function 
15
 * Reentrant version of the logarithm of the Gamma function 
17
 * with user provide pointer for the sign of Gamma(x). 
16
 * with user provide pointer for the sign of Gamma(x). 
(-)b/lib/msun/src/e_gammaf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/* gammaf(x)
16
/* gammaf(x)
18
 * Return the logarithm of the Gamma function of x.
17
 * Return the logarithm of the Gamma function of x.
19
 *
18
 *
(-)b/lib/msun/src/e_gammaf_r.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/* gammaf_r(x, signgamp)
16
/* gammaf_r(x, signgamp)
18
 * Reentrant version of the logarithm of the Gamma function
17
 * Reentrant version of the logarithm of the Gamma function
19
 * with user provide pointer for the sign of Gamma(x).
18
 * with user provide pointer for the sign of Gamma(x).
(-)b/lib/msun/src/e_hypot.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* hypot(x,y)
13
/* hypot(x,y)
15
 *
14
 *
16
 * Method :                  
15
 * Method :                  
(-)b/lib/msun/src/e_hypotf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_hypotl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* long double version of hypot().  See e_hypot.c for most comments. */
12
/* long double version of hypot().  See e_hypot.c for most comments. */
14
13
15
#include <float.h>
14
#include <float.h>
(-)b/lib/msun/src/e_j0.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* j0(x), y0(x)
12
/* j0(x), y0(x)
14
 * Bessel function of the first and second kinds of order zero.
13
 * Bessel function of the first and second kinds of order zero.
15
 * Method -- j0(x):
14
 * Method -- j0(x):
(-)b/lib/msun/src/e_j0f.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * See e_j0.c for complete comments.
17
 * See e_j0.c for complete comments.
19
 */
18
 */
(-)b/lib/msun/src/e_j1.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* j1(x), y1(x)
12
/* j1(x), y1(x)
14
 * Bessel function of the first and second kinds of order zero.
13
 * Bessel function of the first and second kinds of order zero.
15
 * Method -- j1(x):
14
 * Method -- j1(x):
(-)b/lib/msun/src/e_j1f.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * See e_j1.c for complete comments.
17
 * See e_j1.c for complete comments.
19
 */
18
 */
(-)b/lib/msun/src/e_jn.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * jn(n, x), yn(n, x)
13
 * jn(n, x), yn(n, x)
15
 * floating point Bessel's function of the 1st and 2nd kind
14
 * floating point Bessel's function of the 1st and 2nd kind
(-)b/lib/msun/src/e_jnf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * See e_jn.c for complete comments.
17
 * See e_jn.c for complete comments.
19
 */
18
 */
(-)b/lib/msun/src/e_lgamma.c (-1 lines)
Lines 11-17 Link Here
11
 *
11
 *
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* lgamma(x)
14
/* lgamma(x)
16
 * Return the logarithm of the Gamma function of x.
15
 * Return the logarithm of the Gamma function of x.
17
 *
16
 *
(-)b/lib/msun/src/e_lgamma_r.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* lgamma_r(x, signgamp)
12
/* lgamma_r(x, signgamp)
14
 * Reentrant version of the logarithm of the Gamma function
13
 * Reentrant version of the logarithm of the Gamma function
15
 * with user provide pointer for the sign of Gamma(x).
14
 * with user provide pointer for the sign of Gamma(x).
(-)b/lib/msun/src/e_lgammaf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/* lgammaf(x)
16
/* lgammaf(x)
18
 * Return the logarithm of the Gamma function of x.
17
 * Return the logarithm of the Gamma function of x.
19
 *
18
 *
(-)b/lib/msun/src/e_lgammaf_r.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include "math.h"
17
#include "math.h"
19
#include "math_private.h"
18
#include "math_private.h"
20
19
(-)b/lib/msun/src/e_lgammal.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include "math.h"
12
#include "math.h"
14
#include "math_private.h"
13
#include "math_private.h"
15
14
(-)b/lib/msun/src/e_log.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* log(x)
13
/* log(x)
15
 * Return the logrithm of x
14
 * Return the logrithm of x
16
 *
15
 *
(-)b/lib/msun/src/e_log10.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * Return the base 10 logarithm of x.  See e_log.c and k_log.h for most
14
 * Return the base 10 logarithm of x.  See e_log.c and k_log.h for most
16
 * comments.
15
 * comments.
(-)b/lib/msun/src/e_log10f.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * Float version of e_log10.c.  See the latter for most comments.
13
 * Float version of e_log10.c.  See the latter for most comments.
15
 */
14
 */
(-)b/lib/msun/src/e_log2.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * Return the base 2 logarithm of x.  See e_log.c and k_log.h for most
14
 * Return the base 2 logarithm of x.  See e_log.c and k_log.h for most
16
 * comments.
15
 * comments.
(-)b/lib/msun/src/e_log2f.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * Float version of e_log2.c.  See the latter for most comments.
13
 * Float version of e_log2.c.  See the latter for most comments.
15
 */
14
 */
(-)b/lib/msun/src/e_logf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_pow.c (-1 lines)
Lines 8-14 Link Here
8
 * ====================================================
8
 * ====================================================
9
 */
9
 */
10
10
11
#include <sys/cdefs.h>
12
/* pow(x,y) return x**y
11
/* pow(x,y) return x**y
13
 *
12
 *
14
 *		      n
13
 *		      n
(-)b/lib/msun/src/e_powf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_rem_pio2.c (-1 lines)
Lines 12-18 Link Here
12
 * Optimized by Bruce D. Evans.
12
 * Optimized by Bruce D. Evans.
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
/* __ieee754_rem_pio2(x,y)
15
/* __ieee754_rem_pio2(x,y)
17
 * 
16
 * 
18
 * return the remainder of x rem pi/2 in y[0]+y[1] 
17
 * return the remainder of x rem pi/2 in y[0]+y[1] 
(-)b/lib/msun/src/e_rem_pio2f.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
/* __ieee754_rem_pio2f(x,y)
17
/* __ieee754_rem_pio2f(x,y)
19
 *
18
 *
20
 * return the remainder of x rem pi/2 in *y
19
 * return the remainder of x rem pi/2 in *y
(-)b/lib/msun/src/e_remainder.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* remainder(x,p)
13
/* remainder(x,p)
15
 * Return :                  
14
 * Return :                  
16
 * 	returns  x REM p  =  x - [x/p]*p as if in infinite 
15
 * 	returns  x REM p  =  x - [x/p]*p as if in infinite 
(-)b/lib/msun/src/e_remainderf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_remainderl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
long double
31
long double
(-)b/lib/msun/src/e_scalb.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * scalb(x, fn) is provide for
14
 * scalb(x, fn) is provide for
16
 * passing various standard test suite. One 
15
 * passing various standard test suite. One 
(-)b/lib/msun/src/e_scalbf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_sinh.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* sinh(x)
13
/* sinh(x)
15
 * Method : 
14
 * Method : 
16
 * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2
15
 * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2
(-)b/lib/msun/src/e_sinhf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/e_sinhl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See e_sinh.c for complete comments.
15
 * See e_sinh.c for complete comments.
17
 *
16
 *
(-)b/lib/msun/src/e_sqrt.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
#include <float.h>
13
#include <float.h>
15
14
16
#include "math.h"
15
#include "math.h"
(-)b/lib/msun/src/e_sqrtl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
#include <float.h>
30
#include <float.h>
32
31
(-)b/lib/msun/src/k_cos.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * __kernel_cos( x,  y )
14
 * __kernel_cos( x,  y )
16
 * kernel cos function on [-pi/4, pi/4], pi/4 ~ 0.785398164
15
 * kernel cos function on [-pi/4, pi/4], pi/4 ~ 0.785398164
(-)b/lib/msun/src/k_cosf.c (-4 lines)
Lines 14-23 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#ifndef INLINE_KERNEL_COSDF
18
#include <sys/cdefs.h>
19
#endif
20
21
#include "math.h"
17
#include "math.h"
22
#include "math_private.h"
18
#include "math_private.h"
23
19
(-)b/lib/msun/src/k_exp.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/k_expf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/k_log.h (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * k_log1p(f):
14
 * k_log1p(f):
16
 * Return log(1+f) - f for 1+f in ~[sqrt(2)/2, sqrt(2)].
15
 * Return log(1+f) - f for 1+f in ~[sqrt(2)/2, sqrt(2)].
(-)b/lib/msun/src/k_logf.h (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * Float version of k_log.h.  See the latter for most comments.
13
 * Float version of k_log.h.  See the latter for most comments.
15
 */
14
 */
(-)b/lib/msun/src/k_rem_pio2.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * __kernel_rem_pio2(x,y,e0,nx,prec)
14
 * __kernel_rem_pio2(x,y,e0,nx,prec)
16
 * double x[],y[]; int e0,nx,prec;
15
 * double x[],y[]; int e0,nx,prec;
(-)b/lib/msun/src/k_sin.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/* __kernel_sin( x, y, iy)
13
/* __kernel_sin( x, y, iy)
15
 * kernel sin function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854
14
 * kernel sin function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854
16
 * Input x is assumed to be bounded by ~pi/4 in magnitude.
15
 * Input x is assumed to be bounded by ~pi/4 in magnitude.
(-)b/lib/msun/src/k_sincos.h (-1 lines)
Lines 11-17 Link Here
11
 * k_sin.c and k_cos.c merged by Steven G. Kargl.
11
 * k_sin.c and k_cos.c merged by Steven G. Kargl.
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
static const double
14
static const double
16
S1  = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */
15
S1  = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */
17
S2  =  8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */
16
S2  =  8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */
(-)b/lib/msun/src/k_sincosf.h (-1 lines)
Lines 11-17 Link Here
11
 * k_sinf.c and k_cosf.c merged by Steven G. Kargl.
11
 * k_sinf.c and k_cosf.c merged by Steven G. Kargl.
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */
14
/* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */
16
static const double
15
static const double
17
S1 = -0x15555554cbac77.0p-55,	/* -0.166666666416265235595 */
16
S1 = -0x15555554cbac77.0p-55,	/* -0.166666666416265235595 */
(-)b/lib/msun/src/k_sincosl.h (-1 lines)
Lines 12-18 Link Here
12
 * k_sinl.c and k_cosl.c merged by Steven G. Kargl
12
 * k_sinl.c and k_cosl.c merged by Steven G. Kargl
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
#if LDBL_MANT_DIG == 64		/* ld80 version of k_sincosl.c. */
15
#if LDBL_MANT_DIG == 64		/* ld80 version of k_sincosl.c. */
17
16
18
#if defined(__amd64__) || defined(__i386__)
17
#if defined(__amd64__) || defined(__i386__)
(-)b/lib/msun/src/k_sinf.c (-4 lines)
Lines 14-23 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#ifndef INLINE_KERNEL_SINDF
18
#include <sys/cdefs.h>
19
#endif
20
21
#include "math.h"
17
#include "math.h"
22
#include "math_private.h"
18
#include "math_private.h"
23
19
(-)b/lib/msun/src/k_tan.c (-2 lines)
Lines 8-15 Link Here
8
 * ====================================================
8
 * ====================================================
9
 */
9
 */
10
10
11
/* INDENT OFF */
12
#include <sys/cdefs.h>
13
/* __kernel_tan( x, y, k )
11
/* __kernel_tan( x, y, k )
14
 * kernel tan function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854
12
 * kernel tan function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854
15
 * Input x is assumed to be bounded by ~pi/4 in magnitude.
13
 * Input x is assumed to be bounded by ~pi/4 in magnitude.
(-)b/lib/msun/src/k_tanf.c (-4 lines)
Lines 13-22 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#ifndef INLINE_KERNEL_TANDF
17
#include <sys/cdefs.h>
18
#endif
19
20
#include "math.h"
16
#include "math.h"
21
#include "math_private.h"
17
#include "math_private.h"
22
18
(-)b/lib/msun/src/math.h (-1 lines)
Lines 15-21 Link Here
15
#ifndef _MATH_H_
15
#ifndef _MATH_H_
16
#define	_MATH_H_
16
#define	_MATH_H_
17
17
18
#include <sys/cdefs.h>
19
#include <sys/_types.h>
18
#include <sys/_types.h>
20
#include <machine/_limits.h>
19
#include <machine/_limits.h>
21
20
(-)b/lib/msun/src/s_asinh.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* asinh(x)
12
/* asinh(x)
14
 * Method :
13
 * Method :
15
 *	Based on
14
 *	Based on
(-)b/lib/msun/src/s_asinhf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_asinhl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See s_asinh.c for complete comments.
15
 * See s_asinh.c for complete comments.
17
 *
16
 *
(-)b/lib/msun/src/s_atan.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* atan(x)
12
/* atan(x)
14
 * Method
13
 * Method
15
 *   1. Reduce x to positive by atan(x) = -atan(-x).
14
 *   1. Reduce x to positive by atan(x) = -atan(-x).
(-)b/lib/msun/src/s_atanf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_atanl.c (-1 lines)
Lines 10-16 Link Here
10
 * ====================================================
10
 * ====================================================
11
 */
11
 */
12
12
13
#include <sys/cdefs.h>
14
/*
13
/*
15
 * See comments in s_atan.c.
14
 * See comments in s_atan.c.
16
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
15
 * Converted to long double by David Schultz <das@FreeBSD.ORG>.
(-)b/lib/msun/src/s_carg.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_cargf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_cargl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_cbrt.c (-1 lines)
Lines 11-17 Link Here
11
 * Optimized by Bruce D. Evans.
11
 * Optimized by Bruce D. Evans.
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
#include <float.h>
14
#include <float.h>
16
#include "math.h"
15
#include "math.h"
17
#include "math_private.h"
16
#include "math_private.h"
(-)b/lib/msun/src/s_cbrtf.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include "math.h"
17
#include "math.h"
19
#include "math_private.h"
18
#include "math_private.h"
20
19
(-)b/lib/msun/src/s_cbrtl.c (-1 lines)
Lines 14-20 Link Here
14
 * and David A. Schultz.
14
 * and David A. Schultz.
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include <float.h>
17
#include <float.h>
19
#ifdef __i386__
18
#ifdef __i386__
20
#include <ieeefp.h>
19
#include <ieeefp.h>
(-)b/lib/msun/src/s_ccosh.c (-1 lines)
Lines 38-44 Link Here
38
 * must satisfy both cosh(conj(z)) == conj(cosh(z)) and cosh(-z) == cosh(z).
38
 * must satisfy both cosh(conj(z)) == conj(cosh(z)) and cosh(-z) == cosh(z).
39
 */
39
 */
40
40
41
#include <sys/cdefs.h>
42
#include <complex.h>
41
#include <complex.h>
43
#include <math.h>
42
#include <math.h>
44
43
(-)b/lib/msun/src/s_ccoshf.c (-1 lines)
Lines 30-36 Link Here
30
 * Float version of ccosh().  See s_ccosh.c for details.
30
 * Float version of ccosh().  See s_ccosh.c for details.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
#include <complex.h>
33
#include <complex.h>
35
#include <math.h>
34
#include <math.h>
36
35
(-)b/lib/msun/src/s_ceil.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * ceil(x)
13
 * ceil(x)
15
 * Return x rounded toward -inf to integral value
14
 * Return x rounded toward -inf to integral value
(-)b/lib/msun/src/s_ceilf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_ceill.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * ceill(x)
13
 * ceill(x)
15
 * Return x rounded toward -inf to integral value
14
 * Return x rounded toward -inf to integral value
(-)b/lib/msun/src/s_cexp.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_cexpf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_clog.c (-1 lines)
Lines 24-30 Link Here
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 */
25
 */
26
26
27
#include <sys/cdefs.h>
28
#include <complex.h>
27
#include <complex.h>
29
#include <float.h>
28
#include <float.h>
30
29
(-)b/lib/msun/src/s_clogf.c (-1 lines)
Lines 24-30 Link Here
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 */
25
 */
26
26
27
#include <sys/cdefs.h>
28
#include <complex.h>
27
#include <complex.h>
29
#include <float.h>
28
#include <float.h>
30
29
(-)b/lib/msun/src/s_clogl.c (-1 lines)
Lines 24-30 Link Here
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 */
25
 */
26
26
27
#include <sys/cdefs.h>
28
#include <complex.h>
27
#include <complex.h>
29
#include <float.h>
28
#include <float.h>
30
#ifdef __i386__
29
#ifdef __i386__
(-)b/lib/msun/src/s_copysign.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * copysign(double x, double y)
13
 * copysign(double x, double y)
15
 * copysign(x,y) returns a value with the magnitude of x and
14
 * copysign(x,y) returns a value with the magnitude of x and
(-)b/lib/msun/src/s_copysignf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * copysignf(float x, float y)
17
 * copysignf(float x, float y)
19
 * copysignf(x,y) returns a value with the magnitude of x and
18
 * copysignf(x,y) returns a value with the magnitude of x and
(-)b/lib/msun/src/s_cos.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* cos(x)
12
/* cos(x)
14
 * Return cosine function of x.
13
 * Return cosine function of x.
15
 *
14
 *
(-)b/lib/msun/src/s_cosf.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include <float.h>
17
#include <float.h>
19
18
20
#include "math.h"
19
#include "math.h"
(-)b/lib/msun/src/s_cosl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
/*
29
/*
31
 * Limited testing on pseudorandom numbers drawn within [-2e8:4e8] shows
30
 * Limited testing on pseudorandom numbers drawn within [-2e8:4e8] shows
32
 * an accuracy of <= 0.7412 ULP.
31
 * an accuracy of <= 0.7412 ULP.
(-)b/lib/msun/src/s_cpow.c (-1 lines)
Lines 43-49 Link Here
43
 *
43
 *
44
 */
44
 */
45
45
46
#include <sys/cdefs.h>
47
#include <complex.h>
46
#include <complex.h>
48
#include <float.h>
47
#include <float.h>
49
#include <math.h>
48
#include <math.h>
(-)b/lib/msun/src/s_cpowf.c (-1 lines)
Lines 43-49 Link Here
43
 *
43
 *
44
 */
44
 */
45
45
46
#include <sys/cdefs.h>
47
#include <complex.h>
46
#include <complex.h>
48
#include <math.h>
47
#include <math.h>
49
#include "math_private.h"
48
#include "math_private.h"
(-)b/lib/msun/src/s_cpowl.c (-1 lines)
Lines 43-49 Link Here
43
 *
43
 *
44
 */
44
 */
45
45
46
#include <sys/cdefs.h>
47
#include <complex.h>
46
#include <complex.h>
48
#include <math.h>
47
#include <math.h>
49
#include "math_private.h"
48
#include "math_private.h"
(-)b/lib/msun/src/s_cproj.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_cprojf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_cprojl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_csinh.c (-1 lines)
Lines 38-44 Link Here
38
 * must satisfy both sinh(conj(z)) == conj(sinh(z)) and sinh(-z) == -sinh(z).
38
 * must satisfy both sinh(conj(z)) == conj(sinh(z)) and sinh(-z) == -sinh(z).
39
 */
39
 */
40
40
41
#include <sys/cdefs.h>
42
#include <complex.h>
41
#include <complex.h>
43
#include <math.h>
42
#include <math.h>
44
43
(-)b/lib/msun/src/s_csinhf.c (-1 lines)
Lines 30-36 Link Here
30
 * Float version of csinh().  See s_csinh.c for details.
30
 * Float version of csinh().  See s_csinh.c for details.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
#include <complex.h>
33
#include <complex.h>
35
#include <math.h>
34
#include <math.h>
36
35
(-)b/lib/msun/src/s_csqrt.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_csqrtf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_csqrtl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <complex.h>
29
#include <complex.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_ctanh.c (-1 lines)
Lines 65-71 Link Here
65
 *   precision.  I also handle large x differently.
65
 *   precision.  I also handle large x differently.
66
 */
66
 */
67
67
68
#include <sys/cdefs.h>
69
#include <complex.h>
68
#include <complex.h>
70
#include <math.h>
69
#include <math.h>
71
70
(-)b/lib/msun/src/s_ctanhf.c (-1 lines)
Lines 30-36 Link Here
30
 * Hyperbolic tangent of a complex argument z.  See s_ctanh.c for details.
30
 * Hyperbolic tangent of a complex argument z.  See s_ctanh.c for details.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
#include <complex.h>
33
#include <complex.h>
35
#include <math.h>
34
#include <math.h>
36
35
(-)b/lib/msun/src/s_erf.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* double erf(double x)
12
/* double erf(double x)
14
 * double erfc(double x)
13
 * double erfc(double x)
15
 *			     x
14
 *			     x
(-)b/lib/msun/src/s_erff.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_exp2.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/s_exp2f.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/s_expm1.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* expm1(x)
12
/* expm1(x)
14
 * Returns exp(x)-1, the exponential of x minus 1.
13
 * Returns exp(x)-1, the exponential of x minus 1.
15
 *
14
 *
(-)b/lib/msun/src/s_expm1f.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include <float.h>
16
#include <float.h>
18
17
19
#include "math.h"
18
#include "math.h"
(-)b/lib/msun/src/s_fabs.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * fabs(x) returns the absolute value of x.
13
 * fabs(x) returns the absolute value of x.
15
 */
14
 */
(-)b/lib/msun/src/s_fabsf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * fabsf(x) returns the absolute value of x.
17
 * fabsf(x) returns the absolute value of x.
19
 */
18
 */
(-)b/lib/msun/src/s_fdim.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#define	DECL(type, fn)			\
31
#define	DECL(type, fn)			\
(-)b/lib/msun/src/s_finite.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * finite(x) returns 1 is x is finite, else 0;
13
 * finite(x) returns 1 is x is finite, else 0;
15
 * no branching!
14
 * no branching!
(-)b/lib/msun/src/s_finitef.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * finitef(x) returns 1 is x is finite, else 0;
17
 * finitef(x) returns 1 is x is finite, else 0;
19
 * no branching!
18
 * no branching!
(-)b/lib/msun/src/s_floor.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * floor(x)
13
 * floor(x)
15
 * Return x rounded toward -inf to integral value
14
 * Return x rounded toward -inf to integral value
(-)b/lib/msun/src/s_floorf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
/*
16
/*
18
 * floorf(x)
17
 * floorf(x)
19
 * Return x rounded toward -inf to integral value
18
 * Return x rounded toward -inf to integral value
(-)b/lib/msun/src/s_floorl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * floorl(x)
13
 * floorl(x)
15
 * Return x rounded toward -inf to integral value
14
 * Return x rounded toward -inf to integral value
(-)b/lib/msun/src/s_fma.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_fmaf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/s_fmal.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
#include <float.h>
30
#include <float.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_fmax.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_fmaxf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#include "fpmath.h"
31
#include "fpmath.h"
(-)b/lib/msun/src/s_fmaxl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#include "fpmath.h"
31
#include "fpmath.h"
(-)b/lib/msun/src/s_fmin.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_fminf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#include "fpmath.h"
31
#include "fpmath.h"
(-)b/lib/msun/src/s_fminl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#include "fpmath.h"
31
#include "fpmath.h"
(-)b/lib/msun/src/s_frexp.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * for non-zero x
13
 * for non-zero x
15
 *	x = frexp(arg,&exp);
14
 *	x = frexp(arg,&exp);
(-)b/lib/msun/src/s_frexpf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_ilogb.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* ilogb(double x)
12
/* ilogb(double x)
14
 * return the binary exponent of non-zero x
13
 * return the binary exponent of non-zero x
15
 * ilogb(0) = FP_ILOGB0
14
 * ilogb(0) = FP_ILOGB0
(-)b/lib/msun/src/s_ilogbf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include <limits.h>
16
#include <limits.h>
18
17
19
#include "math.h"
18
#include "math.h"
(-)b/lib/msun/src/s_ilogbl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
#include <limits.h>
13
#include <limits.h>
15
#include <math.h>
14
#include <math.h>
(-)b/lib/msun/src/s_llrint.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		double
1
#define type		double
3
#define	roundit		rint
2
#define	roundit		rint
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_llrintf.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		float
1
#define type		float
3
#define	roundit		rintf
2
#define	roundit		rintf
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_llrintl.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		long double
1
#define type		long double
3
#define	roundit		rintl
2
#define	roundit		rintl
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_llround.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		double
1
#define type		double
3
#define	roundit		round
2
#define	roundit		round
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_llroundf.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		float
1
#define type		float
3
#define	roundit		roundf
2
#define	roundit		roundf
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_llroundl.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		long double
1
#define type		long double
3
#define	roundit		roundl
2
#define	roundit		roundl
4
#define dtype		long long
3
#define dtype		long long
(-)b/lib/msun/src/s_log1p.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* double log1p(double x)
12
/* double log1p(double x)
14
 *
13
 *
15
 * Method :
14
 * Method :
(-)b/lib/msun/src/s_log1pf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include <float.h>
16
#include <float.h>
18
17
19
#include "math.h"
18
#include "math.h"
(-)b/lib/msun/src/s_logb.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * double logb(x)
13
 * double logb(x)
15
 * IEEE 754 logb. Included to pass IEEE test suite. Not recommend.
14
 * IEEE 754 logb. Included to pass IEEE test suite. Not recommend.
(-)b/lib/msun/src/s_logbf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_logbl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
#include <limits.h>
13
#include <limits.h>
15
#include <math.h>
14
#include <math.h>
(-)b/lib/msun/src/s_lrint.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_lrintf.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		float
1
#define type		float
3
#define	roundit		rintf
2
#define	roundit		rintf
4
#define dtype		long
3
#define dtype		long
(-)b/lib/msun/src/s_lrintl.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		long double
1
#define type		long double
3
#define	roundit		rintl
2
#define	roundit		rintl
4
#define dtype		long
3
#define dtype		long
(-)b/lib/msun/src/s_lround.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <sys/limits.h>
29
#include <sys/limits.h>
31
#include <fenv.h>
30
#include <fenv.h>
32
#include <math.h>
31
#include <math.h>
(-)b/lib/msun/src/s_lroundf.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		float
1
#define type		float
3
#define	roundit		roundf
2
#define	roundit		roundf
4
#define dtype		long
3
#define dtype		long
(-)b/lib/msun/src/s_lroundl.c (-1 lines)
Lines 1-4 Link Here
1
#include <sys/cdefs.h>
2
#define type		long double
1
#define type		long double
3
#define	roundit		roundl
2
#define	roundit		roundl
4
#define dtype		long
3
#define dtype		long
(-)b/lib/msun/src/s_modff.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_nearbyint.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <fenv.h>
29
#include <fenv.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_nextafter.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* IEEE functions
12
/* IEEE functions
14
 *	nextafter(x,y)
13
 *	nextafter(x,y)
15
 *	return the next machine floating-point number of x in the
14
 *	return the next machine floating-point number of x in the
(-)b/lib/msun/src/s_nextafterf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_nextafterl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* IEEE functions
12
/* IEEE functions
14
 *	nextafter(x,y)
13
 *	nextafter(x,y)
15
 *	return the next machine floating-point number of x in the
14
 *	return the next machine floating-point number of x in the
(-)b/lib/msun/src/s_nexttoward.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * We assume that a long double has a 15-bit exponent.  On systems
13
 * We assume that a long double has a 15-bit exponent.  On systems
15
 * where long double is the same as double, nexttoward() is an alias
14
 * where long double is the same as double, nexttoward() is an alias
(-)b/lib/msun/src/s_nexttowardf.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
13
15
#include "fpmath.h"
14
#include "fpmath.h"
(-)b/lib/msun/src/s_remquo.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
13
15
#include "math.h"
14
#include "math.h"
(-)b/lib/msun/src/s_remquof.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include "math.h"
12
#include "math.h"
14
#include "math_private.h"
13
#include "math_private.h"
15
14
(-)b/lib/msun/src/s_remquol.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
#include <float.h>
12
#include <float.h>
14
#include <stdint.h>
13
#include <stdint.h>
15
14
(-)b/lib/msun/src/s_rint.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * rint(x)
13
 * rint(x)
15
 * Return x rounded to integral value according to the prevailing
14
 * Return x rounded to integral value according to the prevailing
(-)b/lib/msun/src/s_rintf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include <float.h>
16
#include <float.h>
18
#include <stdint.h>
17
#include <stdint.h>
19
18
(-)b/lib/msun/src/s_rintl.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#include <math.h>
30
#include <math.h>
32
31
(-)b/lib/msun/src/s_round.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
30
32
#include "math.h"
31
#include "math.h"
(-)b/lib/msun/src/s_roundf.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include "math.h"
29
#include "math.h"
31
#include "math_private.h"
30
#include "math_private.h"
32
31
(-)b/lib/msun/src/s_roundl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#ifdef __i386__
30
#ifdef __i386__
32
#include <ieeefp.h>
31
#include <ieeefp.h>
(-)b/lib/msun/src/s_scalbln.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
#define	NMAX	65536
31
#define	NMAX	65536
(-)b/lib/msun/src/s_significand.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * significand(x) computes just
13
 * significand(x) computes just
15
 * 	scalb(x, (double) -ilogb(x)),
14
 * 	scalb(x, (double) -ilogb(x)),
(-)b/lib/msun/src/s_significandf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_sin.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* sin(x)
12
/* sin(x)
14
 * Return sine function of x.
13
 * Return sine function of x.
15
 *
14
 *
(-)b/lib/msun/src/s_sincos.c (-1 lines)
Lines 12-18 Link Here
12
 * algorithms are contained in the original files.
12
 * algorithms are contained in the original files.
13
 */
13
 */
14
14
15
#include <sys/cdefs.h>
16
#include <float.h>
15
#include <float.h>
17
16
18
#include "math.h"
17
#include "math.h"
(-)b/lib/msun/src/s_sincosf.c (-1 lines)
Lines 15-21 Link Here
15
 * Merged s_sinf.c and s_cosf.c by Steven G. Kargl.
15
 * Merged s_sinf.c and s_cosf.c by Steven G. Kargl.
16
 */
16
 */
17
17
18
#include <sys/cdefs.h>
19
#include <float.h>
18
#include <float.h>
20
19
21
#include "math.h"
20
#include "math.h"
(-)b/lib/msun/src/s_sincosl.c (-1 lines)
Lines 26-32 Link Here
26
 * s_sinl.c and s_cosl.c merged by Steven G. Kargl.
26
 * s_sinl.c and s_cosl.c merged by Steven G. Kargl.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#ifdef __i386__
30
#ifdef __i386__
32
#include <ieeefp.h>
31
#include <ieeefp.h>
(-)b/lib/msun/src/s_sinf.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include <float.h>
17
#include <float.h>
19
18
20
#include "math.h"
19
#include "math.h"
(-)b/lib/msun/src/s_sinl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <float.h>
29
#include <float.h>
31
#ifdef __i386__
30
#ifdef __i386__
32
#include <ieeefp.h>
31
#include <ieeefp.h>
(-)b/lib/msun/src/s_tan.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* tan(x)
12
/* tan(x)
14
 * Return tangent function of x.
13
 * Return tangent function of x.
15
 *
14
 *
(-)b/lib/msun/src/s_tanf.c (-1 lines)
Lines 14-20 Link Here
14
 * ====================================================
14
 * ====================================================
15
 */
15
 */
16
16
17
#include <sys/cdefs.h>
18
#include <float.h>
17
#include <float.h>
19
18
20
#include "math.h"
19
#include "math.h"
(-)b/lib/msun/src/s_tanh.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/* Tanh(x)
12
/* Tanh(x)
14
 * Return the Hyperbolic Tangent of x
13
 * Return the Hyperbolic Tangent of x
15
 *
14
 *
(-)b/lib/msun/src/s_tanhf.c (-1 lines)
Lines 13-19 Link Here
13
 * ====================================================
13
 * ====================================================
14
 */
14
 */
15
15
16
#include <sys/cdefs.h>
17
#include "math.h"
16
#include "math.h"
18
#include "math_private.h"
17
#include "math_private.h"
19
18
(-)b/lib/msun/src/s_tanhl.c (-1 lines)
Lines 11-17 Link Here
11
 * ====================================================
11
 * ====================================================
12
 */
12
 */
13
13
14
#include <sys/cdefs.h>
15
/*
14
/*
16
 * See s_tanh.c for complete comments.
15
 * See s_tanh.c for complete comments.
17
 *
16
 *
(-)b/lib/msun/src/s_tanl.c (-1 lines)
Lines 26-32 Link Here
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
/*
29
/*
31
 * Limited testing on pseudorandom numbers drawn within [0:4e8] shows
30
 * Limited testing on pseudorandom numbers drawn within [0:4e8] shows
32
 * an accuracy of <= 1.5 ULP where 247024 values of x out of 40 million
31
 * an accuracy of <= 1.5 ULP where 247024 values of x out of 40 million
(-)b/lib/msun/src/s_tgammaf.c (-1 lines)
Lines 26-32 Link Here
26
 * SUCH DAMAGE.
26
 * SUCH DAMAGE.
27
 */
27
 */
28
28
29
#include <sys/cdefs.h>
30
#include <math.h>
29
#include <math.h>
31
30
32
/*
31
/*
(-)b/lib/msun/src/s_trunc.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * trunc(x)
13
 * trunc(x)
15
 * Return x rounded toward 0 to integral value
14
 * Return x rounded toward 0 to integral value
(-)b/lib/msun/src/s_truncf.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * truncf(x)
13
 * truncf(x)
15
 * Return x rounded toward 0 to integral value
14
 * Return x rounded toward 0 to integral value
(-)b/lib/msun/src/s_truncl.c (-1 lines)
Lines 9-15 Link Here
9
 * ====================================================
9
 * ====================================================
10
 */
10
 */
11
11
12
#include <sys/cdefs.h>
13
/*
12
/*
14
 * truncl(x)
13
 * truncl(x)
15
 * Return x rounded toward 0 to integral value
14
 * Return x rounded toward 0 to integral value
(-)b/lib/msun/src/w_cabs.c (-1 lines)
Lines 5-11 Link Here
5
 * Placed into the Public Domain, 1994.
5
 * Placed into the Public Domain, 1994.
6
 */
6
 */
7
7
8
#include <sys/cdefs.h>
9
#include <complex.h>
8
#include <complex.h>
10
#include <float.h>
9
#include <float.h>
11
#include <math.h>
10
#include <math.h>
(-)b/lib/msun/src/w_cabsl.c (-1 lines)
Lines 7-13 Link Here
7
 * Modified by Steven G. Kargl for the long double type.
7
 * Modified by Steven G. Kargl for the long double type.
8
 */
8
 */
9
9
10
#include <sys/cdefs.h>
11
#include <complex.h>
10
#include <complex.h>
12
#include <math.h>
11
#include <math.h>
13
12
(-)b/lib/msun/tests/rem_test.c (-1 lines)
Lines 30-36 Link Here
30
 * Missing tests: fmod, fmodf.
30
 * Missing tests: fmod, fmodf.
31
 */
31
 */
32
32
33
#include <sys/cdefs.h>
34
#include <float.h>
33
#include <float.h>
35
#include <math.h>
34
#include <math.h>
36
#include <stdio.h>
35
#include <stdio.h>

Return to bug 276669