Blame src/api/math.c

nsz 866185
#include <math.h>
nsz 866185
#define T(t) (t*)0;
nsz 866185
#define C(n) switch(n){case n:;}
nsz 866185
#define I(n) {int i = n;}
nsz 866185
#define D(n) {double d = n;}
nsz 866185
static void f()
nsz 866185
{
nsz 866185
T(float_t)
nsz 866185
T(double_t)
nsz 866185
I(fpclassify(.0))
nsz 866185
I(isfinite(.0))
nsz 866185
I(isgreater(.0,.0))
nsz 866185
I(isgreaterequal(.0,.0))
nsz 866185
I(isinf(.0))
nsz 866185
I(isless(.0,.0))
nsz 866185
I(islessequal(.0,.0))
nsz 866185
I(islessgreater(.0,.0))
nsz 866185
I(isnan(.0))
nsz 866185
I(isnormal(.0))
nsz 866185
I(isunordered(.0,.0))
nsz 866185
I(signbit(.0))
nsz 866185
#ifdef _XOPEN_SOURCE
nsz 866185
I(signgam)
nsz 866185
D(M_E)
nsz 866185
D(M_LOG2E)
nsz 866185
D(M_LOG10E)
nsz 866185
D(M_LN2)
nsz 866185
D(M_LN10)
nsz 866185
D(M_PI)
nsz 866185
D(M_PI_2)
nsz 866185
D(M_PI_4)
nsz 866185
D(M_1_PI)
nsz 866185
D(M_2_PI)
nsz 866185
D(M_2_SQRTPI)
nsz 866185
D(M_SQRT2)
nsz 866185
D(M_SQRT1_2)
nsz 866185
D(MAXFLOAT)
nsz 866185
#endif
nsz 866185
D(HUGE_VAL)
nsz 866185
D(HUGE_VALF)
nsz 866185
D(HUGE_VALL)
nsz 866185
D(INFINITY)
nsz 866185
D(NAN)
nsz 866185
C(FP_INFINITE)
nsz 866185
C(FP_NAN)
nsz 866185
C(FP_NORMAL)
nsz 866185
C(FP_SUBNORMAL)
nsz 866185
C(FP_ZERO)
nsz 866185
C(FP_ILOGB0)
nsz 866185
C(FP_ILOGBNAN)
nsz 866185
C(MATH_ERRNO)
nsz 866185
C(MATH_ERREXCEPT)
nsz 866185
C(math_errhandling)
nsz 866185
double(*p_acos)(double) = acos;
nsz 866185
float(*p_acosf)(float) = acosf;
nsz 866185
double(*p_acosh)(double) = acosh;
nsz 866185
float(*p_acoshf)(float) = acoshf;
nsz 866185
long double(*p_acoshl)(long double) = acoshl;
nsz 866185
long double(*p_acosl)(long double) = acosl;
nsz 866185
double(*p_asin)(double) = asin;
nsz 866185
float(*p_asinf)(float) = asinf;
nsz 866185
double(*p_asinh)(double) = asinh;
nsz 866185
float(*p_asinhf)(float) = asinhf;
nsz 866185
long double(*p_asinhl)(long double) = asinhl;
nsz 866185
long double(*p_asinl)(long double) = asinl;
nsz 866185
double(*p_atan)(double) = atan;
nsz 866185
double(*p_atan2)(double,double) = atan2;
nsz 866185
float(*p_atan2f)(float,float) = atan2f;
nsz 866185
long double(*p_atan2l)(long double,long double) = atan2l;
nsz 866185
float(*p_atanf)(float) = atanf;
nsz 866185
double(*p_atanh)(double) = atanh;
nsz 866185
float(*p_atanhf)(float) = atanhf;
nsz 866185
long double(*p_atanhl)(long double) = atanhl;
nsz 866185
long double(*p_atanl)(long double) = atanl;
nsz 866185
double(*p_cbrt)(double) = cbrt;
nsz 866185
float(*p_cbrtf)(float) = cbrtf;
nsz 866185
long double(*p_cbrtl)(long double) = cbrtl;
nsz 866185
double(*p_ceil)(double) = ceil;
nsz 866185
float(*p_ceilf)(float) = ceilf;
nsz 866185
long double(*p_ceill)(long double) = ceill;
nsz 866185
double(*p_copysign)(double,double) = copysign;
nsz 866185
float(*p_copysignf)(float,float) = copysignf;
nsz 866185
long double(*p_copysignl)(long double,long double) = copysignl;
nsz 866185
double(*p_cos)(double) = cos;
nsz 866185
float(*p_cosf)(float) = cosf;
nsz 866185
double(*p_cosh)(double) = cosh;
nsz 866185
float(*p_coshf)(float) = coshf;
nsz 866185
long double(*p_coshl)(long double) = coshl;
nsz 866185
long double(*p_cosl)(long double) = cosl;
nsz 866185
double(*p_erf)(double) = erf;
nsz 866185
double(*p_erfc)(double) = erfc;
nsz 866185
float(*p_erfcf)(float) = erfcf;
nsz 866185
long double(*p_erfcl)(long double) = erfcl;
nsz 866185
float(*p_erff)(float) = erff;
nsz 866185
long double(*p_erfl)(long double) = erfl;
nsz 866185
double(*p_exp)(double) = exp;
nsz 866185
double(*p_exp2)(double) = exp2;
nsz 866185
float(*p_exp2f)(float) = exp2f;
nsz 866185
long double(*p_exp2l)(long double) = exp2l;
nsz 866185
float(*p_expf)(float) = expf;
nsz 866185
long double(*p_expl)(long double) = expl;
nsz 866185
double(*p_expm1)(double) = expm1;
nsz 866185
float(*p_expm1f)(float) = expm1f;
nsz 866185
long double(*p_expm1l)(long double) = expm1l;
nsz 866185
double(*p_fabs)(double) = fabs;
nsz 866185
float(*p_fabsf)(float) = fabsf;
nsz 866185
long double(*p_fabsl)(long double) = fabsl;
nsz 866185
double(*p_fdim)(double,double) = fdim;
nsz 866185
float(*p_fdimf)(float,float) = fdimf;
nsz 866185
long double(*p_fdiml)(long double,long double) = fdiml;
nsz 866185
double(*p_floor)(double) = floor;
nsz 866185
float(*p_floorf)(float) = floorf;
nsz 866185
long double(*p_floorl)(long double) = floorl;
nsz 866185
double(*p_fma)(double,double,double) = fma;
nsz 866185
float(*p_fmaf)(float,float,float) = fmaf;
nsz 866185
long double(*p_fmal)(long double,long double,long double) = fmal;
nsz 866185
double(*p_fmax)(double,double) = fmax;
nsz 866185
float(*p_fmaxf)(float,float) = fmaxf;
nsz 866185
long double(*p_fmaxl)(long double,long double) = fmaxl;
nsz 866185
double(*p_fmin)(double,double) = fmin;
nsz 866185
float(*p_fminf)(float,float) = fminf;
nsz 866185
long double(*p_fminl)(long double,long double) = fminl;
nsz 866185
double(*p_fmod)(double,double) = fmod;
nsz 866185
float(*p_fmodf)(float,float) = fmodf;
nsz 866185
long double(*p_fmodl)(long double,long double) = fmodl;
nsz 866185
double(*p_frexp)(double,int*) = frexp;
nsz 866185
float(*p_frexpf)(float,int*) = frexpf;
nsz 866185
long double(*p_frexpl)(long double,int*) = frexpl;
nsz 866185
double(*p_hypot)(double,double) = hypot;
nsz 866185
float(*p_hypotf)(float,float) = hypotf;
nsz 866185
long double(*p_hypotl)(long double,long double) = hypotl;
nsz 866185
int(*p_ilogb)(double) = ilogb;
nsz 866185
int(*p_ilogbf)(float) = ilogbf;
nsz 866185
int(*p_ilogbl)(long double) = ilogbl;
nsz 866185
#ifdef _XOPEN_SOURCE
nsz 866185
double(*p_j0)(double) = j0;
nsz 866185
double(*p_j1)(double) = j1;
nsz 866185
double(*p_jn)(int,double) = jn;
nsz 866185
#endif
nsz 866185
double(*p_ldexp)(double,int) = ldexp;
nsz 866185
float(*p_ldexpf)(float,int) = ldexpf;
nsz 866185
long double(*p_ldexpl)(long double,int) = ldexpl;
nsz 866185
double(*p_lgamma)(double) = lgamma;
nsz 866185
float(*p_lgammaf)(float) = lgammaf;
nsz 866185
long double(*p_lgammal)(long double) = lgammal;
nsz 866185
long long(*p_llrint)(double) = llrint;
nsz 866185
long long(*p_llrintf)(float) = llrintf;
nsz 866185
long long(*p_llrintl)(long double) = llrintl;
nsz 866185
long long(*p_llround)(double) = llround;
nsz 866185
long long(*p_llroundf)(float) = llroundf;
nsz 866185
long long(*p_llroundl)(long double) = llroundl;
nsz 866185
double(*p_log)(double) = log;
nsz 866185
double(*p_log10)(double) = log10;
nsz 866185
float(*p_log10f)(float) = log10f;
nsz 866185
long double(*p_log10l)(long double) = log10l;
nsz 866185
double(*p_log1p)(double) = log1p;
nsz 866185
float(*p_log1pf)(float) = log1pf;
nsz 866185
long double(*p_log1pl)(long double) = log1pl;
nsz 866185
double(*p_log2)(double) = log2;
nsz 866185
float(*p_log2f)(float) = log2f;
nsz 866185
long double(*p_log2l)(long double) = log2l;
nsz 866185
double(*p_logb)(double) = logb;
nsz 866185
float(*p_logbf)(float) = logbf;
nsz 866185
long double(*p_logbl)(long double) = logbl;
nsz 866185
float(*p_logf)(float) = logf;
nsz 866185
long double(*p_logl)(long double) = logl;
nsz 866185
long(*p_lrint)(double) = lrint;
nsz 866185
long(*p_lrintf)(float) = lrintf;
nsz 866185
long(*p_lrintl)(long double) = lrintl;
nsz 866185
long(*p_lround)(double) = lround;
nsz 866185
long(*p_lroundf)(float) = lroundf;
nsz 866185
long(*p_lroundl)(long double) = lroundl;
nsz 866185
double(*p_modf)(double,double*) = modf;
nsz 866185
float(*p_modff)(float,float*) = modff;
nsz 866185
long double(*p_modfl)(long double,long double*) = modfl;
nsz 866185
double(*p_nan)(const char*) = nan;
nsz 866185
float(*p_nanf)(const char*) = nanf;
nsz 866185
long double(*p_nanl)(const char*) = nanl;
nsz 866185
double(*p_nearbyint)(double) = nearbyint;
nsz 866185
float(*p_nearbyintf)(float) = nearbyintf;
nsz 866185
long double(*p_nearbyintl)(long double) = nearbyintl;
nsz 866185
double(*p_nextafter)(double,double) = nextafter;
nsz 866185
float(*p_nextafterf)(float,float) = nextafterf;
nsz 866185
long double(*p_nextafterl)(long double,long double) = nextafterl;
nsz 866185
double(*p_nexttoward)(double,long double) = nexttoward;
nsz 866185
float(*p_nexttowardf)(float,long double) = nexttowardf;
nsz 866185
long double(*p_nexttowardl)(long double,long double) = nexttowardl;
nsz 866185
double(*p_pow)(double,double) = pow;
nsz 866185
float(*p_powf)(float,float) = powf;
nsz 866185
long double(*p_powl)(long double,long double) = powl;
nsz 866185
double(*p_remainder)(double,double) = remainder;
nsz 866185
float(*p_remainderf)(float,float) = remainderf;
nsz 866185
long double(*p_remainderl)(long double,long double) = remainderl;
nsz 866185
double(*p_remquo)(double,double,int*) = remquo;
nsz 866185
float(*p_remquof)(float,float,int*) = remquof;
nsz 866185
long double(*p_remquol)(long double,long double,int*) = remquol;
nsz 866185
double(*p_rint)(double) = rint;
nsz 866185
float(*p_rintf)(float) = rintf;
nsz 866185
long double(*p_rintl)(long double) = rintl;
nsz 866185
double(*p_round)(double) = round;
nsz 866185
float(*p_roundf)(float) = roundf;
nsz 866185
long double(*p_roundl)(long double) = roundl;
nsz 866185
double(*p_scalbln)(double,long) = scalbln;
nsz 866185
float(*p_scalblnf)(float,long) = scalblnf;
nsz 866185
long double(*p_scalblnl)(long double,long) = scalblnl;
nsz 866185
double(*p_scalbn)(double,int) = scalbn;
nsz 866185
float(*p_scalbnf)(float,int) = scalbnf;
nsz 866185
long double(*p_scalbnl)(long double,int) = scalbnl;
nsz 866185
double(*p_sin)(double) = sin;
nsz 866185
float(*p_sinf)(float) = sinf;
nsz 866185
double(*p_sinh)(double) = sinh;
nsz 866185
float(*p_sinhf)(float) = sinhf;
nsz 866185
long double(*p_sinhl)(long double) = sinhl;
nsz 866185
long double(*p_sinl)(long double) = sinl;
nsz 866185
double(*p_sqrt)(double) = sqrt;
nsz 866185
float(*p_sqrtf)(float) = sqrtf;
nsz 866185
long double(*p_sqrtl)(long double) = sqrtl;
nsz 866185
double(*p_tan)(double) = tan;
nsz 866185
float(*p_tanf)(float) = tanf;
nsz 866185
double(*p_tanh)(double) = tanh;
nsz 866185
float(*p_tanhf)(float) = tanhf;
nsz 866185
long double(*p_tanhl)(long double) = tanhl;
nsz 866185
long double(*p_tanl)(long double) = tanl;
nsz 866185
double(*p_tgamma)(double) = tgamma;
nsz 866185
float(*p_tgammaf)(float) = tgammaf;
nsz 866185
long double(*p_tgammal)(long double) = tgammal;
nsz 866185
double(*p_trunc)(double) = trunc;
nsz 866185
float(*p_truncf)(float) = truncf;
nsz 866185
long double(*p_truncl)(long double) = truncl;
nsz 866185
#ifdef _XOPEN_SOURCE
nsz 866185
double(*p_y0)(double) = y0;
nsz 866185
double(*p_y1)(double) = y1;
nsz 866185
double(*p_yn)(int,double) = yn;
nsz 866185
#endif
nsz 866185
}