diff --git a/bsdsrc/b_exp.c b/bsdsrc/b_exp.c index d71c7de..724c36f 100644 --- a/bsdsrc/b_exp.c +++ b/bsdsrc/b_exp.c @@ -31,6 +31,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/bsdsrc/b_exp.c,v 1.9 2011/10/16 05:37:20 das Exp $"); +#include /* EXP(X) * RETURN THE EXPONENTIAL OF X diff --git a/bsdsrc/b_log.c b/bsdsrc/b_log.c index 868c0a6..dc134ec 100644 --- a/bsdsrc/b_log.c +++ b/bsdsrc/b_log.c @@ -31,8 +31,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/bsdsrc/b_log.c,v 1.9 2008/02/22 02:26:51 das Exp $"); -#include -#include +#include #include "mathimpl.h" diff --git a/bsdsrc/b_tgamma.c b/bsdsrc/b_tgamma.c index a5cfb0f..98d7175 100644 --- a/bsdsrc/b_tgamma.c +++ b/bsdsrc/b_tgamma.c @@ -38,7 +38,8 @@ * acknowledged. */ -#include +#include + #include "mathimpl.h" /* METHOD: diff --git a/bsdsrc/mathimpl.h b/bsdsrc/mathimpl.h index dca1e6c..983c4eb 100644 --- a/bsdsrc/mathimpl.h +++ b/bsdsrc/mathimpl.h @@ -34,8 +34,6 @@ #define _MATHIMPL_H_ #include "cdefs-compat.h" -#include - #include "math_private.h" /* diff --git a/include/openlibm.h b/include/openlibm.h index ca704c7..d851945 100644 --- a/include/openlibm.h +++ b/include/openlibm.h @@ -1,513 +1,8 @@ -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -/* - * from: @(#)fdlibm.h 5.1 93/09/24 - * $FreeBSD: src/lib/msun/src/openlibm.h,v 1.82 2011/11/12 19:55:48 theraven Exp $ - */ - -#ifdef OPENLIBM_USE_HOST_MATH_H -#include -#else /* !OPENLIBM_USE_HOST_MATH_H */ - #ifndef OPENLIBM_H -#define OPENLIBM_H +#define OPENLIBM_H -#if (defined(_WIN32) || defined (_MSC_VER)) && !defined(__WIN32__) - #define __WIN32__ -#endif +#include +#include +#include -#ifndef __arm__ -#define LONG_DOUBLE -#endif - -#ifndef __pure2 -#define __pure2 -#endif - -/* - * ANSI/POSIX - */ -extern const union __infinity_un { - unsigned char __uc[8]; - double __ud; -} __infinity; - -extern const union __nan_un { - unsigned char __uc[sizeof(float)]; - float __uf; -} __nan; - -/* VBS -#if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800) -#define __MATH_BUILTIN_CONSTANTS -#endif - -#if __GNUC_PREREQ__(3, 0) && !defined(__INTEL_COMPILER) -#define __MATH_BUILTIN_RELOPS -#endif -*/ - -//VBS begin -#define __MATH_BUILTIN_CONSTANTS -#define __MATH_BUILTIN_RELOPS -#ifndef __ISO_C_VISIBLE -#define __ISO_C_VISIBLE 1999 -#endif -//VBS end - -#ifdef __MATH_BUILTIN_CONSTANTS -#define HUGE_VAL __builtin_huge_val() -#else -#define HUGE_VAL (__infinity.__ud) -#endif - -#if __ISO_C_VISIBLE >= 1999 -#define FP_ILOGB0 (-INT_MAX) -#define FP_ILOGBNAN INT_MAX - -#ifdef __MATH_BUILTIN_CONSTANTS -#define HUGE_VALF __builtin_huge_valf() -#define HUGE_VALL __builtin_huge_vall() -#define INFINITY __builtin_inff() -#define NAN __builtin_nanf("") -#else -#define HUGE_VALF (float)HUGE_VAL -#define HUGE_VALL (long double)HUGE_VAL -#define INFINITY HUGE_VALF -#define NAN (__nan.__uf) -#endif /* __MATH_BUILTIN_CONSTANTS */ - -#define MATH_ERRNO 1 -#define MATH_ERREXCEPT 2 -#define math_errhandling MATH_ERREXCEPT - -#define FP_FAST_FMAF 1 -#ifdef __ia64__ -#define FP_FAST_FMA 1 -#define FP_FAST_FMAL 1 -#endif - -/* Symbolic constants to classify floating point numbers. */ -#define FP_INFINITE 0x01 -#define FP_NAN 0x02 -#define FP_NORMAL 0x04 -#define FP_SUBNORMAL 0x08 -#define FP_ZERO 0x10 -#define fpclassify(x) \ - ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ - : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ - : __fpclassifyl(x)) - -#define isfinite(x) \ - ((sizeof (x) == sizeof (float)) ? __isfinitef(x) \ - : (sizeof (x) == sizeof (double)) ? __isfinite(x) \ - : __isfinitel(x)) -#define isinf(x) \ - ((sizeof (x) == sizeof (float)) ? __isinff(x) \ - : (sizeof (x) == sizeof (double)) ? isinf(x) \ - : __isinfl(x)) -#define isnan(x) \ - ((sizeof (x) == sizeof (float)) ? __isnanf(x) \ - : (sizeof (x) == sizeof (double)) ? isnan(x) \ - : __isnanl(x)) -#define isnormal(x) \ - ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \ - : (sizeof (x) == sizeof (double)) ? __isnormal(x) \ - : __isnormall(x)) - -#ifdef __MATH_BUILTIN_RELOPS -#define isgreater(x, y) __builtin_isgreater((x), (y)) -#define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) -#define isless(x, y) __builtin_isless((x), (y)) -#define islessequal(x, y) __builtin_islessequal((x), (y)) -#define islessgreater(x, y) __builtin_islessgreater((x), (y)) -#define isunordered(x, y) __builtin_isunordered((x), (y)) -#else -#define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) -#define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) -#define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) -#define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) -#define islessgreater(x, y) (!isunordered((x), (y)) && \ - ((x) > (y) || (y) > (x))) -#define isunordered(x, y) (isnan(x) || isnan(y)) -#endif /* __MATH_BUILTIN_RELOPS */ - -#define signbit(x) \ - ((sizeof (x) == sizeof (float)) ? __signbitf(x) \ - : (sizeof (x) == sizeof (double)) ? __signbit(x) \ - : __signbitl(x)) - -//VBS -//typedef __double_t double_t; -//typedef __float_t float_t; -#endif /* __ISO_C_VISIBLE >= 1999 */ - -/* - * XOPEN/SVID - */ -#if __BSD_VISIBLE || __XSI_VISIBLE -#define M_E 2.7182818284590452354 /* e */ -#define M_LOG2E 1.4426950408889634074 /* log 2e */ -#define M_LOG10E 0.43429448190325182765 /* log 10e */ -#define M_LN2 0.69314718055994530942 /* log e2 */ -#define M_LN10 2.30258509299404568402 /* log e10 */ -#define M_PI 3.14159265358979323846 /* pi */ -#define M_PI_2 1.57079632679489661923 /* pi/2 */ -#define M_PI_4 0.78539816339744830962 /* pi/4 */ -#define M_1_PI 0.31830988618379067154 /* 1/pi */ -#define M_2_PI 0.63661977236758134308 /* 2/pi */ -#define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ -#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ -#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ - -#define MAXFLOAT ((float)3.40282346638528860e+38) - -#ifndef OPENLIBM_ONLY_THREAD_SAFE -extern int signgam; -#endif -#endif /* __BSD_VISIBLE || __XSI_VISIBLE */ - -#if __BSD_VISIBLE -#if 0 -/* Old value from 4.4BSD-Lite openlibm.h; this is probably better. */ -#define HUGE HUGE_VAL -#else -#define HUGE MAXFLOAT -#endif -#endif /* __BSD_VISIBLE */ - -/* - * Most of these functions depend on the rounding mode and have the side - * effect of raising floating-point exceptions, so they are not declared - * as __pure2. In C99, FENV_ACCESS affects the purity of these functions. - */ - -#if defined(__cplusplus) -extern "C" { -#endif -/* - * ANSI/POSIX - */ -int __fpclassifyd(double) __pure2; -int __fpclassifyf(float) __pure2; -int __fpclassifyl(long double) __pure2; -int __isfinitef(float) __pure2; -int __isfinite(double) __pure2; -int __isfinitel(long double) __pure2; -int __isinff(float) __pure2; -int __isinfl(long double) __pure2; -int __isnanf(float) __pure2; -int __isnanl(long double) __pure2; -int __isnormalf(float) __pure2; -int __isnormal(double) __pure2; -int __isnormall(long double) __pure2; -int __signbit(double) __pure2; -int __signbitf(float) __pure2; -int __signbitl(long double) __pure2; - -double acos(double); -double asin(double); -double atan(double); -double atan2(double, double); -double cos(double); -double sin(double); -double tan(double); - -double cosh(double); -double sinh(double); -double tanh(double); - -double exp(double); -double frexp(double, int *); /* fundamentally !__pure2 */ -double ldexp(double, int); -double log(double); -double log10(double); -double modf(double, double *); /* fundamentally !__pure2 */ - -double pow(double, double); -double sqrt(double); - -double ceil(double); -double fabs(double) __pure2; -double floor(double); -double fmod(double, double); - -/* - * These functions are not in C90. - */ -#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE -double acosh(double); -double asinh(double); -double atanh(double); -double cbrt(double); -double erf(double); -double erfc(double); -double exp2(double); -double expm1(double); -double fma(double, double, double); -double hypot(double, double); -int ilogb(double) __pure2; -int (isinf)(double) __pure2; -int (isnan)(double) __pure2; -double lgamma(double); -long long llrint(double); -long long llround(double); -double log1p(double); -double log2(double); -double logb(double); -long lrint(double); -long lround(double); -double nan(const char *) __pure2; -double nextafter(double, double); -double remainder(double, double); -double remquo(double, double, int *); -double rint(double); -#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */ - -#if __BSD_VISIBLE || __XSI_VISIBLE -double j0(double); -double j1(double); -double jn(int, double); -double y0(double); -double y1(double); -double yn(int, double); - -#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE -double gamma(double); -#endif - -#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE -double scalb(double, double); -#endif -#endif /* __BSD_VISIBLE || __XSI_VISIBLE */ - -#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 -double copysign(double, double) __pure2; -double fdim(double, double); -double fmax(double, double) __pure2; -double fmin(double, double) __pure2; -double nearbyint(double); -double round(double); -double scalbln(double, long); -double scalbn(double, int); -double tgamma(double); -double trunc(double); -#endif - -/* - * BSD math library entry points - */ -#if __BSD_VISIBLE -double drem(double, double); -int finite(double) __pure2; -int isnanf(float) __pure2; - -/* - * Reentrant version of gamma & lgamma; passes signgam back by reference - * as the second argument; user must allocate space for signgam. - */ -double gamma_r(double, int *); -double lgamma_r(double, int *); - -/* - * Single sine/cosine function. - */ -void sincos(double, double *, double *); - -/* - * IEEE Test Vector - */ -double significand(double); -#endif /* __BSD_VISIBLE */ - -/* float versions of ANSI/POSIX functions */ -#if __ISO_C_VISIBLE >= 1999 -float acosf(float); -float asinf(float); -float atanf(float); -float atan2f(float, float); -float cosf(float); -float sinf(float); -float tanf(float); - -float coshf(float); -float sinhf(float); -float tanhf(float); - -float exp2f(float); -float expf(float); -float expm1f(float); -float frexpf(float, int *); /* fundamentally !__pure2 */ -int ilogbf(float) __pure2; -float ldexpf(float, int); -float log10f(float); -float log1pf(float); -float log2f(float); -float logf(float); -float modff(float, float *); /* fundamentally !__pure2 */ - -float powf(float, float); -float sqrtf(float); - -float ceilf(float); -float fabsf(float) __pure2; -float floorf(float); -float fmodf(float, float); -float roundf(float); - -float erff(float); -float erfcf(float); -float hypotf(float, float); -float lgammaf(float); -float tgammaf(float); - -float acoshf(float); -float asinhf(float); -float atanhf(float); -float cbrtf(float); -float logbf(float); -float copysignf(float, float) __pure2; -long long llrintf(float); -long long llroundf(float); -long lrintf(float); -long lroundf(float); -float nanf(const char *) __pure2; -float nearbyintf(float); -float nextafterf(float, float); -float remainderf(float, float); -float remquof(float, float, int *); -float rintf(float); -float scalblnf(float, long); -float scalbnf(float, int); -float truncf(float); - -float fdimf(float, float); -float fmaf(float, float, float); -float fmaxf(float, float) __pure2; -float fminf(float, float) __pure2; -#endif - -/* - * float versions of BSD math library entry points - */ -#if __BSD_VISIBLE -float dremf(float, float); -int finitef(float) __pure2; -float gammaf(float); -float j0f(float); -float j1f(float); -float jnf(int, float); -float scalbf(float, float); -float y0f(float); -float y1f(float); -float ynf(int, float); - -/* - * Float versions of reentrant version of gamma & lgamma; passes - * signgam back by reference as the second argument; user must - * allocate space for signgam. - */ -float gammaf_r(float, int *); -float lgammaf_r(float, int *); - -/* - * Single sine/cosine function. - */ -void sincosf(float, float *, float *); - -/* - * float version of IEEE Test Vector - */ -float significandf(float); -#endif /* __BSD_VISIBLE */ - -/* - * long double versions of ISO/POSIX math functions - */ -#if __ISO_C_VISIBLE >= 1999 -long double acoshl(long double); -long double acosl(long double); -long double asinhl(long double); -long double asinl(long double); -long double atan2l(long double, long double); -long double atanhl(long double); -long double atanl(long double); -long double cbrtl(long double); -long double ceill(long double); -long double copysignl(long double, long double) __pure2; -long double coshl(long double); -long double cosl(long double); -long double erfcl(long double); -long double erfl(long double); -long double exp2l(long double); -long double expl(long double); -long double expm1l(long double); -long double fabsl(long double) __pure2; -long double fdiml(long double, long double); -long double floorl(long double); -long double fmal(long double, long double, long double); -long double fmaxl(long double, long double) __pure2; -long double fminl(long double, long double) __pure2; -long double fmodl(long double, long double); -long double frexpl(long double value, int *); /* fundamentally !__pure2 */ -long double hypotl(long double, long double); -int ilogbl(long double) __pure2; -long double ldexpl(long double, int); -long double lgammal(long double); -long long llrintl(long double); -long long llroundl(long double); -long double log10l(long double); -long double log1pl(long double); -long double log2l(long double); -long double logbl(long double); -long double logl(long double); -long lrintl(long double); -long lroundl(long double); -long double modfl(long double, long double *); /* fundamentally !__pure2 */ -long double nanl(const char *) __pure2; -long double nearbyintl(long double); -long double nextafterl(long double, long double); -double nexttoward(double, long double); -float nexttowardf(float, long double); -long double nexttowardl(long double, long double); -long double powl(long double, long double); -long double remainderl(long double, long double); -long double remquol(long double, long double, int *); -long double rintl(long double); -long double roundl(long double); -long double scalblnl(long double, long); -long double scalbnl(long double, int); -long double sinhl(long double); -long double sinl(long double); -long double sqrtl(long double); -long double tanhl(long double); -long double tanl(long double); -long double tgammal(long double); -long double truncl(long double); -#endif /* __ISO_C_VISIBLE >= 1999 */ - -/* Reentrant version of lgammal. */ -#if __BSD_VISIBLE -long double lgammal_r(long double, int *); - -/* - * Single sine/cosine function. - */ -void sincosl(long double, long double *, long double *); -#endif /* __BSD_VISIBLE */ - -#if defined(__cplusplus) -} -#endif #endif /* !OPENLIBM_H */ - -#endif /* OPENLIBM_USE_HOST_MATH_H */ diff --git a/include/openlibm_math.h b/include/openlibm_math.h new file mode 100644 index 0000000..8605c8b --- /dev/null +++ b/include/openlibm_math.h @@ -0,0 +1,513 @@ +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +/* + * from: @(#)fdlibm.h 5.1 93/09/24 + * $FreeBSD: src/lib/msun/src/openlibm.h,v 1.82 2011/11/12 19:55:48 theraven Exp $ + */ + +#ifdef OPENLIBM_USE_HOST_MATH_H +#include +#else /* !OPENLIBM_USE_HOST_MATH_H */ + +#ifndef OPENLIBM_MATH_H +#define OPENLIBM_MATH_H + +#if (defined(_WIN32) || defined (_MSC_VER)) && !defined(__WIN32__) + #define __WIN32__ +#endif + +#ifndef __arm__ +#define LONG_DOUBLE +#endif + +#ifndef __pure2 +#define __pure2 +#endif + +/* + * ANSI/POSIX + */ +extern const union __infinity_un { + unsigned char __uc[8]; + double __ud; +} __infinity; + +extern const union __nan_un { + unsigned char __uc[sizeof(float)]; + float __uf; +} __nan; + +/* VBS +#if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800) +#define __MATH_BUILTIN_CONSTANTS +#endif + +#if __GNUC_PREREQ__(3, 0) && !defined(__INTEL_COMPILER) +#define __MATH_BUILTIN_RELOPS +#endif +*/ + +//VBS begin +#define __MATH_BUILTIN_CONSTANTS +#define __MATH_BUILTIN_RELOPS +#ifndef __ISO_C_VISIBLE +#define __ISO_C_VISIBLE 1999 +#endif +//VBS end + +#ifdef __MATH_BUILTIN_CONSTANTS +#define HUGE_VAL __builtin_huge_val() +#else +#define HUGE_VAL (__infinity.__ud) +#endif + +#if __ISO_C_VISIBLE >= 1999 +#define FP_ILOGB0 (-INT_MAX) +#define FP_ILOGBNAN INT_MAX + +#ifdef __MATH_BUILTIN_CONSTANTS +#define HUGE_VALF __builtin_huge_valf() +#define HUGE_VALL __builtin_huge_vall() +#define INFINITY __builtin_inff() +#define NAN __builtin_nanf("") +#else +#define HUGE_VALF (float)HUGE_VAL +#define HUGE_VALL (long double)HUGE_VAL +#define INFINITY HUGE_VALF +#define NAN (__nan.__uf) +#endif /* __MATH_BUILTIN_CONSTANTS */ + +#define MATH_ERRNO 1 +#define MATH_ERREXCEPT 2 +#define math_errhandling MATH_ERREXCEPT + +#define FP_FAST_FMAF 1 +#ifdef __ia64__ +#define FP_FAST_FMA 1 +#define FP_FAST_FMAL 1 +#endif + +/* Symbolic constants to classify floating point numbers. */ +#define FP_INFINITE 0x01 +#define FP_NAN 0x02 +#define FP_NORMAL 0x04 +#define FP_SUBNORMAL 0x08 +#define FP_ZERO 0x10 +#define fpclassify(x) \ + ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ + : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ + : __fpclassifyl(x)) + +#define isfinite(x) \ + ((sizeof (x) == sizeof (float)) ? __isfinitef(x) \ + : (sizeof (x) == sizeof (double)) ? __isfinite(x) \ + : __isfinitel(x)) +#define isinf(x) \ + ((sizeof (x) == sizeof (float)) ? __isinff(x) \ + : (sizeof (x) == sizeof (double)) ? isinf(x) \ + : __isinfl(x)) +#define isnan(x) \ + ((sizeof (x) == sizeof (float)) ? __isnanf(x) \ + : (sizeof (x) == sizeof (double)) ? isnan(x) \ + : __isnanl(x)) +#define isnormal(x) \ + ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \ + : (sizeof (x) == sizeof (double)) ? __isnormal(x) \ + : __isnormall(x)) + +#ifdef __MATH_BUILTIN_RELOPS +#define isgreater(x, y) __builtin_isgreater((x), (y)) +#define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) +#define isless(x, y) __builtin_isless((x), (y)) +#define islessequal(x, y) __builtin_islessequal((x), (y)) +#define islessgreater(x, y) __builtin_islessgreater((x), (y)) +#define isunordered(x, y) __builtin_isunordered((x), (y)) +#else +#define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) +#define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) +#define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) +#define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) +#define islessgreater(x, y) (!isunordered((x), (y)) && \ + ((x) > (y) || (y) > (x))) +#define isunordered(x, y) (isnan(x) || isnan(y)) +#endif /* __MATH_BUILTIN_RELOPS */ + +#define signbit(x) \ + ((sizeof (x) == sizeof (float)) ? __signbitf(x) \ + : (sizeof (x) == sizeof (double)) ? __signbit(x) \ + : __signbitl(x)) + +//VBS +//typedef __double_t double_t; +//typedef __float_t float_t; +#endif /* __ISO_C_VISIBLE >= 1999 */ + +/* + * XOPEN/SVID + */ +#if __BSD_VISIBLE || __XSI_VISIBLE +#define M_E 2.7182818284590452354 /* e */ +#define M_LOG2E 1.4426950408889634074 /* log 2e */ +#define M_LOG10E 0.43429448190325182765 /* log 10e */ +#define M_LN2 0.69314718055994530942 /* log e2 */ +#define M_LN10 2.30258509299404568402 /* log e10 */ +#define M_PI 3.14159265358979323846 /* pi */ +#define M_PI_2 1.57079632679489661923 /* pi/2 */ +#define M_PI_4 0.78539816339744830962 /* pi/4 */ +#define M_1_PI 0.31830988618379067154 /* 1/pi */ +#define M_2_PI 0.63661977236758134308 /* 2/pi */ +#define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ +#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ +#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ + +#define MAXFLOAT ((float)3.40282346638528860e+38) + +#ifndef OPENLIBM_ONLY_THREAD_SAFE +extern int signgam; +#endif +#endif /* __BSD_VISIBLE || __XSI_VISIBLE */ + +#if __BSD_VISIBLE +#if 0 +/* Old value from 4.4BSD-Lite openlibm.h; this is probably better. */ +#define HUGE HUGE_VAL +#else +#define HUGE MAXFLOAT +#endif +#endif /* __BSD_VISIBLE */ + +/* + * Most of these functions depend on the rounding mode and have the side + * effect of raising floating-point exceptions, so they are not declared + * as __pure2. In C99, FENV_ACCESS affects the purity of these functions. + */ + +#if defined(__cplusplus) +extern "C" { +#endif +/* + * ANSI/POSIX + */ +int __fpclassifyd(double) __pure2; +int __fpclassifyf(float) __pure2; +int __fpclassifyl(long double) __pure2; +int __isfinitef(float) __pure2; +int __isfinite(double) __pure2; +int __isfinitel(long double) __pure2; +int __isinff(float) __pure2; +int __isinfl(long double) __pure2; +int __isnanf(float) __pure2; +int __isnanl(long double) __pure2; +int __isnormalf(float) __pure2; +int __isnormal(double) __pure2; +int __isnormall(long double) __pure2; +int __signbit(double) __pure2; +int __signbitf(float) __pure2; +int __signbitl(long double) __pure2; + +double acos(double); +double asin(double); +double atan(double); +double atan2(double, double); +double cos(double); +double sin(double); +double tan(double); + +double cosh(double); +double sinh(double); +double tanh(double); + +double exp(double); +double frexp(double, int *); /* fundamentally !__pure2 */ +double ldexp(double, int); +double log(double); +double log10(double); +double modf(double, double *); /* fundamentally !__pure2 */ + +double pow(double, double); +double sqrt(double); + +double ceil(double); +double fabs(double) __pure2; +double floor(double); +double fmod(double, double); + +/* + * These functions are not in C90. + */ +#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE +double acosh(double); +double asinh(double); +double atanh(double); +double cbrt(double); +double erf(double); +double erfc(double); +double exp2(double); +double expm1(double); +double fma(double, double, double); +double hypot(double, double); +int ilogb(double) __pure2; +int (isinf)(double) __pure2; +int (isnan)(double) __pure2; +double lgamma(double); +long long llrint(double); +long long llround(double); +double log1p(double); +double log2(double); +double logb(double); +long lrint(double); +long lround(double); +double nan(const char *) __pure2; +double nextafter(double, double); +double remainder(double, double); +double remquo(double, double, int *); +double rint(double); +#endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */ + +#if __BSD_VISIBLE || __XSI_VISIBLE +double j0(double); +double j1(double); +double jn(int, double); +double y0(double); +double y1(double); +double yn(int, double); + +#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE +double gamma(double); +#endif + +#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE +double scalb(double, double); +#endif +#endif /* __BSD_VISIBLE || __XSI_VISIBLE */ + +#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 +double copysign(double, double) __pure2; +double fdim(double, double); +double fmax(double, double) __pure2; +double fmin(double, double) __pure2; +double nearbyint(double); +double round(double); +double scalbln(double, long); +double scalbn(double, int); +double tgamma(double); +double trunc(double); +#endif + +/* + * BSD math library entry points + */ +#if __BSD_VISIBLE +double drem(double, double); +int finite(double) __pure2; +int isnanf(float) __pure2; + +/* + * Reentrant version of gamma & lgamma; passes signgam back by reference + * as the second argument; user must allocate space for signgam. + */ +double gamma_r(double, int *); +double lgamma_r(double, int *); + +/* + * Single sine/cosine function. + */ +void sincos(double, double *, double *); + +/* + * IEEE Test Vector + */ +double significand(double); +#endif /* __BSD_VISIBLE */ + +/* float versions of ANSI/POSIX functions */ +#if __ISO_C_VISIBLE >= 1999 +float acosf(float); +float asinf(float); +float atanf(float); +float atan2f(float, float); +float cosf(float); +float sinf(float); +float tanf(float); + +float coshf(float); +float sinhf(float); +float tanhf(float); + +float exp2f(float); +float expf(float); +float expm1f(float); +float frexpf(float, int *); /* fundamentally !__pure2 */ +int ilogbf(float) __pure2; +float ldexpf(float, int); +float log10f(float); +float log1pf(float); +float log2f(float); +float logf(float); +float modff(float, float *); /* fundamentally !__pure2 */ + +float powf(float, float); +float sqrtf(float); + +float ceilf(float); +float fabsf(float) __pure2; +float floorf(float); +float fmodf(float, float); +float roundf(float); + +float erff(float); +float erfcf(float); +float hypotf(float, float); +float lgammaf(float); +float tgammaf(float); + +float acoshf(float); +float asinhf(float); +float atanhf(float); +float cbrtf(float); +float logbf(float); +float copysignf(float, float) __pure2; +long long llrintf(float); +long long llroundf(float); +long lrintf(float); +long lroundf(float); +float nanf(const char *) __pure2; +float nearbyintf(float); +float nextafterf(float, float); +float remainderf(float, float); +float remquof(float, float, int *); +float rintf(float); +float scalblnf(float, long); +float scalbnf(float, int); +float truncf(float); + +float fdimf(float, float); +float fmaf(float, float, float); +float fmaxf(float, float) __pure2; +float fminf(float, float) __pure2; +#endif + +/* + * float versions of BSD math library entry points + */ +#if __BSD_VISIBLE +float dremf(float, float); +int finitef(float) __pure2; +float gammaf(float); +float j0f(float); +float j1f(float); +float jnf(int, float); +float scalbf(float, float); +float y0f(float); +float y1f(float); +float ynf(int, float); + +/* + * Float versions of reentrant version of gamma & lgamma; passes + * signgam back by reference as the second argument; user must + * allocate space for signgam. + */ +float gammaf_r(float, int *); +float lgammaf_r(float, int *); + +/* + * Single sine/cosine function. + */ +void sincosf(float, float *, float *); + +/* + * float version of IEEE Test Vector + */ +float significandf(float); +#endif /* __BSD_VISIBLE */ + +/* + * long double versions of ISO/POSIX math functions + */ +#if __ISO_C_VISIBLE >= 1999 +long double acoshl(long double); +long double acosl(long double); +long double asinhl(long double); +long double asinl(long double); +long double atan2l(long double, long double); +long double atanhl(long double); +long double atanl(long double); +long double cbrtl(long double); +long double ceill(long double); +long double copysignl(long double, long double) __pure2; +long double coshl(long double); +long double cosl(long double); +long double erfcl(long double); +long double erfl(long double); +long double exp2l(long double); +long double expl(long double); +long double expm1l(long double); +long double fabsl(long double) __pure2; +long double fdiml(long double, long double); +long double floorl(long double); +long double fmal(long double, long double, long double); +long double fmaxl(long double, long double) __pure2; +long double fminl(long double, long double) __pure2; +long double fmodl(long double, long double); +long double frexpl(long double value, int *); /* fundamentally !__pure2 */ +long double hypotl(long double, long double); +int ilogbl(long double) __pure2; +long double ldexpl(long double, int); +long double lgammal(long double); +long long llrintl(long double); +long long llroundl(long double); +long double log10l(long double); +long double log1pl(long double); +long double log2l(long double); +long double logbl(long double); +long double logl(long double); +long lrintl(long double); +long lroundl(long double); +long double modfl(long double, long double *); /* fundamentally !__pure2 */ +long double nanl(const char *) __pure2; +long double nearbyintl(long double); +long double nextafterl(long double, long double); +double nexttoward(double, long double); +float nexttowardf(float, long double); +long double nexttowardl(long double, long double); +long double powl(long double, long double); +long double remainderl(long double, long double); +long double remquol(long double, long double, int *); +long double rintl(long double); +long double roundl(long double); +long double scalblnl(long double, long); +long double scalbnl(long double, int); +long double sinhl(long double); +long double sinl(long double); +long double sqrtl(long double); +long double tanhl(long double); +long double tanl(long double); +long double tgammal(long double); +long double truncl(long double); +#endif /* __ISO_C_VISIBLE >= 1999 */ + +/* Reentrant version of lgammal. */ +#if __BSD_VISIBLE +long double lgammal_r(long double, int *); + +/* + * Single sine/cosine function. + */ +void sincosl(long double, long double *, long double *); +#endif /* __BSD_VISIBLE */ + +#if defined(__cplusplus) +} +#endif +#endif /* !OPENLIBM_MATH_H */ + +#endif /* OPENLIBM_USE_HOST_MATH_H */ diff --git a/ld128/e_acoshl.c b/ld128/e_acoshl.c index dcd89fe..e7cfd03 100644 --- a/ld128/e_acoshl.c +++ b/ld128/e_acoshl.c @@ -24,7 +24,7 @@ * acoshl(NaN) is NaN without signal. */ -#include +#include #include "math_private.h" diff --git a/ld128/e_atanhl.c b/ld128/e_atanhl.c index 7cfa23b..70d9805 100644 --- a/ld128/e_atanhl.c +++ b/ld128/e_atanhl.c @@ -28,7 +28,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_coshl.c b/ld128/e_coshl.c index 0ebf079..955c378 100644 --- a/ld128/e_coshl.c +++ b/ld128/e_coshl.c @@ -46,7 +46,7 @@ * only coshl(0)=1 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/ld128/e_expl.c b/ld128/e_expl.c index 4cfb137..24c7b50 100644 --- a/ld128/e_expl.c +++ b/ld128/e_expl.c @@ -73,7 +73,7 @@ /* Exponential function */ #include -#include +#include #include "math_private.h" diff --git a/ld128/e_fmodl.c b/ld128/e_fmodl.c index 22a8920..698fa3a 100644 --- a/ld128/e_fmodl.c +++ b/ld128/e_fmodl.c @@ -16,7 +16,7 @@ * Method: shift and subtract */ -#include +#include #include "math_private.h" diff --git a/ld128/e_hypotl.c b/ld128/e_hypotl.c index b86a2d0..1cdf3d8 100644 --- a/ld128/e_hypotl.c +++ b/ld128/e_hypotl.c @@ -42,7 +42,7 @@ * than 1 ulps (units in the last place) */ -#include +#include #include "math_private.h" diff --git a/ld128/e_lgammal_r.c b/ld128/e_lgammal_r.c index 8408da2..145adb2 100644 --- a/ld128/e_lgammal_r.c +++ b/ld128/e_lgammal_r.c @@ -69,7 +69,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_log10l.c b/ld128/e_log10l.c index 6b05909..9448101 100644 --- a/ld128/e_log10l.c +++ b/ld128/e_log10l.c @@ -59,7 +59,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_log2l.c b/ld128/e_log2l.c index 53ced8c..2ce4d94 100644 --- a/ld128/e_log2l.c +++ b/ld128/e_log2l.c @@ -58,7 +58,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_logl.c b/ld128/e_logl.c index 7032fb9..f6da91f 100644 --- a/ld128/e_logl.c +++ b/ld128/e_logl.c @@ -60,7 +60,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_powl.c b/ld128/e_powl.c index af09a6d..430b261 100644 --- a/ld128/e_powl.c +++ b/ld128/e_powl.c @@ -59,7 +59,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld128/e_rem_pio2l.h b/ld128/e_rem_pio2l.h index ad84329..87f91c4 100644 --- a/ld128/e_rem_pio2l.h +++ b/ld128/e_rem_pio2l.h @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" #include "fpmath.h" diff --git a/ld128/e_sinhl.c b/ld128/e_sinhl.c index 56e441a..3bfdb5d 100644 --- a/ld128/e_sinhl.c +++ b/ld128/e_sinhl.c @@ -44,7 +44,7 @@ * only sinhl(0)=0 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/ld128/e_tgammal.c b/ld128/e_tgammal.c index dfa70d1..6c78c24 100644 --- a/ld128/e_tgammal.c +++ b/ld128/e_tgammal.c @@ -16,7 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include +#include #include "math_private.h" diff --git a/ld128/k_tanl.c b/ld128/k_tanl.c index 2675f05..2d08e5e 100644 --- a/ld128/k_tanl.c +++ b/ld128/k_tanl.c @@ -18,7 +18,7 @@ * ld128 version of k_tan.c. See ../src/k_tan.c for most comments. */ -#include +#include #include "math_private.h" diff --git a/ld128/s_asinhl.c b/ld128/s_asinhl.c index ac6f481..29791e8 100644 --- a/ld128/s_asinhl.c +++ b/ld128/s_asinhl.c @@ -21,7 +21,7 @@ * := signl(x)*log1pl(|x| + x^2/(1 + sqrtl(1+x^2))) */ -#include +#include #include "math_private.h" diff --git a/ld128/s_ceill.c b/ld128/s_ceill.c index 1edd12d..719e7fc 100644 --- a/ld128/s_ceill.c +++ b/ld128/s_ceill.c @@ -19,7 +19,7 @@ * Inexact flag raised if x not equal to ceil(x). */ -#include +#include #include "math_private.h" diff --git a/ld128/s_erfl.c b/ld128/s_erfl.c index dd35b4b..e676234 100644 --- a/ld128/s_erfl.c +++ b/ld128/s_erfl.c @@ -91,7 +91,7 @@ * erfc/erf(NaN) is NaN */ -#include +#include #include "math_private.h" diff --git a/ld128/s_exp2l.c b/ld128/s_exp2l.c index 930b4fc..d0daabd 100644 --- a/ld128/s_exp2l.c +++ b/ld128/s_exp2l.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/ld128/s_exp2l.c,v 1.3 2008/02/13 10:44:44 bde Exp $"); #include -#include +#include #include #include "fpmath.h" diff --git a/ld128/s_expm1l.c b/ld128/s_expm1l.c index 76e8090..1c22696 100644 --- a/ld128/s_expm1l.c +++ b/ld128/s_expm1l.c @@ -54,7 +54,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/ld128/s_floorl.c b/ld128/s_floorl.c index 6360c0b..f00dcfa 100644 --- a/ld128/s_floorl.c +++ b/ld128/s_floorl.c @@ -19,7 +19,7 @@ * Inexact flag raised if x not equal to floor(x). */ -#include +#include #include "math_private.h" diff --git a/ld128/s_log1pl.c b/ld128/s_log1pl.c index 5bc86a6..d75c7ac 100644 --- a/ld128/s_log1pl.c +++ b/ld128/s_log1pl.c @@ -54,7 +54,7 @@ * IEEE -1, 8 100000 1.9e-34 4.3e-35 */ -#include +#include #include "math_private.h" diff --git a/ld128/s_modfl.c b/ld128/s_modfl.c index 5fdf2c0..bd18cba 100644 --- a/ld128/s_modfl.c +++ b/ld128/s_modfl.c @@ -20,7 +20,7 @@ * No exception. */ -#include +#include #include "math_private.h" diff --git a/ld128/s_nanl.c b/ld128/s_nanl.c index a18beaa..66e6fa5 100644 --- a/ld128/s_nanl.c +++ b/ld128/s_nanl.c @@ -26,7 +26,7 @@ * $FreeBSD: src/lib/msun/ld128/s_nanl.c,v 1.3 2008/03/02 20:16:55 das Exp $ */ -#include +#include #include "fpmath.h" #include "math_private.h" diff --git a/ld128/s_nextafterl.c b/ld128/s_nextafterl.c index a45bede..af667a0 100644 --- a/ld128/s_nextafterl.c +++ b/ld128/s_nextafterl.c @@ -17,7 +17,7 @@ * Special cases: */ -#include +#include #include "math_private.h" diff --git a/ld128/s_nexttoward.c b/ld128/s_nexttoward.c index 0ae65af..a9ff797 100644 --- a/ld128/s_nexttoward.c +++ b/ld128/s_nexttoward.c @@ -18,7 +18,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/ld128/s_nexttowardf.c b/ld128/s_nexttowardf.c index 6f8ccdf..61387ac 100644 --- a/ld128/s_nexttowardf.c +++ b/ld128/s_nexttowardf.c @@ -10,7 +10,7 @@ * ==================================================== */ -#include +#include #include "math_private.h" diff --git a/ld128/s_remquol.c b/ld128/s_remquol.c index 67c89a4..f56ce4f 100644 --- a/ld128/s_remquol.c +++ b/ld128/s_remquol.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include "math_private.h" diff --git a/ld128/s_tanhl.c b/ld128/s_tanhl.c index b852164..f8e6291 100644 --- a/ld128/s_tanhl.c +++ b/ld128/s_tanhl.c @@ -50,7 +50,7 @@ * only tanhl(0)=0 is exact for finite argument. */ -#include +#include #include "math_private.h" diff --git a/ld128/s_truncl.c b/ld128/s_truncl.c index 6bb3fb5..a0d8bd5 100644 --- a/ld128/s_truncl.c +++ b/ld128/s_truncl.c @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include "math_private.h" diff --git a/ld80/e_acoshl.c b/ld80/e_acoshl.c index 78fe296..35758bb 100644 --- a/ld80/e_acoshl.c +++ b/ld80/e_acoshl.c @@ -24,7 +24,7 @@ * acoshl(NaN) is NaN without signal. */ -#include +#include #include "math_private.h" diff --git a/ld80/e_atanhl.c b/ld80/e_atanhl.c index 86e6df3..6d13a5c 100644 --- a/ld80/e_atanhl.c +++ b/ld80/e_atanhl.c @@ -28,7 +28,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld80/e_coshl.c b/ld80/e_coshl.c index 670c5c4..a0fb9b5 100644 --- a/ld80/e_coshl.c +++ b/ld80/e_coshl.c @@ -31,7 +31,7 @@ * only coshl(0)=1 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/ld80/e_expl.c b/ld80/e_expl.c index 8e4fea5..db0d1ca 100644 --- a/ld80/e_expl.c +++ b/ld80/e_expl.c @@ -72,7 +72,7 @@ /* Exponential function */ -#include +#include #include "math_private.h" diff --git a/ld80/e_fmodl.c b/ld80/e_fmodl.c index ed5569e..ec792e3 100644 --- a/ld80/e_fmodl.c +++ b/ld80/e_fmodl.c @@ -14,7 +14,7 @@ //#include #include -#include +#include #include #include "math_private.h" diff --git a/ld80/e_hypotl.c b/ld80/e_hypotl.c index f69c35c..e6faa22 100644 --- a/ld80/e_hypotl.c +++ b/ld80/e_hypotl.c @@ -42,7 +42,7 @@ * than 1 ulps (units in the last place) */ -#include +#include #include "math_private.h" diff --git a/ld80/e_lgammal_r.c b/ld80/e_lgammal_r.c index ae5f5c5..0af5420 100644 --- a/ld80/e_lgammal_r.c +++ b/ld80/e_lgammal_r.c @@ -86,7 +86,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/ld80/e_log10l.c b/ld80/e_log10l.c index 4b0d84f..bb6cd7d 100644 --- a/ld80/e_log10l.c +++ b/ld80/e_log10l.c @@ -63,7 +63,7 @@ * log domain: x < 0; returns MINLOG */ -#include +#include #include "math_private.h" diff --git a/ld80/e_log2l.c b/ld80/e_log2l.c index ea337c0..6ff6fe9 100644 --- a/ld80/e_log2l.c +++ b/ld80/e_log2l.c @@ -63,7 +63,7 @@ * log domain: x < 0; returns NAN */ -#include +#include #include "math_private.h" diff --git a/ld80/e_logl.c b/ld80/e_logl.c index 29e8490..4722014 100644 --- a/ld80/e_logl.c +++ b/ld80/e_logl.c @@ -63,7 +63,7 @@ * log domain: x < 0; returns NAN */ -#include +#include #include "math_private.h" diff --git a/ld80/e_powl.c b/ld80/e_powl.c index 128ebab..dcb2b45 100644 --- a/ld80/e_powl.c +++ b/ld80/e_powl.c @@ -73,7 +73,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/ld80/e_rem_pio2l.h b/ld80/e_rem_pio2l.h index eebe723..c44ad48 100644 --- a/ld80/e_rem_pio2l.h +++ b/ld80/e_rem_pio2l.h @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/ld80/e_sinhl.c b/ld80/e_sinhl.c index fa1b102..cb45204 100644 --- a/ld80/e_sinhl.c +++ b/ld80/e_sinhl.c @@ -28,7 +28,7 @@ * only sinhl(0)=0 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/ld80/e_tgammal.c b/ld80/e_tgammal.c index 8dfcd65..036061c 100644 --- a/ld80/e_tgammal.c +++ b/ld80/e_tgammal.c @@ -55,7 +55,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/ld80/invtrig.h b/ld80/invtrig.h index 489fc81..3d543e9 100644 --- a/ld80/invtrig.h +++ b/ld80/invtrig.h @@ -28,7 +28,7 @@ #include -#include +#include #define BIAS (LDBL_MAX_EXP - 1) #define MANH_SIZE LDBL_MANH_SIZE diff --git a/ld80/k_tanl.c b/ld80/k_tanl.c index c85001e..8d5fd42 100644 --- a/ld80/k_tanl.c +++ b/ld80/k_tanl.c @@ -18,7 +18,7 @@ * ld80 version of k_tan.c. See ../src/k_tan.c for most comments. */ -#include +#include #include "math_private.h" diff --git a/ld80/s_asinhl.c b/ld80/s_asinhl.c index 35c1221..0453a9c 100644 --- a/ld80/s_asinhl.c +++ b/ld80/s_asinhl.c @@ -21,7 +21,7 @@ * := signl(x)*log1pl(|x| + x^2/(1 + sqrtl(1+x^2))) */ -#include +#include #include "math_private.h" diff --git a/ld80/s_ceill.c b/ld80/s_ceill.c index 663f295..9a3e805 100644 --- a/ld80/s_ceill.c +++ b/ld80/s_ceill.c @@ -19,7 +19,7 @@ * Inexact flag raised if x not equal to ceil(x). */ -#include +#include #include "math_private.h" diff --git a/ld80/s_erfl.c b/ld80/s_erfl.c index 0c8eca5..d352716 100644 --- a/ld80/s_erfl.c +++ b/ld80/s_erfl.c @@ -99,7 +99,7 @@ */ -#include +#include #include "math_private.h" diff --git a/ld80/s_exp2l.c b/ld80/s_exp2l.c index 5e13a4e..46ad311 100644 --- a/ld80/s_exp2l.c +++ b/ld80/s_exp2l.c @@ -32,7 +32,7 @@ #include "amd64/bsd_ieeefp.h" -#include +#include #include "math_private.h" diff --git a/ld80/s_expm1l.c b/ld80/s_expm1l.c index bd965da..6ad23fa 100644 --- a/ld80/s_expm1l.c +++ b/ld80/s_expm1l.c @@ -57,7 +57,7 @@ * */ -#include +#include static const long double MAXLOGL = 1.1356523406294143949492E4L; diff --git a/ld80/s_floorl.c b/ld80/s_floorl.c index 77ffb7a..7d42bd6 100644 --- a/ld80/s_floorl.c +++ b/ld80/s_floorl.c @@ -19,7 +19,7 @@ * Inexact flag raised if x not equal to floor(x). */ -#include +#include #include "math_private.h" diff --git a/ld80/s_log1pl.c b/ld80/s_log1pl.c index decb0c2..d340b37 100644 --- a/ld80/s_log1pl.c +++ b/ld80/s_log1pl.c @@ -59,7 +59,7 @@ * log domain: x-1 < 0; returns NAN */ -#include +#include #include "math_private.h" diff --git a/ld80/s_modfl.c b/ld80/s_modfl.c index e06f868..f9884af 100644 --- a/ld80/s_modfl.c +++ b/ld80/s_modfl.c @@ -20,7 +20,7 @@ * No exception. */ -#include +#include #include "math_private.h" diff --git a/ld80/s_nanl.c b/ld80/s_nanl.c index df6a559..d649968 100644 --- a/ld80/s_nanl.c +++ b/ld80/s_nanl.c @@ -26,7 +26,7 @@ * $FreeBSD: src/lib/msun/ld80/s_nanl.c,v 1.2 2007/12/18 23:46:31 das Exp $ */ -#include +#include #include "math_private.h" diff --git a/ld80/s_nextafterl.c b/ld80/s_nextafterl.c index 2e431c9..1e0764b 100644 --- a/ld80/s_nextafterl.c +++ b/ld80/s_nextafterl.c @@ -17,7 +17,7 @@ * Special cases: */ -#include +#include #include "math_private.h" diff --git a/ld80/s_nexttoward.c b/ld80/s_nexttoward.c index d5327ee..b017668 100644 --- a/ld80/s_nexttoward.c +++ b/ld80/s_nexttoward.c @@ -17,8 +17,8 @@ * Special cases: */ -#include #include +#include #include "math_private.h" diff --git a/ld80/s_nexttowardf.c b/ld80/s_nexttowardf.c index 1941bf2..f2ac10d 100644 --- a/ld80/s_nexttowardf.c +++ b/ld80/s_nexttowardf.c @@ -10,8 +10,8 @@ * ==================================================== */ -#include #include +#include #include "math_private.h" diff --git a/ld80/s_remquol.c b/ld80/s_remquol.c index 330f5c6..f649dca 100644 --- a/ld80/s_remquol.c +++ b/ld80/s_remquol.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include "math_private.h" diff --git a/ld80/s_tanhl.c b/ld80/s_tanhl.c index bca28bb..1a46583 100644 --- a/ld80/s_tanhl.c +++ b/ld80/s_tanhl.c @@ -34,7 +34,7 @@ * only tanhl(0)=0 is exact for finite argument. */ -#include +#include #include "math_private.h" diff --git a/ld80/s_truncl.c b/ld80/s_truncl.c index 922d1da..8a261d8 100644 --- a/ld80/s_truncl.c +++ b/ld80/s_truncl.c @@ -24,7 +24,7 @@ //#include #include -#include +#include #include #include "math_private.h" diff --git a/src/e_acos.c b/src/e_acos.c index bf07b54..3b18a37 100644 --- a/src/e_acos.c +++ b/src/e_acos.c @@ -39,7 +39,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_acosf.c b/src/e_acosf.c index 21763fc..47e301b 100644 --- a/src/e_acosf.c +++ b/src/e_acosf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_acosf.c,v 1.11 2008/08/03 17:39:54 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_acosh.c b/src/e_acosh.c index d54c21a..9c0239a 100644 --- a/src/e_acosh.c +++ b/src/e_acosh.c @@ -29,7 +29,7 @@ * acosh(NaN) is NaN without signal. */ -#include +#include #include "math_private.h" diff --git a/src/e_acoshf.c b/src/e_acoshf.c index 5e4a163..fc4c788 100644 --- a/src/e_acoshf.c +++ b/src/e_acoshf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_acoshf.c,v 1.8 2008/02/22 02:30:34 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_acosl.c b/src/e_acosl.c index 9b3df20..348baf2 100644 --- a/src/e_acosl.c +++ b/src/e_acosl.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include "invtrig.h" #include "math_private.h" diff --git a/src/e_asin.c b/src/e_asin.c index 67d1d0f..c15c0f5 100644 --- a/src/e_asin.c +++ b/src/e_asin.c @@ -45,7 +45,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_asinf.c b/src/e_asinf.c index 78b1012..e89e239 100644 --- a/src/e_asinf.c +++ b/src/e_asinf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_asinf.c,v 1.13 2008/08/08 00:21:27 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_asinl.c b/src/e_asinl.c index c1877f0..ab253b7 100644 --- a/src/e_asinl.c +++ b/src/e_asinl.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include "invtrig.h" #include "math_private.h" diff --git a/src/e_atan2.c b/src/e_atan2.c index bf5b15c..490646e 100644 --- a/src/e_atan2.c +++ b/src/e_atan2.c @@ -43,7 +43,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_atan2f.c b/src/e_atan2f.c index f067a18..b75d929 100644 --- a/src/e_atan2f.c +++ b/src/e_atan2f.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_atan2f.c,v 1.12 2008/08/03 17:39:54 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_atan2l.c b/src/e_atan2l.c index 776bbf5..a017fdd 100644 --- a/src/e_atan2l.c +++ b/src/e_atan2l.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include "invtrig.h" #include "math_private.h" diff --git a/src/e_atanh.c b/src/e_atanh.c index 0cf09da..b3f6241 100644 --- a/src/e_atanh.c +++ b/src/e_atanh.c @@ -33,7 +33,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/src/e_atanhf.c b/src/e_atanhf.c index bb2a2f6..3477298 100644 --- a/src/e_atanhf.c +++ b/src/e_atanhf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_atanhf.c,v 1.7 2008/02/22 02:30:34 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_cosh.c b/src/e_cosh.c index bb04ec9..1f0683a 100644 --- a/src/e_cosh.c +++ b/src/e_cosh.c @@ -35,7 +35,7 @@ * only cosh(0)=1 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/src/e_coshf.c b/src/e_coshf.c index ad2de96..99ae790 100644 --- a/src/e_coshf.c +++ b/src/e_coshf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_coshf.c,v 1.9 2011/10/21 06:28:47 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_exp.c b/src/e_exp.c index 6b2e728..f8ee596 100644 --- a/src/e_exp.c +++ b/src/e_exp.c @@ -77,7 +77,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_expf.c b/src/e_expf.c index 88e0408..35ea801 100644 --- a/src/e_expf.c +++ b/src/e_expf.c @@ -17,7 +17,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/e_expf.c,v 1.16 2011/10/21 06:26:38 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/e_fmod.c b/src/e_fmod.c index b91793e..4226183 100644 --- a/src/e_fmod.c +++ b/src/e_fmod.c @@ -20,7 +20,7 @@ * Method: shift and subtract */ -#include +#include #include "math_private.h" diff --git a/src/e_fmodf.c b/src/e_fmodf.c index 3ea43ba..a929401 100644 --- a/src/e_fmodf.c +++ b/src/e_fmodf.c @@ -22,7 +22,7 @@ * Method: shift and subtract */ -#include +#include #include "math_private.h" diff --git a/src/e_fmodl.c b/src/e_fmodl.c index 7aacc2a..a222002 100644 --- a/src/e_fmodl.c +++ b/src/e_fmodl.c @@ -14,7 +14,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/e_fmodl.c,v 1.2 2008/07/31 20:09:47 das Exp $"); #include -#include +#include #include #include "fpmath.h" diff --git a/src/e_gamma.c b/src/e_gamma.c index 3c3e97c..ea6e7e0 100644 --- a/src/e_gamma.c +++ b/src/e_gamma.c @@ -21,7 +21,7 @@ * Method: call __ieee754_gamma_r */ -#include +#include #include "math_private.h" diff --git a/src/e_gamma_r.c b/src/e_gamma_r.c index 9d452f9..36a92a1 100644 --- a/src/e_gamma_r.c +++ b/src/e_gamma_r.c @@ -22,7 +22,7 @@ * Method: See __ieee754_lgamma_r */ -#include +#include #include "math_private.h" diff --git a/src/e_gammaf.c b/src/e_gammaf.c index 1cb2c74..a4c88ad 100644 --- a/src/e_gammaf.c +++ b/src/e_gammaf.c @@ -22,7 +22,7 @@ * Method: call __ieee754_gammaf_r */ -#include +#include #include "math_private.h" diff --git a/src/e_gammaf_r.c b/src/e_gammaf_r.c index 264d833..7041118 100644 --- a/src/e_gammaf_r.c +++ b/src/e_gammaf_r.c @@ -23,7 +23,7 @@ * Method: See __ieee754_lgammaf_r */ -#include +#include #include "math_private.h" diff --git a/src/e_hypot.c b/src/e_hypot.c index 058a9fd..b4f1031 100644 --- a/src/e_hypot.c +++ b/src/e_hypot.c @@ -47,7 +47,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_hypotf.c b/src/e_hypotf.c index 046e55e..6e4e230 100644 --- a/src/e_hypotf.c +++ b/src/e_hypotf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_hypotf.c,v 1.14 2011/10/15 07:00:28 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_hypotl.c b/src/e_hypotl.c index 7211ce7..7d5af86 100644 --- a/src/e_hypotl.c +++ b/src/e_hypotl.c @@ -16,7 +16,7 @@ /* long double version of hypot(). See e_hypot.c for most comments. */ #include -#include +#include #include "fpmath.h" #include "math_private.h" diff --git a/src/e_j0.c b/src/e_j0.c index af22cb5..71b7122 100644 --- a/src/e_j0.c +++ b/src/e_j0.c @@ -61,7 +61,7 @@ * 3. Special cases: y0(0)=-inf, y0(x<0)=NaN, y0(inf)=0. */ -#include +#include #include "math_private.h" diff --git a/src/e_j0f.c b/src/e_j0f.c index e3cbc8f..74d753b 100644 --- a/src/e_j0f.c +++ b/src/e_j0f.c @@ -18,7 +18,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_j0f.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_j1.c b/src/e_j1.c index 1dbcd29..06af073 100644 --- a/src/e_j1.c +++ b/src/e_j1.c @@ -61,7 +61,7 @@ * by method mentioned above. */ -#include +#include #include "math_private.h" diff --git a/src/e_j1f.c b/src/e_j1f.c index 90429f1..afed84f 100644 --- a/src/e_j1f.c +++ b/src/e_j1f.c @@ -18,7 +18,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_j1f.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_jn.c b/src/e_jn.c index 30bfb82..b651664 100644 --- a/src/e_jn.c +++ b/src/e_jn.c @@ -40,7 +40,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/src/e_jnf.c b/src/e_jnf.c index 7ff3a2d..a2b83ee 100644 --- a/src/e_jnf.c +++ b/src/e_jnf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_jnf.c,v 1.11 2010/11/13 10:54:10 uqs Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_lgamma.c b/src/e_lgamma.c index 4dd5a0d..42cbd08 100644 --- a/src/e_lgamma.c +++ b/src/e_lgamma.c @@ -21,7 +21,7 @@ * Method: call __ieee754_lgamma_r */ -#include +#include #include "math_private.h" diff --git a/src/e_lgamma_r.c b/src/e_lgamma_r.c index 3944f36..45dba55 100644 --- a/src/e_lgamma_r.c +++ b/src/e_lgamma_r.c @@ -83,7 +83,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/src/e_lgammaf.c b/src/e_lgammaf.c index 40e7059..375262a 100644 --- a/src/e_lgammaf.c +++ b/src/e_lgammaf.c @@ -22,7 +22,7 @@ * Method: call __ieee754_lgammaf_r */ -#include +#include #include "math_private.h" diff --git a/src/e_lgammaf_r.c b/src/e_lgammaf_r.c index 52b06c3..dd65147 100644 --- a/src/e_lgammaf_r.c +++ b/src/e_lgammaf_r.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_lgammaf_r.c,v 1.12 2011/10/15 07:00:28 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_lgammal.c b/src/e_lgammal.c index 5ae5761..e71d365 100644 --- a/src/e_lgammal.c +++ b/src/e_lgammal.c @@ -1,6 +1,6 @@ #include "cdefs-compat.h" -#include +#include #include "math_private.h" diff --git a/src/e_log.c b/src/e_log.c index e55390b..524cb55 100644 --- a/src/e_log.c +++ b/src/e_log.c @@ -65,7 +65,7 @@ * to produce the hexadecimal values shown. */ -#include +#include #include "math_private.h" diff --git a/src/e_log10.c b/src/e_log10.c index d0a4034..c9c4fc8 100644 --- a/src/e_log10.c +++ b/src/e_log10.c @@ -22,7 +22,7 @@ * in not-quite-routine extra precision. */ -#include +#include #include "math_private.h" #include "k_log.h" diff --git a/src/e_log10f.c b/src/e_log10f.c index 38e1a22..41f430f 100644 --- a/src/e_log10f.c +++ b/src/e_log10f.c @@ -16,7 +16,7 @@ * Float version of e_log10.c. See the latter for most comments. */ -#include +#include #include "math_private.h" #include "k_logf.h" diff --git a/src/e_log2.c b/src/e_log2.c index 590b3d1..e9053a9 100644 --- a/src/e_log2.c +++ b/src/e_log2.c @@ -24,7 +24,7 @@ * in not-quite-routine extra precision. */ -#include +#include #include "math_private.h" #include "k_log.h" diff --git a/src/e_log2f.c b/src/e_log2f.c index 3997e2d..babe920 100644 --- a/src/e_log2f.c +++ b/src/e_log2f.c @@ -16,7 +16,7 @@ * Float version of e_log2.c. See the latter for most comments. */ -#include +#include #include "math_private.h" #include "k_logf.h" diff --git a/src/e_logf.c b/src/e_logf.c index fd06a44..ce0c0a4 100644 --- a/src/e_logf.c +++ b/src/e_logf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_logf.c,v 1.11 2008/03/29 16:37:59 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_pow.c b/src/e_pow.c index 2cff6ad..b64d699 100644 --- a/src/e_pow.c +++ b/src/e_pow.c @@ -57,7 +57,7 @@ * to produce the hexadecimal values shown. */ -#include +#include #include "math_private.h" diff --git a/src/e_powf.c b/src/e_powf.c index d524526..2573961 100644 --- a/src/e_powf.c +++ b/src/e_powf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_powf.c,v 1.16 2011/10/21 06:26:07 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_rem_pio2.c b/src/e_rem_pio2.c index 716abda..c09e38a 100644 --- a/src/e_rem_pio2.c +++ b/src/e_rem_pio2.c @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_rem_pio2f.c b/src/e_rem_pio2f.c index a66adbd..9861bb9 100644 --- a/src/e_rem_pio2f.c +++ b/src/e_rem_pio2f.c @@ -25,7 +25,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_remainder.c b/src/e_remainder.c index cc1e4c5..c563f11 100644 --- a/src/e_remainder.c +++ b/src/e_remainder.c @@ -24,7 +24,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_remainderf.c b/src/e_remainderf.c index 5d49d23..2cc81e3 100644 --- a/src/e_remainderf.c +++ b/src/e_remainderf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_remainderf.c,v 1.8 2008/02/12 17:11:36 bde Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_remainderl.c b/src/e_remainderl.c index af92ff5..4575086 100644 --- a/src/e_remainderl.c +++ b/src/e_remainderl.c @@ -27,7 +27,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_remainderl.c,v 1.1 2008/03/30 20:47:42 das Exp $"); -#include +#include #include "math_private.h" DLLEXPORT long double diff --git a/src/e_scalb.c b/src/e_scalb.c index abf05f7..c9a4208 100644 --- a/src/e_scalb.c +++ b/src/e_scalb.c @@ -20,7 +20,7 @@ * should use scalbn() instead. */ -#include +#include #include "math_private.h" diff --git a/src/e_scalbf.c b/src/e_scalbf.c index 6154fb0..32258f7 100644 --- a/src/e_scalbf.c +++ b/src/e_scalbf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_scalbf.c,v 1.13 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_sinh.c b/src/e_sinh.c index f9ffd9e..6cd0298 100644 --- a/src/e_sinh.c +++ b/src/e_sinh.c @@ -32,7 +32,7 @@ * only sinh(0)=0 is exact for finite x. */ -#include +#include #include "math_private.h" diff --git a/src/e_sinhf.c b/src/e_sinhf.c index 461502f..c1168b7 100644 --- a/src/e_sinhf.c +++ b/src/e_sinhf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/e_sinhf.c,v 1.10 2011/10/21 06:28:47 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/e_sqrt.c b/src/e_sqrt.c index f89b852..fa10513 100644 --- a/src/e_sqrt.c +++ b/src/e_sqrt.c @@ -85,7 +85,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/e_sqrtf.c b/src/e_sqrtf.c index f863c7a..ea32744 100644 --- a/src/e_sqrtf.c +++ b/src/e_sqrtf.c @@ -13,7 +13,7 @@ * ==================================================== */ -#include +#include #include "math_private.h" diff --git a/src/e_sqrtl.c b/src/e_sqrtl.c index 910bfc7..637f103 100644 --- a/src/e_sqrtl.c +++ b/src/e_sqrtl.c @@ -28,8 +28,8 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/e_sqrtl.c,v 1.1 2008/03/02 01:47:58 das Exp $"); #include -#include #include +#include #include "fpmath.h" #include "math_private.h" diff --git a/src/k_cos.c b/src/k_cos.c index db7a959..d023f49 100644 --- a/src/k_cos.c +++ b/src/k_cos.c @@ -53,7 +53,7 @@ * any extra precision in w. */ -#include +#include #include "math_private.h" diff --git a/src/k_cosf.c b/src/k_cosf.c index f1a5eac..aca33de 100644 --- a/src/k_cosf.c +++ b/src/k_cosf.c @@ -19,7 +19,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_cosf.c,v 1.18 2009/06/03 08:16:34 ed Exp $"); #endif -#include +#include #include "math_private.h" diff --git a/src/k_exp.c b/src/k_exp.c index 6019290..4a2388c 100644 --- a/src/k_exp.c +++ b/src/k_exp.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/k_exp.c,v 1.1 2011/10/21 06:27:56 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/k_expf.c b/src/k_expf.c index ed5a065..0243d9e 100644 --- a/src/k_expf.c +++ b/src/k_expf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/k_expf.c,v 1.1 2011/10/21 06:27:56 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/k_rem_pio2.c b/src/k_rem_pio2.c index b9637de..b0b5f63 100644 --- a/src/k_rem_pio2.c +++ b/src/k_rem_pio2.c @@ -130,7 +130,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/k_sin.c b/src/k_sin.c index 0fa59e5..7c3c860 100644 --- a/src/k_sin.c +++ b/src/k_sin.c @@ -44,7 +44,7 @@ * sin(x) = x + (S1*x + (x *(r-y/2)+y)) */ -#include +#include #include "math_private.h" diff --git a/src/k_sinf.c b/src/k_sinf.c index fb9f22b..08b8229 100644 --- a/src/k_sinf.c +++ b/src/k_sinf.c @@ -19,7 +19,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_sinf.c,v 1.16 2009/06/03 08:16:34 ed Exp $"); #endif -#include +#include #include "math_private.h" diff --git a/src/k_tan.c b/src/k_tan.c index cda5e67..098b503 100644 --- a/src/k_tan.c +++ b/src/k_tan.c @@ -49,7 +49,7 @@ * = 1 - 2*(tan(y) - (tan(y)^2)/(1+tan(y))) */ -#include +#include #include "math_private.h" diff --git a/src/k_tanf.c b/src/k_tanf.c index a81a516..b7a0a7c 100644 --- a/src/k_tanf.c +++ b/src/k_tanf.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_tanf.c,v 1.23 2009/06/03 08:16:34 ed Exp $"); #endif -#include +#include #include "math_private.h" diff --git a/src/polevll.c b/src/polevll.c index 3b31ec3..1c785d8 100644 --- a/src/polevll.c +++ b/src/polevll.c @@ -60,7 +60,7 @@ * */ -#include +#include #include "math_private.h" diff --git a/src/s_asinh.c b/src/s_asinh.c index d30ae08..c7a4699 100644 --- a/src/s_asinh.c +++ b/src/s_asinh.c @@ -24,7 +24,7 @@ * := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2))) */ -#include +#include #include "math_private.h" diff --git a/src/s_asinhf.c b/src/s_asinhf.c index 8b2b951..9966a32 100644 --- a/src/s_asinhf.c +++ b/src/s_asinhf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_asinhf.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_atan.c b/src/s_atan.c index 9a08b9f..1524928 100644 --- a/src/s_atan.c +++ b/src/s_atan.c @@ -34,7 +34,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_atanf.c b/src/s_atanf.c index b28deed..2a8991c 100644 --- a/src/s_atanf.c +++ b/src/s_atanf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_atanf.c,v 1.10 2008/08/01 01:24:25 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_atanl.c b/src/s_atanl.c index 9fe682e..f4fbf30 100644 --- a/src/s_atanl.c +++ b/src/s_atanl.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include "invtrig.h" #include "math_private.h" diff --git a/src/s_cabs.c b/src/s_cabs.c index f7e03fe..f163582 100644 --- a/src/s_cabs.c +++ b/src/s_cabs.c @@ -16,8 +16,8 @@ */ #include -#include #include +#include double cabs(double complex z) diff --git a/src/s_cabsf.c b/src/s_cabsf.c index ae093a6..8d9bd96 100644 --- a/src/s_cabsf.c +++ b/src/s_cabsf.c @@ -15,8 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include +#include float cabsf(float complex z) diff --git a/src/s_cabsl.c b/src/s_cabsl.c index 91db084..847ded7 100644 --- a/src/s_cabsl.c +++ b/src/s_cabsl.c @@ -16,8 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include +#include long double cabsl(long double complex z) diff --git a/src/s_cacos.c b/src/s_cacos.c index cb0c1e3..9a8e7fb 100644 --- a/src/s_cacos.c +++ b/src/s_cacos.c @@ -47,8 +47,8 @@ */ #include -#include #include +#include double complex cacos(double complex z) diff --git a/src/s_cacosf.c b/src/s_cacosf.c index 5df0726..f3c0eb9 100644 --- a/src/s_cacosf.c +++ b/src/s_cacosf.c @@ -46,8 +46,8 @@ * */ -#include #include +#include float complex cacosf(float complex z) diff --git a/src/s_cacosh.c b/src/s_cacosh.c index 8dce7f7..244f437 100644 --- a/src/s_cacosh.c +++ b/src/s_cacosh.c @@ -43,8 +43,8 @@ */ #include -#include #include +#include double complex cacosh(double complex z) diff --git a/src/s_cacoshf.c b/src/s_cacoshf.c index 12a790a..f3c40ae 100644 --- a/src/s_cacoshf.c +++ b/src/s_cacoshf.c @@ -42,8 +42,8 @@ * */ -#include #include +#include float complex cacoshf(float complex z) diff --git a/src/s_cacoshl.c b/src/s_cacoshl.c index 96768c3..5e5ae31 100644 --- a/src/s_cacoshl.c +++ b/src/s_cacoshl.c @@ -43,8 +43,8 @@ * */ -#include #include +#include long double complex cacoshl(long double complex z) diff --git a/src/s_cacosl.c b/src/s_cacosl.c index 147e92e..8a7b8a1 100644 --- a/src/s_cacosl.c +++ b/src/s_cacosl.c @@ -47,8 +47,8 @@ * IEEE -10,+10 30000 1.8e-14 2.2e-15 */ -#include #include +#include static const long double PIO2L = 1.570796326794896619231321691639751442098585L; diff --git a/src/s_carg.c b/src/s_carg.c index a1b2dfc..88f1161 100644 --- a/src/s_carg.c +++ b/src/s_carg.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_carg.c,v 1.1 2007/12/12 23:43:51 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cargf.c b/src/s_cargf.c index 098a163..6bb0b72 100644 --- a/src/s_cargf.c +++ b/src/s_cargf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cargf.c,v 1.1 2007/12/12 23:43:51 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cargl.c b/src/s_cargl.c index f12607f..3c7a8a0 100644 --- a/src/s_cargl.c +++ b/src/s_cargl.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cargl.c,v 1.1 2008/07/31 22:41:26 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_casin.c b/src/s_casin.c index f469c39..82939f1 100644 --- a/src/s_casin.c +++ b/src/s_casin.c @@ -50,8 +50,8 @@ */ #include -#include #include +#include double complex casin(double complex z) diff --git a/src/s_casinf.c b/src/s_casinf.c index 4f1503d..1573264 100644 --- a/src/s_casinf.c +++ b/src/s_casinf.c @@ -47,8 +47,8 @@ * */ -#include #include +#include float complex casinf(float complex z) diff --git a/src/s_casinh.c b/src/s_casinh.c index 9d29034..d3ca8b0 100644 --- a/src/s_casinh.c +++ b/src/s_casinh.c @@ -43,8 +43,8 @@ */ #include -#include #include +#include double complex casinh(double complex z) diff --git a/src/s_casinhf.c b/src/s_casinhf.c index e4617d8..8894624 100644 --- a/src/s_casinhf.c +++ b/src/s_casinhf.c @@ -42,8 +42,8 @@ * */ -#include #include +#include float complex casinhf(float complex z) diff --git a/src/s_casinhl.c b/src/s_casinhl.c index 3d9c0e6..33ae217 100644 --- a/src/s_casinhl.c +++ b/src/s_casinhl.c @@ -43,8 +43,8 @@ * */ -#include #include +#include long double complex casinhl(long double complex z) diff --git a/src/s_casinl.c b/src/s_casinl.c index 53cfd24..b346272 100644 --- a/src/s_casinl.c +++ b/src/s_casinl.c @@ -50,8 +50,8 @@ */ #include -#include #include +#include #if LDBL_MANT_DIG == 64 static const long double MACHEPL= 5.42101086242752217003726400434970855712890625E-20L; diff --git a/src/s_catan.c b/src/s_catan.c index cb153d9..2e8bdbb 100644 --- a/src/s_catan.c +++ b/src/s_catan.c @@ -63,8 +63,8 @@ */ #include -#include #include +#include #define MAXNUM 1.0e308 diff --git a/src/s_catanf.c b/src/s_catanf.c index 1238bd6..d40cb56 100644 --- a/src/s_catanf.c +++ b/src/s_catanf.c @@ -59,8 +59,8 @@ * */ -#include #include +#include #define MAXNUMF 1.0e38F diff --git a/src/s_catanh.c b/src/s_catanh.c index 3c30a26..f4391ee 100644 --- a/src/s_catanh.c +++ b/src/s_catanh.c @@ -43,8 +43,8 @@ */ #include -#include #include +#include double complex catanh(double complex z) diff --git a/src/s_catanhf.c b/src/s_catanhf.c index 42d5efe..7d43825 100644 --- a/src/s_catanhf.c +++ b/src/s_catanhf.c @@ -42,8 +42,8 @@ * */ -#include #include +#include float complex catanhf(float complex z) diff --git a/src/s_catanhl.c b/src/s_catanhl.c index e2ea5d7..711a268 100644 --- a/src/s_catanhl.c +++ b/src/s_catanhl.c @@ -43,8 +43,8 @@ * */ -#include #include +#include long double complex catanhl(long double complex z) diff --git a/src/s_catanl.c b/src/s_catanl.c index 7626e20..acd51b0 100644 --- a/src/s_catanl.c +++ b/src/s_catanl.c @@ -64,8 +64,8 @@ */ #include -#include #include +#include static const long double PIL = 3.141592653589793238462643383279502884197169L; static const long double DP1 = 3.14159265358979323829596852490908531763125L; diff --git a/src/s_cbrt.c b/src/s_cbrt.c index 17a64a4..4400a13 100644 --- a/src/s_cbrt.c +++ b/src/s_cbrt.c @@ -15,7 +15,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cbrt.c,v 1.17 2011/03/12 16:50:39 kargl Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_cbrtf.c b/src/s_cbrtf.c index 5ca255b..09f6200 100644 --- a/src/s_cbrtf.c +++ b/src/s_cbrtf.c @@ -17,7 +17,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cbrtf.c,v 1.18 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_cbrtl.c b/src/s_cbrtl.c index ddd818b..f88c922 100644 --- a/src/s_cbrtl.c +++ b/src/s_cbrtl.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cbrtl.c,v 1.1 2011/03/12 19:37:35 kargl Exp $"); #include -#include +#include // VBS //#include diff --git a/src/s_ccos.c b/src/s_ccos.c index e64de78..48f2b7b 100644 --- a/src/s_ccos.c +++ b/src/s_ccos.c @@ -50,8 +50,8 @@ */ #include -#include #include +#include /* calculate cosh and sinh */ diff --git a/src/s_ccosf.c b/src/s_ccosf.c index 461098f..ce382f0 100644 --- a/src/s_ccosf.c +++ b/src/s_ccosf.c @@ -48,8 +48,8 @@ * IEEE -10,+10 30000 1.8e-7 5.5e-8 */ -#include #include +#include /* calculate cosh and sinh */ diff --git a/src/s_ccosh.c b/src/s_ccosh.c index 4970645..1a478c3 100644 --- a/src/s_ccosh.c +++ b/src/s_ccosh.c @@ -37,8 +37,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_ccosh.c,v 1.2 2011/10/21 06:29:32 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_ccoshf.c b/src/s_ccoshf.c index f5bccee..3134b5e 100644 --- a/src/s_ccoshf.c +++ b/src/s_ccoshf.c @@ -31,8 +31,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_ccoshf.c,v 1.2 2011/10/21 06:29:32 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_ccoshl.c b/src/s_ccoshl.c index 246a612..0233d19 100644 --- a/src/s_ccoshl.c +++ b/src/s_ccoshl.c @@ -43,8 +43,8 @@ * */ -#include #include +#include long double complex ccoshl(long double complex z) diff --git a/src/s_ccosl.c b/src/s_ccosl.c index 220d0f9..0d50483 100644 --- a/src/s_ccosl.c +++ b/src/s_ccosl.c @@ -50,8 +50,8 @@ * IEEE -10,+10 30000 3.8e-16 1.0e-16 */ -#include #include +#include static void cchshl(long double x, long double *c, long double *s) diff --git a/src/s_ceil.c b/src/s_ceil.c index 93ce46b..e3ae9e4 100644 --- a/src/s_ceil.c +++ b/src/s_ceil.c @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_ceilf.c b/src/s_ceilf.c index cd42474..2040ef9 100644 --- a/src/s_ceilf.c +++ b/src/s_ceilf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_ceilf.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_ceill.c b/src/s_ceill.c index 6afc2be..c31fee9 100644 --- a/src/s_ceill.c +++ b/src/s_ceill.c @@ -24,11 +24,11 @@ */ #include -#include -#include "math_private.h" +#include #include #include "fpmath.h" +#include "math_private.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/s_cexp.c b/src/s_cexp.c index 64b60db..e9ae645 100644 --- a/src/s_cexp.c +++ b/src/s_cexp.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cexp.c,v 1.3 2011/10/21 06:27:56 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cexpf.c b/src/s_cexpf.c index b178e76..f83c742 100644 --- a/src/s_cexpf.c +++ b/src/s_cexpf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cexpf.c,v 1.3 2011/10/21 06:27:56 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cexpl.c b/src/s_cexpl.c index b4b8e4c..f143d88 100644 --- a/src/s_cexpl.c +++ b/src/s_cexpl.c @@ -54,8 +54,8 @@ * */ -#include #include +#include long double complex cexpl(long double complex z) diff --git a/src/s_clog.c b/src/s_clog.c index 7e8f723..30ea5ea 100644 --- a/src/s_clog.c +++ b/src/s_clog.c @@ -55,8 +55,8 @@ */ #include -#include #include +#include double complex clog(double complex z) diff --git a/src/s_clogf.c b/src/s_clogf.c index ea67476..e157aae 100644 --- a/src/s_clogf.c +++ b/src/s_clogf.c @@ -53,8 +53,8 @@ * */ -#include #include +#include float complex clogf(float complex z) diff --git a/src/s_clogl.c b/src/s_clogl.c index caff2d4..c337103 100644 --- a/src/s_clogl.c +++ b/src/s_clogl.c @@ -55,8 +55,8 @@ * absolute error 1.0e-16. */ -#include #include +#include long double complex clogl(long double complex z) diff --git a/src/s_conj.c b/src/s_conj.c index 811616f..8e41275 100644 --- a/src/s_conj.c +++ b/src/s_conj.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_conj.c,v 1.2 2008/08/07 14:39:56 das Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_conjf.c b/src/s_conjf.c index d2f58ad..29eb734 100644 --- a/src/s_conjf.c +++ b/src/s_conjf.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_conjf.c,v 1.2 2008/08/07 14:39:56 das Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_conjl.c b/src/s_conjl.c index a73394a..e1aeb6c 100644 --- a/src/s_conjl.c +++ b/src/s_conjl.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_conjl.c,v 1.2 2008/08/07 14:39:56 das Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_copysign.c b/src/s_copysign.c index 27be952..068cafe 100644 --- a/src/s_copysign.c +++ b/src/s_copysign.c @@ -19,7 +19,7 @@ * with the sign bit of y. */ -#include +#include #include "math_private.h" diff --git a/src/s_copysignf.c b/src/s_copysignf.c index 3fcf21e..e2a25ba 100644 --- a/src/s_copysignf.c +++ b/src/s_copysignf.c @@ -22,7 +22,7 @@ * with the sign bit of y. */ -#include +#include #include "math_private.h" diff --git a/src/s_copysignl.c b/src/s_copysignl.c index b648443..fdbfa94 100644 --- a/src/s_copysignl.c +++ b/src/s_copysignl.c @@ -26,9 +26,10 @@ * $FreeBSD: src/lib/msun/src/s_copysignl.c,v 1.2 2007/01/07 07:54:21 das Exp $ */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT long double copysignl(long double x, long double y) diff --git a/src/s_cos.c b/src/s_cos.c index 63e52a3..6c56389 100644 --- a/src/s_cos.c +++ b/src/s_cos.c @@ -45,7 +45,7 @@ */ #include -#include +#include //#define INLINE_REM_PIO2 #include "math_private.h" diff --git a/src/s_cosf.c b/src/s_cosf.c index 72b2551..7797c80 100644 --- a/src/s_cosf.c +++ b/src/s_cosf.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cosf.c,v 1.18 2008/02/25 22:19:17 bde Exp $"); #include -#include +#include //#define INLINE_KERNEL_COSDF //#define INLINE_KERNEL_SINDF diff --git a/src/s_cosl.c b/src/s_cosl.c index 365d74e..8d3e821 100644 --- a/src/s_cosl.c +++ b/src/s_cosl.c @@ -33,7 +33,7 @@ */ #include -#include +#include #include "math_private.h" #if LDBL_MANT_DIG == 64 diff --git a/src/s_cpow.c b/src/s_cpow.c index ada9e77..209a1af 100644 --- a/src/s_cpow.c +++ b/src/s_cpow.c @@ -45,8 +45,8 @@ */ #include -#include #include +#include #include "math_private.h" diff --git a/src/s_cpowf.c b/src/s_cpowf.c index 14482d2..2738ca4 100644 --- a/src/s_cpowf.c +++ b/src/s_cpowf.c @@ -44,8 +44,8 @@ * */ -#include #include +#include #include "math_private.h" diff --git a/src/s_cpowl.c b/src/s_cpowl.c index 0218c78..124afa1 100644 --- a/src/s_cpowl.c +++ b/src/s_cpowl.c @@ -45,8 +45,8 @@ * */ -#include #include +#include #include "math_private.h" diff --git a/src/s_cproj.c b/src/s_cproj.c index 7b9e131..c6cb120 100644 --- a/src/s_cproj.c +++ b/src/s_cproj.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cproj.c,v 1.1 2008/08/07 15:07:48 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cprojf.c b/src/s_cprojf.c index 320540c..d13450f 100644 --- a/src/s_cprojf.c +++ b/src/s_cprojf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cprojf.c,v 1.1 2008/08/07 15:07:48 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_cprojl.c b/src/s_cprojl.c index e68e14d..653864c 100644 --- a/src/s_cprojl.c +++ b/src/s_cprojl.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_cprojl.c,v 1.1 2008/08/07 15:07:48 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_creal.c b/src/s_creal.c index 119b1fa..1562fc2 100644 --- a/src/s_creal.c +++ b/src/s_creal.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_creal.c,v 1.1 2004/05/30 09:21:56 stefanf Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_crealf.c b/src/s_crealf.c index b4a9045..393f206 100644 --- a/src/s_crealf.c +++ b/src/s_crealf.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_crealf.c,v 1.1 2004/05/30 09:21:56 stefanf Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_creall.c b/src/s_creall.c index 7cd1ed5..6c62ae8 100644 --- a/src/s_creall.c +++ b/src/s_creall.c @@ -26,7 +26,6 @@ * $FreeBSD: src/lib/msun/src/s_creall.c,v 1.1 2004/05/30 09:21:56 stefanf Exp $ */ -#include #include #include "math_private.h" diff --git a/src/s_csin.c b/src/s_csin.c index 4e6616d..8560e0b 100644 --- a/src/s_csin.c +++ b/src/s_csin.c @@ -52,8 +52,8 @@ */ #include -#include #include +#include /* calculate cosh and sinh */ diff --git a/src/s_csinf.c b/src/s_csinf.c index 4c22851..42aa981 100644 --- a/src/s_csinf.c +++ b/src/s_csinf.c @@ -49,8 +49,8 @@ * */ -#include #include +#include /* calculate cosh and sinh */ diff --git a/src/s_csinh.c b/src/s_csinh.c index 3ec28d4..023c3e6 100644 --- a/src/s_csinh.c +++ b/src/s_csinh.c @@ -37,8 +37,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_csinh.c,v 1.2 2011/10/21 06:29:32 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_csinhf.c b/src/s_csinhf.c index cdaea30..f6a5e4b 100644 --- a/src/s_csinhf.c +++ b/src/s_csinhf.c @@ -31,8 +31,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_csinhf.c,v 1.2 2011/10/21 06:29:32 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_csinhl.c b/src/s_csinhl.c index d9af4a2..57b577f 100644 --- a/src/s_csinhl.c +++ b/src/s_csinhl.c @@ -42,8 +42,8 @@ * */ -#include #include +#include long double complex csinhl(long double complex z) diff --git a/src/s_csinl.c b/src/s_csinl.c index ada306d..3470ac5 100644 --- a/src/s_csinl.c +++ b/src/s_csinl.c @@ -52,8 +52,8 @@ * */ -#include #include +#include static void cchshl(long double x, long double *c, long double *s) diff --git a/src/s_csqrt.c b/src/s_csqrt.c index e0633bd..83918b0 100644 --- a/src/s_csqrt.c +++ b/src/s_csqrt.c @@ -28,8 +28,8 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_csqrt.c,v 1.4 2008/08/08 00:15:16 das Exp $"); #include -#include #include +#include #include "math_private.h" diff --git a/src/s_csqrtf.c b/src/s_csqrtf.c index 4cad53c..92ddace 100644 --- a/src/s_csqrtf.c +++ b/src/s_csqrtf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_csqrtf.c,v 1.3 2008/08/08 00:15:16 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_csqrtl.c b/src/s_csqrtl.c index 71ebada..bd29e69 100644 --- a/src/s_csqrtl.c +++ b/src/s_csqrtl.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" #include -#include #include +#include #include "math_private.h" diff --git a/src/s_ctan.c b/src/s_ctan.c index d83e55f..5082e39 100644 --- a/src/s_ctan.c +++ b/src/s_ctan.c @@ -57,8 +57,8 @@ */ #include -#include #include +#include #define MACHEP 1.1e-16 #define MAXNUM 1.0e308 diff --git a/src/s_ctanf.c b/src/s_ctanf.c index e49b623..3bb3742 100644 --- a/src/s_ctanf.c +++ b/src/s_ctanf.c @@ -53,8 +53,8 @@ * IEEE -10,+10 30000 3.3e-7 5.1e-8 */ -#include #include +#include #define MACHEPF 3.0e-8 #define MAXNUMF 1.0e38f diff --git a/src/s_ctanh.c b/src/s_ctanh.c index fa97cc1..392408c 100644 --- a/src/s_ctanh.c +++ b/src/s_ctanh.c @@ -66,8 +66,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_ctanh.c,v 1.2 2011/10/21 06:30:16 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_ctanhf.c b/src/s_ctanhf.c index a976977..729f44c 100644 --- a/src/s_ctanhf.c +++ b/src/s_ctanhf.c @@ -31,8 +31,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_ctanhf.c,v 1.2 2011/10/21 06:30:16 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_ctanhl.c b/src/s_ctanhl.c index 6ee9b5b..6d996d4 100644 --- a/src/s_ctanhl.c +++ b/src/s_ctanhl.c @@ -43,8 +43,8 @@ * */ -#include #include +#include long double complex ctanhl(long double complex z) diff --git a/src/s_ctanl.c b/src/s_ctanl.c index 8672938..cf33ced 100644 --- a/src/s_ctanl.c +++ b/src/s_ctanl.c @@ -57,8 +57,8 @@ */ #include -#include #include +#include #if LDBL_MANT_DIG == 64 static const long double MACHEPL= 5.42101086242752217003726400434970855712890625E-20L; diff --git a/src/s_erf.c b/src/s_erf.c index acccd57..79c7524 100644 --- a/src/s_erf.c +++ b/src/s_erf.c @@ -107,7 +107,7 @@ * erfc/erf(NaN) is NaN */ -#include +#include #include "math_private.h" diff --git a/src/s_erff.c b/src/s_erff.c index c4e1f5f..70f7fe6 100644 --- a/src/s_erff.c +++ b/src/s_erff.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_erff.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_exp2.c b/src/s_exp2.c index e1863f5..7de2f24 100644 --- a/src/s_exp2.c +++ b/src/s_exp2.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_exp2.c,v 1.7 2008/02/22 02:27:34 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_exp2f.c b/src/s_exp2f.c index 696d63e..9903929 100644 --- a/src/s_exp2f.c +++ b/src/s_exp2f.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_exp2f.c,v 1.9 2008/02/22 02:27:34 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_expm1.c b/src/s_expm1.c index 001e3ac..45b3714 100644 --- a/src/s_expm1.c +++ b/src/s_expm1.c @@ -109,7 +109,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_expm1f.c b/src/s_expm1f.c index 9fd2f8d..2b27eec 100644 --- a/src/s_expm1f.c +++ b/src/s_expm1f.c @@ -17,7 +17,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_expm1f.c,v 1.12 2011/10/21 06:26:38 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_fabs.c b/src/s_fabs.c index 077e02c..0a634b8 100644 --- a/src/s_fabs.c +++ b/src/s_fabs.c @@ -14,7 +14,7 @@ * fabs(x) returns the absolute value of x. */ -#include +#include #include "math_private.h" diff --git a/src/s_fabsf.c b/src/s_fabsf.c index 8792332..31ebc55 100644 --- a/src/s_fabsf.c +++ b/src/s_fabsf.c @@ -20,7 +20,7 @@ * fabsf(x) returns the absolute value of x. */ -#include +#include #include "math_private.h" diff --git a/src/s_fabsl.c b/src/s_fabsl.c index 68e922b..20b6e1e 100644 --- a/src/s_fabsl.c +++ b/src/s_fabsl.c @@ -28,7 +28,7 @@ * $FreeBSD: src/lib/msun/src/s_fabsl.c,v 1.2 2003/10/25 19:53:28 des Exp $ */ -#include +#include #include "math_private.h" #include "fpmath.h" diff --git a/src/s_fdim.c b/src/s_fdim.c index 12dee6b..cff1462 100644 --- a/src/s_fdim.c +++ b/src/s_fdim.c @@ -26,7 +26,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fdim.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include #include "math_private.h" #define DECL(type, fn) \ diff --git a/src/s_finite.c b/src/s_finite.c index c8c1d0d..8118140 100644 --- a/src/s_finite.c +++ b/src/s_finite.c @@ -18,7 +18,7 @@ * no branching! */ -#include +#include #include "math_private.h" diff --git a/src/s_finitef.c b/src/s_finitef.c index 44239c1..b26b0c7 100644 --- a/src/s_finitef.c +++ b/src/s_finitef.c @@ -21,7 +21,7 @@ * no branching! */ -#include +#include #include "math_private.h" diff --git a/src/s_floor.c b/src/s_floor.c index 6825492..14a41e7 100644 --- a/src/s_floor.c +++ b/src/s_floor.c @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_floorf.c b/src/s_floorf.c index b056584..70f4818 100644 --- a/src/s_floorf.c +++ b/src/s_floorf.c @@ -25,7 +25,7 @@ * Inexact flag raised if x not equal to floorf(x). */ -#include +#include #include "math_private.h" diff --git a/src/s_floorl.c b/src/s_floorl.c index df578cc..e0d3d51 100644 --- a/src/s_floorl.c +++ b/src/s_floorl.c @@ -24,11 +24,11 @@ */ #include -#include -#include "math_private.h" +#include #include #include "fpmath.h" +#include "math_private.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/s_fma.c b/src/s_fma.c index 7fa8ba3..60575a8 100644 --- a/src/s_fma.c +++ b/src/s_fma.c @@ -28,8 +28,8 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_fma.c,v 1.8 2011/10/21 06:30:43 das Exp $"); #include -#include #include +#include #include "math_private.h" diff --git a/src/s_fmaf.c b/src/s_fmaf.c index e56489e..24ee8f4 100644 --- a/src/s_fmaf.c +++ b/src/s_fmaf.c @@ -27,8 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaf.c,v 1.3 2011/10/15 04:16:58 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/s_fmal.c b/src/s_fmal.c index 1aa7ab3..39fc1e5 100644 --- a/src/s_fmal.c +++ b/src/s_fmal.c @@ -28,10 +28,11 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmal.c,v 1.7 2011/10/21 06:30:43 das Exp $"); #include -#include #include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" /* * A struct dd represents a floating-point number with twice the precision diff --git a/src/s_fmax.c b/src/s_fmax.c index 5df93d8..c5ccb61 100644 --- a/src/s_fmax.c +++ b/src/s_fmax.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmax.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT double fmax(double x, double y) diff --git a/src/s_fmaxf.c b/src/s_fmaxf.c index e1744c0..112b6ac 100644 --- a/src/s_fmaxf.c +++ b/src/s_fmaxf.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxf.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT float fmaxf(float x, float y) diff --git a/src/s_fmaxl.c b/src/s_fmaxl.c index b77fbca..1dc34e6 100644 --- a/src/s_fmaxl.c +++ b/src/s_fmaxl.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT long double fmaxl(long double x, long double y) diff --git a/src/s_fmin.c b/src/s_fmin.c index 20474e6..da8a01c 100644 --- a/src/s_fmin.c +++ b/src/s_fmin.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmin.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT double fmin(double x, double y) diff --git a/src/s_fminf.c b/src/s_fminf.c index f537186..88b7590 100644 --- a/src/s_fminf.c +++ b/src/s_fminf.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fminf.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT float fminf(float x, float y) diff --git a/src/s_fminl.c b/src/s_fminl.c index db30e18..3fce2fb 100644 --- a/src/s_fminl.c +++ b/src/s_fminl.c @@ -27,9 +27,10 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT long double fminl(long double x, long double y) diff --git a/src/s_fpclassify.c b/src/s_fpclassify.c index e850ecd..babf7e2 100644 --- a/src/s_fpclassify.c +++ b/src/s_fpclassify.c @@ -25,7 +25,7 @@ * */ -#include +#include #include "math_private.h" #include "fpmath.h" diff --git a/src/s_frexp.c b/src/s_frexp.c index c836375..ef10010 100644 --- a/src/s_frexp.c +++ b/src/s_frexp.c @@ -24,7 +24,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_frexpf.c b/src/s_frexpf.c index c80f553..e6626c4 100644 --- a/src/s_frexpf.c +++ b/src/s_frexpf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_frexpf.c,v 1.10 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_frexpl.c b/src/s_frexpl.c index c8c61f7..5f7368a 100644 --- a/src/s_frexpl.c +++ b/src/s_frexpl.c @@ -27,9 +27,10 @@ */ #include -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" #if LDBL_MAX_EXP != 0x4000 #error "Unsupported long double format" diff --git a/src/s_ilogb.c b/src/s_ilogb.c index bbac525..99600c6 100644 --- a/src/s_ilogb.c +++ b/src/s_ilogb.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_ilogbf.c b/src/s_ilogbf.c index 1e556c3..772f60f 100644 --- a/src/s_ilogbf.c +++ b/src/s_ilogbf.c @@ -17,7 +17,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_ilogbf.c,v 1.8 2008/02/22 02:30:35 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_ilogbl.c b/src/s_ilogbl.c index 6bbe124..fcbeb99 100644 --- a/src/s_ilogbl.c +++ b/src/s_ilogbl.c @@ -15,9 +15,10 @@ #include #include -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT int ilogbl(long double x) diff --git a/src/s_isfinite.c b/src/s_isfinite.c index cd697e7..fe1ea85 100644 --- a/src/s_isfinite.c +++ b/src/s_isfinite.c @@ -26,9 +26,10 @@ * $FreeBSD: src/lib/msun/src/s_isfinite.c,v 1.1 2004/07/09 03:32:39 das Exp $ */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT int __isfinite(double d) diff --git a/src/s_isinf.c b/src/s_isinf.c index 041c4ec..8c0d7be 100644 --- a/src/s_isinf.c +++ b/src/s_isinf.c @@ -25,9 +25,10 @@ * */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" /* Provided by libc */ #if 1 diff --git a/src/s_isnan.c b/src/s_isnan.c index 21f4f64..0b8d894 100644 --- a/src/s_isnan.c +++ b/src/s_isnan.c @@ -26,9 +26,10 @@ * $FreeBSD: src/lib/msun/src/s_isnan.c,v 1.9 2010/06/12 17:32:05 das Exp $ */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" /* Provided by libc */ #if 1 diff --git a/src/s_isnormal.c b/src/s_isnormal.c index 6a702c5..12074c7 100644 --- a/src/s_isnormal.c +++ b/src/s_isnormal.c @@ -26,9 +26,10 @@ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT int __isnormal(double d) diff --git a/src/s_log1p.c b/src/s_log1p.c index 70d4bcc..7c5cd5f 100644 --- a/src/s_log1p.c +++ b/src/s_log1p.c @@ -79,7 +79,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_log1pf.c b/src/s_log1pf.c index d162f7b..c5643dd 100644 --- a/src/s_log1pf.c +++ b/src/s_log1pf.c @@ -17,7 +17,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_log1pf.c,v 1.12 2008/03/29 16:37:59 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_logb.c b/src/s_logb.c index 9549301..d2e6af2 100644 --- a/src/s_logb.c +++ b/src/s_logb.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_logbf.c b/src/s_logbf.c index e1926a3..f1eeed5 100644 --- a/src/s_logbf.c +++ b/src/s_logbf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_logbf.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_logbl.c b/src/s_logbl.c index 44a6eab..9d6f62e 100644 --- a/src/s_logbl.c +++ b/src/s_logbl.c @@ -12,9 +12,10 @@ #include #include -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT long double logbl(long double x) diff --git a/src/s_lrint.c b/src/s_lrint.c index 9ecb558..d685aa8 100644 --- a/src/s_lrint.c +++ b/src/s_lrint.c @@ -25,8 +25,10 @@ */ #include "cdefs-compat.h" -#include + #include +#include + #include "math_private.h" #ifndef type diff --git a/src/s_lround.c b/src/s_lround.c index 37068fe..1085aa8 100644 --- a/src/s_lround.c +++ b/src/s_lround.c @@ -25,12 +25,11 @@ */ #include "cdefs-compat.h" -//VBS begin -//#include + #include -//VBS end -#include #include +#include + #include "math_private.h" #ifndef type diff --git a/src/s_modf.c b/src/s_modf.c index 319c963..18e0875 100644 --- a/src/s_modf.c +++ b/src/s_modf.c @@ -20,7 +20,7 @@ * No exception. */ -#include +#include #include "math_private.h" diff --git a/src/s_modff.c b/src/s_modff.c index a8bbf98..b6ec37a 100644 --- a/src/s_modff.c +++ b/src/s_modff.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_modff.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_modfl.c b/src/s_modfl.c index 08214fb..ed24f6c 100644 --- a/src/s_modfl.c +++ b/src/s_modfl.c @@ -37,10 +37,10 @@ */ #include -#include -#include "math_private.h" +#include #include "fpmath.h" +#include "math_private.h" #if LDBL_MANL_SIZE > 32 #define MASK ((u_int64_t)-1) diff --git a/src/s_nan.c b/src/s_nan.c index ef8aad7..6b3631b 100644 --- a/src/s_nan.c +++ b/src/s_nan.c @@ -30,7 +30,7 @@ //#include #include #include -#include +#include #include #include //for memset diff --git a/src/s_nearbyint.c b/src/s_nearbyint.c index f0fc19f..7d6af82 100644 --- a/src/s_nearbyint.c +++ b/src/s_nearbyint.c @@ -27,8 +27,9 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_nearbyint.c,v 1.2 2008/01/14 02:12:06 das Exp $"); -#include #include +#include + #include "math_private.h" /* diff --git a/src/s_nextafter.c b/src/s_nextafter.c index 2e02a32..e582741 100644 --- a/src/s_nextafter.c +++ b/src/s_nextafter.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_nextafterf.c b/src/s_nextafterf.c index dac81e9..6aa34fb 100644 --- a/src/s_nextafterf.c +++ b/src/s_nextafterf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_nextafterf.c,v 1.11 2008/02/22 02:30:35 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_nextafterl.c b/src/s_nextafterl.c index 27c002e..39bf61b 100644 --- a/src/s_nextafterl.c +++ b/src/s_nextafterl.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include "fpmath.h" #include "math_private.h" diff --git a/src/s_nexttoward.c b/src/s_nexttoward.c index 483c933..19f81f0 100644 --- a/src/s_nexttoward.c +++ b/src/s_nexttoward.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include "fpmath.h" #include "math_private.h" diff --git a/src/s_nexttowardf.c b/src/s_nexttowardf.c index 4726cbd..6fa5820 100644 --- a/src/s_nexttowardf.c +++ b/src/s_nexttowardf.c @@ -13,7 +13,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_nexttowardf.c,v 1.3 2011/02/10 07:38:38 das Exp $"); #include -#include +#include #include "fpmath.h" #include "math_private.h" diff --git a/src/s_remquo.c b/src/s_remquo.c index ca62639..c4025ca 100644 --- a/src/s_remquo.c +++ b/src/s_remquo.c @@ -14,7 +14,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_remquo.c,v 1.2 2008/03/30 20:47:26 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_remquof.c b/src/s_remquof.c index 72a0316..d86ac10 100644 --- a/src/s_remquof.c +++ b/src/s_remquof.c @@ -13,7 +13,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_remquof.c,v 1.1 2005/03/25 04:40:44 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_remquol.c b/src/s_remquol.c index 69734dd..9efd086 100644 --- a/src/s_remquol.c +++ b/src/s_remquol.c @@ -14,7 +14,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_remquol.c,v 1.2 2008/07/31 20:09:47 das Exp $"); #include -#include +#include #include #include "fpmath.h" diff --git a/src/s_rint.c b/src/s_rint.c index ba0e104..bc76fad 100644 --- a/src/s_rint.c +++ b/src/s_rint.c @@ -24,7 +24,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_rintf.c b/src/s_rintf.c index f593c1a..41f7822 100644 --- a/src/s_rintf.c +++ b/src/s_rintf.c @@ -17,7 +17,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_rintf.c,v 1.12 2008/02/22 02:30:35 das Exp $"); #include -#include +#include #include #include "math_private.h" diff --git a/src/s_rintl.c b/src/s_rintl.c index 3dd11c2..6a35be6 100644 --- a/src/s_rintl.c +++ b/src/s_rintl.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_rintl.c,v 1.5 2008/02/22 11:59:05 bde Exp $"); #include -#include +#include #include "fpmath.h" diff --git a/src/s_round.c b/src/s_round.c index d1250b4..ab38566 100644 --- a/src/s_round.c +++ b/src/s_round.c @@ -27,7 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.4 2005/12/02 13:45:06 bde Exp $"); -#include +#include + #include "math_private.h" DLLEXPORT double diff --git a/src/s_roundf.c b/src/s_roundf.c index cbb40f3..0ad5dbc 100644 --- a/src/s_roundf.c +++ b/src/s_roundf.c @@ -27,7 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_roundf.c,v 1.4 2005/12/02 13:45:06 bde Exp $"); -#include +#include + #include "math_private.h" DLLEXPORT float diff --git a/src/s_roundl.c b/src/s_roundl.c index 24e58aa..ea63a4c 100644 --- a/src/s_roundl.c +++ b/src/s_roundl.c @@ -27,7 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_roundl.c,v 1.2 2005/12/02 13:45:06 bde Exp $"); -#include +#include + #include "math_private.h" DLLEXPORT long double diff --git a/src/s_scalbln.c b/src/s_scalbln.c index ba0f699..18554c4 100644 --- a/src/s_scalbln.c +++ b/src/s_scalbln.c @@ -28,7 +28,8 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_scalbln.c,v 1.2 2005/03/07 04:57:50 das Exp $"); #include -#include +#include + #include "math_private.h" DLLEXPORT double diff --git a/src/s_scalbn.c b/src/s_scalbn.c index 1071ac3..ecabc68 100644 --- a/src/s_scalbn.c +++ b/src/s_scalbn.c @@ -20,7 +20,7 @@ #include "cdefs-compat.h" #include -#include +#include #include "math_private.h" diff --git a/src/s_scalbnf.c b/src/s_scalbnf.c index 57d53ca..0a21533 100644 --- a/src/s_scalbnf.c +++ b/src/s_scalbnf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" -#include +#include #include "math_private.h" diff --git a/src/s_scalbnl.c b/src/s_scalbnl.c index 2b7b4fe..49d7215 100644 --- a/src/s_scalbnl.c +++ b/src/s_scalbnl.c @@ -24,10 +24,12 @@ */ #include "cdefs-compat.h" + #include -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" #if LDBL_MAX_EXP != 0x4000 #error "Unsupported long double format" diff --git a/src/s_signbit.c b/src/s_signbit.c index 00529b5..c3eb8d5 100644 --- a/src/s_signbit.c +++ b/src/s_signbit.c @@ -26,9 +26,10 @@ * $FreeBSD: src/lib/msun/src/s_signbit.c,v 1.1 2004/07/19 08:16:10 das Exp $ */ -#include -#include "math_private.h" +#include + #include "fpmath.h" +#include "math_private.h" DLLEXPORT int __signbit(double d) diff --git a/src/s_signgam.c b/src/s_signgam.c index 1557899..ad72a73 100644 --- a/src/s_signgam.c +++ b/src/s_signgam.c @@ -1,4 +1,4 @@ -#include +#include #include "math_private.h" diff --git a/src/s_significand.c b/src/s_significand.c index 51e51fd..61045bc 100644 --- a/src/s_significand.c +++ b/src/s_significand.c @@ -19,7 +19,7 @@ * for exercising the fraction-part(F) IEEE 754-1985 test vector. */ -#include +#include #include "math_private.h" diff --git a/src/s_significandf.c b/src/s_significandf.c index 3cc5011..0ccb9de 100644 --- a/src/s_significandf.c +++ b/src/s_significandf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_significandf.c,v 1.8 2008/02/22 02:30:36 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_sin.c b/src/s_sin.c index 9f50764..cfe1554 100644 --- a/src/s_sin.c +++ b/src/s_sin.c @@ -45,7 +45,7 @@ */ #include -#include +#include //#define INLINE_REM_PIO2 #include "math_private.h" diff --git a/src/s_sincos.c b/src/s_sincos.c index 9960ee6..5a5444b 100644 --- a/src/s_sincos.c +++ b/src/s_sincos.c @@ -35,7 +35,7 @@ */ #include -#include +#include //#define INLINE_REM_PIO2 #include "math_private.h" diff --git a/src/s_sincosf.c b/src/s_sincosf.c index 6be7895..5f60e01 100644 --- a/src/s_sincosf.c +++ b/src/s_sincosf.c @@ -12,7 +12,7 @@ #include "cdefs-compat.h" #include -#include +#include //#define INLINE_KERNEL_COSDF //#define INLINE_KERNEL_SINDF diff --git a/src/s_sincosl.c b/src/s_sincosl.c index 72ada33..264228e 100644 --- a/src/s_sincosl.c +++ b/src/s_sincosl.c @@ -12,7 +12,7 @@ #include "cdefs-compat.h" #include -#include +#include #include "math_private.h" #if LDBL_MANT_DIG == 64 diff --git a/src/s_sinf.c b/src/s_sinf.c index c76a99e..b7794b6 100644 --- a/src/s_sinf.c +++ b/src/s_sinf.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_sinf.c,v 1.17 2008/02/25 22:19:17 bde Exp $"); #include -#include +#include //#define INLINE_KERNEL_COSDF //#define INLINE_KERNEL_SINDF diff --git a/src/s_sinl.c b/src/s_sinl.c index b460b07..7490674 100644 --- a/src/s_sinl.c +++ b/src/s_sinl.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_sinl.c,v 1.3 2011/05/30 19:41:28 kargl Exp $"); #include -#include +#include #include "math_private.h" #if LDBL_MANT_DIG == 64 diff --git a/src/s_tan.c b/src/s_tan.c index e830a19..4971719 100644 --- a/src/s_tan.c +++ b/src/s_tan.c @@ -44,7 +44,7 @@ */ #include -#include +#include //#define INLINE_REM_PIO2 #include "math_private.h" diff --git a/src/s_tanf.c b/src/s_tanf.c index f711507..b4a66d7 100644 --- a/src/s_tanf.c +++ b/src/s_tanf.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_tanf.c,v 1.17 2008/02/25 22:19:17 bde Exp $"); #include -#include +#include //#define INLINE_KERNEL_TANDF //#define INLINE_REM_PIO2F diff --git a/src/s_tanh.c b/src/s_tanh.c index aee5df0..97915fa 100644 --- a/src/s_tanh.c +++ b/src/s_tanh.c @@ -37,7 +37,7 @@ * only tanh(0)=0 is exact for finite argument. */ -#include +#include #include "math_private.h" diff --git a/src/s_tanhf.c b/src/s_tanhf.c index 0fdf18d..c3aed03 100644 --- a/src/s_tanhf.c +++ b/src/s_tanhf.c @@ -16,7 +16,7 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_tanhf.c,v 1.9 2008/02/22 02:30:36 das Exp $"); -#include +#include #include "math_private.h" diff --git a/src/s_tanl.c b/src/s_tanl.c index ea78714..989110b 100644 --- a/src/s_tanl.c +++ b/src/s_tanl.c @@ -34,7 +34,7 @@ */ #include -#include +#include #include "math_private.h" #if LDBL_MANT_DIG == 64 diff --git a/src/s_tgammaf.c b/src/s_tgammaf.c index 2d37d49..551789d 100644 --- a/src/s_tgammaf.c +++ b/src/s_tgammaf.c @@ -27,7 +27,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/s_tgammaf.c,v 1.1 2008/02/18 17:27:10 das Exp $"); -#include +#include + #include "math_private.h" /* diff --git a/src/s_trunc.c b/src/s_trunc.c index 7f59cf3..23ebb8e 100644 --- a/src/s_trunc.c +++ b/src/s_trunc.c @@ -23,7 +23,7 @@ */ #include -#include +#include #include "math_private.h" diff --git a/src/s_truncf.c b/src/s_truncf.c index ffbefdf..203d06f 100644 --- a/src/s_truncf.c +++ b/src/s_truncf.c @@ -22,7 +22,7 @@ * Inexact flag raised if x not equal to truncf(x). */ -#include +#include #include "math_private.h" diff --git a/src/s_truncl.c b/src/s_truncl.c index 02f3c61..07518d1 100644 --- a/src/s_truncl.c +++ b/src/s_truncl.c @@ -24,11 +24,11 @@ */ #include -#include -#include "math_private.h" +#include #include #include "fpmath.h" +#include "math_private.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/w_cabs.c b/src/w_cabs.c index ff3fff7..b404f7b 100644 --- a/src/w_cabs.c +++ b/src/w_cabs.c @@ -9,8 +9,8 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/w_cabs.c,v 1.7 2008/03/30 20:03:06 das Exp $"); #include -#include #include +#include #include "math_private.h" diff --git a/src/w_cabsf.c b/src/w_cabsf.c index 6bbcf03..163dfdb 100644 --- a/src/w_cabsf.c +++ b/src/w_cabsf.c @@ -5,8 +5,8 @@ * Placed into the Public Domain, 1994. */ -#include #include +#include #include "math_private.h" diff --git a/src/w_cabsl.c b/src/w_cabsl.c index 3987cfe..06397f5 100644 --- a/src/w_cabsl.c +++ b/src/w_cabsl.c @@ -10,8 +10,8 @@ #include "cdefs-compat.h" //__FBSDID("$FreeBSD: src/lib/msun/src/w_cabsl.c,v 1.1 2008/03/30 20:02:03 das Exp $"); -#include #include +#include #include "math_private.h" diff --git a/src/w_drem.c b/src/w_drem.c index 8a56f63..8fe000a 100644 --- a/src/w_drem.c +++ b/src/w_drem.c @@ -5,7 +5,7 @@ * Placed into the Public Domain, 1994. */ -#include +#include #include "math_private.h" DLLEXPORT double diff --git a/src/w_dremf.c b/src/w_dremf.c index c469fba..faf3d2a 100644 --- a/src/w_dremf.c +++ b/src/w_dremf.c @@ -6,7 +6,7 @@ */ /* $FreeBSD: src/lib/msun/src/w_dremf.c,v 1.3 2004/07/28 05:53:18 kan Exp $ */ -#include +#include #include "math_private.h" diff --git a/test/libm-test.c b/test/libm-test.c index 1b3f580..e6955e9 100644 --- a/test/libm-test.c +++ b/test/libm-test.c @@ -122,8 +122,6 @@ #include #else #include -#include -#include #endif #if 0 /* XXX scp XXX */