Deleted Added
full compact
math.h (87805) math.h (92917)
1/*
2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
4 *
5 * Developed at SunPro, a Sun Microsystems, Inc. business.
6 * Permission to use, copy, modify, and distribute this
7 * software is freely granted, provided that this notice
8 * is preserved.
9 * ====================================================
10 */
11
12/*
13 * from: @(#)fdlibm.h 5.1 93/09/24
1/*
2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
4 *
5 * Developed at SunPro, a Sun Microsystems, Inc. business.
6 * Permission to use, copy, modify, and distribute this
7 * software is freely granted, provided that this notice
8 * is preserved.
9 * ====================================================
10 */
11
12/*
13 * from: @(#)fdlibm.h 5.1 93/09/24
14 * $FreeBSD: head/lib/msun/src/math.h 87805 2001-12-13 17:22:17Z phantom $
14 * $FreeBSD: head/lib/msun/src/math.h 92917 2002-03-21 23:54:04Z obrien $
15 */
16
17#ifndef _MATH_H_
18#define _MATH_H_
19
20/*
21 * ANSI/POSIX
22 */

--- 73 unchanged lines hidden (view full) ---

96#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
97
98
99#include <sys/cdefs.h>
100/*
101 * ANSI/POSIX
102 */
103__BEGIN_DECLS
15 */
16
17#ifndef _MATH_H_
18#define _MATH_H_
19
20/*
21 * ANSI/POSIX
22 */

--- 73 unchanged lines hidden (view full) ---

96#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
97
98
99#include <sys/cdefs.h>
100/*
101 * ANSI/POSIX
102 */
103__BEGIN_DECLS
104double acos __P((double));
105double asin __P((double));
106double atan __P((double));
107double atan2 __P((double, double));
108double cos __P((double));
109double sin __P((double));
110double tan __P((double));
104double acos(double);
105double asin(double);
106double atan(double);
107double atan2(double, double);
108double cos(double);
109double sin(double);
110double tan(double);
111
111
112double cosh __P((double));
113double sinh __P((double));
114double tanh __P((double));
112double cosh(double);
113double sinh(double);
114double tanh(double);
115
115
116double exp __P((double));
117double frexp __P((double, int *));
118double ldexp __P((double, int));
119double log __P((double));
120double log10 __P((double));
121double modf __P((double, double *));
116double exp(double);
117double frexp(double, int *);
118double ldexp(double, int);
119double log(double);
120double log10(double);
121double modf(double, double *);
122
122
123double pow __P((double, double));
124double sqrt __P((double));
123double pow(double, double);
124double sqrt(double);
125
125
126double ceil __P((double));
127double fabs __P((double));
128double floor __P((double));
129double fmod __P((double, double));
126double ceil(double);
127double fabs(double);
128double floor(double);
129double fmod(double, double);
130
131#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
130
131#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
132double erf __P((double));
133double erfc __P((double));
134double gamma __P((double));
135double hypot __P((double, double));
136int isinf __P((double));
137int isnan __P((double));
138int finite __P((double));
139double j0 __P((double));
140double j1 __P((double));
141double jn __P((int, double));
142double lgamma __P((double));
143double y0 __P((double));
144double y1 __P((double));
145double yn __P((int, double));
132double erf(double);
133double erfc(double);
134double gamma(double);
135double hypot(double, double);
136int isinf(double);
137int isnan(double);
138int finite(double);
139double j0(double);
140double j1(double);
141double jn(int, double);
142double lgamma(double);
143double y0(double);
144double y1(double);
145double yn(int, double);
146
147#if !defined(_XOPEN_SOURCE)
146
147#if !defined(_XOPEN_SOURCE)
148double acosh __P((double));
149double asinh __P((double));
150double atanh __P((double));
151double cbrt __P((double));
152double logb __P((double));
153double nextafter __P((double, double));
154double remainder __P((double, double));
155double scalb __P((double, double));
148double acosh(double);
149double asinh(double);
150double atanh(double);
151double cbrt(double);
152double logb(double);
153double nextafter(double, double);
154double remainder(double, double);
155double scalb(double, double);
156
157#ifndef __cplusplus
156
157#ifndef __cplusplus
158int matherr __P((struct exception *));
158int matherr(struct exception *);
159#endif
160
161/*
162 * IEEE Test Vector
163 */
159#endif
160
161/*
162 * IEEE Test Vector
163 */
164double significand __P((double));
164double significand(double);
165
166/*
167 * Functions callable from C, intended to support IEEE arithmetic.
168 */
165
166/*
167 * Functions callable from C, intended to support IEEE arithmetic.
168 */
169double copysign __P((double, double));
170int ilogb __P((double));
171double rint __P((double));
172double scalbn __P((double, int));
169double copysign(double, double);
170int ilogb(double);
171double rint(double);
172double scalbn(double, int);
173
174/*
175 * BSD math library entry points
176 */
173
174/*
175 * BSD math library entry points
176 */
177double drem __P((double, double));
178double expm1 __P((double));
179double log1p __P((double));
177double drem(double, double);
178double expm1(double);
179double log1p(double);
180
181/*
182 * Reentrant version of gamma & lgamma; passes signgam back by reference
183 * as the second argument; user must allocate space for signgam.
184 */
185#ifdef _REENTRANT
180
181/*
182 * Reentrant version of gamma & lgamma; passes signgam back by reference
183 * as the second argument; user must allocate space for signgam.
184 */
185#ifdef _REENTRANT
186double gamma_r __P((double, int *));
187double lgamma_r __P((double, int *));
186double gamma_r(double, int *);
187double lgamma_r(double, int *);
188#endif /* _REENTRANT */
189
190/* float versions of ANSI/POSIX functions */
188#endif /* _REENTRANT */
189
190/* float versions of ANSI/POSIX functions */
191float acosf __P((float));
192float asinf __P((float));
193float atanf __P((float));
194float atan2f __P((float, float));
195float cosf __P((float));
196float sinf __P((float));
197float tanf __P((float));
191float acosf(float);
192float asinf(float);
193float atanf(float);
194float atan2f(float, float);
195float cosf(float);
196float sinf(float);
197float tanf(float);
198
198
199float coshf __P((float));
200float sinhf __P((float));
201float tanhf __P((float));
199float coshf(float);
200float sinhf(float);
201float tanhf(float);
202
202
203float expf __P((float));
204float frexpf __P((float, int *));
205float ldexpf __P((float, int));
206float logf __P((float));
207float log10f __P((float));
208float modff __P((float, float *));
203float expf(float);
204float frexpf(float, int *);
205float ldexpf(float, int);
206float logf(float);
207float log10f(float);
208float modff(float, float *);
209
209
210float powf __P((float, float));
211float sqrtf __P((float));
210float powf(float, float);
211float sqrtf(float);
212
212
213float ceilf __P((float));
214float fabsf __P((float));
215float floorf __P((float));
216float fmodf __P((float, float));
213float ceilf(float);
214float fabsf(float);
215float floorf(float);
216float fmodf(float, float);
217
217
218float erff __P((float));
219float erfcf __P((float));
220float gammaf __P((float));
221float hypotf __P((float, float));
222int isnanf __P((float));
223int finitef __P((float));
224float j0f __P((float));
225float j1f __P((float));
226float jnf __P((int, float));
227float lgammaf __P((float));
228float y0f __P((float));
229float y1f __P((float));
230float ynf __P((int, float));
218float erff(float);
219float erfcf(float);
220float gammaf(float);
221float hypotf(float, float);
222int isnanf(float);
223int finitef(float);
224float j0f(float);
225float j1f(float);
226float jnf(int, float);
227float lgammaf(float);
228float y0f(float);
229float y1f(float);
230float ynf(int, float);
231
231
232float acoshf __P((float));
233float asinhf __P((float));
234float atanhf __P((float));
235float cbrtf __P((float));
236float logbf __P((float));
237float nextafterf __P((float, float));
238float remainderf __P((float, float));
239float scalbf __P((float, float));
232float acoshf(float);
233float asinhf(float);
234float atanhf(float);
235float cbrtf(float);
236float logbf(float);
237float nextafterf(float, float);
238float remainderf(float, float);
239float scalbf(float, float);
240
241/*
242 * float version of IEEE Test Vector
243 */
240
241/*
242 * float version of IEEE Test Vector
243 */
244float significandf __P((float));
244float significandf(float);
245
246/*
247 * Float versions of functions callable from C, intended to support
248 * IEEE arithmetic.
249 */
245
246/*
247 * Float versions of functions callable from C, intended to support
248 * IEEE arithmetic.
249 */
250float copysignf __P((float, float));
251int ilogbf __P((float));
252float rintf __P((float));
253float scalbnf __P((float, int));
250float copysignf(float, float);
251int ilogbf(float);
252float rintf(float);
253float scalbnf(float, int);
254
255/*
256 * float versions of BSD math library entry points
257 */
254
255/*
256 * float versions of BSD math library entry points
257 */
258float dremf __P((float, float));
259float expm1f __P((float));
260float log1pf __P((float));
258float dremf(float, float);
259float expm1f(float);
260float log1pf(float);
261
262/*
263 * Float versions of reentrant version of gamma & lgamma; passes
264 * signgam back by reference as the second argument; user must
265 * allocate space for signgam.
266 */
267#ifdef _REENTRANT
261
262/*
263 * Float versions of reentrant version of gamma & lgamma; passes
264 * signgam back by reference as the second argument; user must
265 * allocate space for signgam.
266 */
267#ifdef _REENTRANT
268float gammaf_r __P((float, int *));
269float lgammaf_r __P((float, int *));
268float gammaf_r(float, int *);
269float lgammaf_r(float, int *);
270#endif /* _REENTRANT */
271
272#endif /* !_XOPEN_SOURCE */
273#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
274__END_DECLS
275
276#endif /* !_MATH_H_ */
270#endif /* _REENTRANT */
271
272#endif /* !_XOPEN_SOURCE */
273#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
274__END_DECLS
275
276#endif /* !_MATH_H_ */