math Reference
File
lib/c99/include/c99/math.h
Date
Wednesday, June 25, 2014
Includes
- <system/types/flt_eval_method.h>
- <system/types/float_t.h>
- <system/types/double_t.h>
Tasks
__XEOS_Lib_C99_Math_errhandling
extern int __XEOS_Lib_C99_Math_errhandling(
void );
__XEOS_Lib_C99_Math_fpclassify_d
extern int __XEOS_Lib_C99_Math_fpclassify_d(
double x );
__XEOS_Lib_C99_Math_fpclassify_f
extern int __XEOS_Lib_C99_Math_fpclassify_f(
float x );
__XEOS_Lib_C99_Math_fpclassify_l
extern int __XEOS_Lib_C99_Math_fpclassify_l(
long double x );
__XEOS_Lib_C99_Math_isfinite_d
extern int __XEOS_Lib_C99_Math_isfinite_d(
double x );
__XEOS_Lib_C99_Math_isfinite_f
extern int __XEOS_Lib_C99_Math_isfinite_f(
float x );
__XEOS_Lib_C99_Math_isfinite_l
extern int __XEOS_Lib_C99_Math_isfinite_l(
long double x );
__XEOS_Lib_C99_Math_isgreater
extern int __XEOS_Lib_C99_Math_isgreater(
long double x,
long double y );
__XEOS_Lib_C99_Math_isinf_d
extern int __XEOS_Lib_C99_Math_isinf_d(
double x );
__XEOS_Lib_C99_Math_isinf_f
extern int __XEOS_Lib_C99_Math_isinf_f(
float x );
__XEOS_Lib_C99_Math_isinf_l
extern int __XEOS_Lib_C99_Math_isinf_l(
long double x );
__XEOS_Lib_C99_Math_isless
extern int __XEOS_Lib_C99_Math_isless(
long double x,
long double y );
__XEOS_Lib_C99_Math_islessequal
extern int __XEOS_Lib_C99_Math_islessequal(
long double x,
long double y );
__XEOS_Lib_C99_Math_islessgreater
extern int __XEOS_Lib_C99_Math_islessgreater(
long double x,
long double y );
__XEOS_Lib_C99_Math_isnan_d
extern int __XEOS_Lib_C99_Math_isnan_d(
double x );
__XEOS_Lib_C99_Math_isnan_f
extern int __XEOS_Lib_C99_Math_isnan_f(
float x );
__XEOS_Lib_C99_Math_isnan_l
extern int __XEOS_Lib_C99_Math_isnan_l(
long double x );
__XEOS_Lib_C99_Math_isnormal_d
extern int __XEOS_Lib_C99_Math_isnormal_d(
double x );
__XEOS_Lib_C99_Math_isnormal_f
extern int __XEOS_Lib_C99_Math_isnormal_f(
float x );
__XEOS_Lib_C99_Math_isnormal_l
extern int __XEOS_Lib_C99_Math_isnormal_l(
long double x );
__XEOS_Lib_C99_Math_isunordered
extern int __XEOS_Lib_C99_Math_isunordered(
long double x,
long double y );
__XEOS_Lib_C99_Math_signbit_d
extern int __XEOS_Lib_C99_Math_signbit_d(
double x );
__XEOS_Lib_C99_Math_signbit_f
extern int __XEOS_Lib_C99_Math_signbit_f(
float x );
__XEOS_Lib_C99_Math_signbit_l
extern int __XEOS_Lib_C99_Math_signbit_l(
long double x );
acos
double acos(
double x );
acosf
float acosf(
float x );
acosh
double acosh(
double x );
acoshf
float acoshf(
float x );
acoshl
long double acoshl(
long double x );
acosl
long double acosl(
long double x );
asin
double asin(
double x );
asinf
float asinf(
float x );
asinh
double asinh(
double x );
asinhf
float asinhf(
float x );
asinhl
long double asinhl(
long double x );
asinl
long double asinl(
long double x );
atan
double atan(
double x );
atan2
double atan2(
double y,
double x );
atan2f
float atan2f(
float y,
float x );
atan2l
long double atan2l(
long double y,
long double x );
atanf
float atanf(
float x );
atanh
double atanh(
double x );
atanhf
float atanhf(
float x );
atanhl
long double atanhl(
long double x );
atanl
long double atanl(
long double x );
cbrt
double cbrt(
double x );
cbrtf
float cbrtf(
float x );
cbrtl
long double cbrtl(
long double x );
ceil
double ceil(
double x );
ceilf
float ceilf(
float x );
ceill
long double ceill(
long double x );
copysign
double copysign(
double x,
double y );
copysignf
float copysignf(
float x,
float y );
copysignl
long double copysignl(
long double x,
long double y );
cos
double cos(
double x );
cosf
float cosf(
float x );
cosh
double cosh(
double x );
coshf
float coshf(
float x );
coshl
long double coshl(
long double x );
cosl
long double cosl(
long double x );
erf
double erf(
double x );
erfc
double erfc(
double x );
erfcf
float erfcf(
float x );
erfcl
long double erfcl(
long double x );
erff
float erff(
float x );
erfl
long double erfl(
long double x );
exp
double exp(
double x );
exp2
double exp2(
double x );
exp2f
float exp2f(
float x );
exp2l
long double exp2l(
long double x );
expf
float expf(
float x );
expl
long double expl(
long double x );
expm1
double expm1(
double x );
expm1f
float expm1f(
float x );
expm1l
long double expm1l(
long double x );
fabs
double fabs(
double x );
fabsf
float fabsf(
float x );
fabsl
long double fabsl(
long double x );
fdim
double fdim(
double x,
double y );
fdimf
float fdimf(
float x,
float y );
fdiml
long double fdiml(
long double x,
long double y );
floor
double floor(
double x );
floorf
float floorf(
float x );
floorl
long double floorl(
long double x );
fma
double fma(
double x,
double y,
double z );
fmaf
float fmaf(
float x,
float y,
float z );
fmal
long double fmal(
long double x,
long double y,
long double z );
fmax
double fmax(
double x,
double y );
fmaxf
float fmaxf(
float x,
float y );
fmaxl
long double fmaxl(
long double x,
long double y );
fmin
double fmin(
double x,
double y );
fminf
float fminf(
float x,
float y );
fminl
long double fminl(
long double x,
long double y );
fmod
double fmod(
double x,
double y );
fmodf
float fmodf(
float x,
float y );
fmodl
long double fmodl(
long double x,
long double y );
frexp
double frexp(
double value,
int *exp );
frexpf
float frexpf(
float value,
int *exp );
frexpl
long double frexpl(
long double value,
int *exp );
hypot
double hypot(
double x,
double y );
hypotf
float hypotf(
float x,
float y );
hypotl
long double hypotl(
long double x,
long double y );
ilogb
int ilogb(
double x );
ilogbf
int ilogbf(
float x );
ilogbl
int ilogbl(
long double x );
ldexp
double ldexp(
double x,
int exp );
ldexpf
float ldexpf(
float x,
int exp );
ldexpl
long double ldexpl(
long double x,
int exp );
lgamma
double lgamma(
double x );
lgammaf
float lgammaf(
float x );
lgammal
long double lgammal(
long double x );
llrint
long long int llrint(
double x );
llrintf
long long int llrintf(
float x );
llrintl
long long int llrintl(
long double x );
llround
long long int llround(
double x );
llroundf
long long int llroundf(
float x );
llroundl
long long int llroundl(
long double x );
log
double log(
double x );
log10
double log10(
double x );
log10f
float log10f(
float x );
log10l
long double log10l(
long double x );
log1p
double log1p(
double x );
log1pf
float log1pf(
float x );
log1pl
long double log1pl(
long double x );
log2
double log2(
double x );
log2f
float log2f(
float x );
log2l
long double log2l(
long double x );
logb
double logb(
double x );
logbf
float logbf(
float x );
logbl
long double logbl(
long double x );
logf
float logf(
float x );
logl
long double logl(
long double x );
lrint
long int lrint(
double x );
lrintf
long int lrintf(
float x );
lrintl
long int lrintl(
long double x );
lround
long int lround(
double x );
lroundf
long int lroundf(
float x );
lroundl
long int lroundl(
long double x );
modf
double modf(
double value,
double *iptr );
modff
float modff(
float value,
float *iptr );
modfl
long double modfl(
long double value,
long double *iptr );
nan
double nan(
const char *tagp );
nanf
float nanf(
const char *tagp );
nanl
long double nanl(
const char *tagp );
nearbyint
double nearbyint(
double x );
nearbyintf
float nearbyintf(
float x );
nearbyintl
long double nearbyintl(
long double x );
nextafter
double nextafter(
double x,
double y );
nextafterf
float nextafterf(
float x,
float y );
nextafterl
long double nextafterl(
long double x,
long double y );
nexttoward
double nexttoward(
double x,
long double y );
nexttowardf
float nexttowardf(
float x,
long double y );
nexttowardl
long double nexttowardl(
long double x,
long double y );
pow
double pow(
double x,
double y );
powf
float powf(
float x,
float y );
powl
long double powl(
long double x,
long double y );
remainder
double remainder(
double x,
double y );
remainderf
float remainderf(
float x,
float y );
remainderl
long double remainderl(
long double x,
long double y );
remquo
double remquo(
double x,
double y,
int *quo );
remquof
float remquof(
float x,
float y,
int *quo );
remquol
long double remquol(
long double x,
long double y,
int *quo );
rint
double rint(
double x );
rintf
float rintf(
float x );
rintl
long double rintl(
long double x );
round
double round(
double x );
roundf
float roundf(
float x );
roundl
long double roundl(
long double x );
scalbln
double scalbln(
double x,
long int n );
scalblnf
float scalblnf(
float x,
long int n );
scalblnl
long double scalblnl(
long double x,
long int n );
scalbn
double scalbn(
double x,
int n );
scalbnf
float scalbnf(
float x,
int n );
scalbnl
long double scalbnl(
long double x,
int n );
sin
double sin(
double x );
sinf
float sinf(
float x );
sinh
double sinh(
double x );
sinhf
float sinhf(
float x );
sinhl
long double sinhl(
long double x );
sinl
long double sinl(
long double x );
sqrt
double sqrt(
double x );
sqrtf
float sqrtf(
float x );
sqrtl
long double sqrtl(
long double x );
tan
double tan(
double x );
tanf
float tanf(
float x );
tanh
double tanh(
double x );
tanhf
float tanhf(
float x );
tanhl
long double tanhl(
long double x );
tanl
long double tanl(
long double x );
tgamma
double tgamma(
double x );
tgammaf
float tgammaf(
float x );
tgammal
long double tgammal(
long double x );
trunc
double trunc(
double x );
truncf
float truncf(
float x );
truncl
long double truncl(
long double x );
Macros
__XEOS_LIB_C99_MATH_H__
#define __XEOS_LIB_C99_MATH_H__
FP_ILOGB0
#define FP_ILOGB0 ( -2147483647 - 1 )
FP_ILOGBNAN
#define FP_ILOGBNAN ( -2147483647 - 1 )
FP_INFINITE
#define FP_INFINITE 1
FP_NORMAL
#define FP_NORMAL 3
FP_SUBNORMAL
#define FP_SUBNORMAL 4
FP_ZERO
#define FP_ZERO 5
fpclassify
#define fpclassify( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_fpclassify_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_fpclassify_d( _x_ ) : \
__XEOS_Lib_C99_Math_fpclassify_l( _x_ ) \
)
HUGE_VAL
#define HUGE_VAL 1e500
HUGE_VALF
#define HUGE_VALF 1e50f
HUGE_VALL
#define HUGE_VALL 1e5000L
INFINITY
#define INFINITY HUGE_VALF
isfinite
#define isfinite( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_isfinite_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_isfinite_d( _x_ ) : \
__XEOS_Lib_C99_Math_isfinite_l( _x_ ) \
)
isgreater
#define isgreater( _x_, _y_ ) __XEOS_Lib_C99_Math_isgreater( ( long double )( _x_ ), ( long double )( _y_ ) )
isinf
#define isinf( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_isinf_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_isinf_d( _x_ ) : \
__XEOS_Lib_C99_Math_isinf_l( _x_ ) \
)
isless
#define isless( _x_, _y_ ) __XEOS_Lib_C99_Math_isless( ( long double )( _x_ ), ( long double )( _y_ ) )
islessequal
#define islessequal( _x_, _y_ ) __XEOS_Lib_C99_Math_islessequal( ( long double )( _x_ ), ( long double )( _y_ ) )
islessgreater
#define islessgreater( _x_, _y_ ) __XEOS_Lib_C99_Math_islessgreater( ( long double )( _x_ ), ( long double )( _y_ ) )
isnan
#define isnan( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_isnan_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_isnan_d( _x_ ) : \
__XEOS_Lib_C99_Math_isnan_l( _x_ ) \
)
isnormal
#define isnormal( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_isnormal_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_isnormal_d( _x_ ) : \
__XEOS_Lib_C99_Math_isnormal_l( _x_ ) \
)
isunordered
#define isunordered( _x_, _y_ ) __XEOS_Lib_C99_Math_isunordered( ( long double )( _x_ ), ( long double )( _y_ ) )
MATH_ERREXCEPT
#define MATH_ERREXCEPT 2
math_errhandling
#define math_errhandling ( __XEOS_Lib_C99_Math_errhandling() )
MATH_ERRNO
#define MATH_ERRNO 1
NAN
#define NAN ( nanf() )
signbit
#define signbit( _x_ ) \
( \
( sizeof( _x_ ) == sizeof( float ) ) ? __XEOS_Lib_C99_Math_signbit_f( _x_ ) : \
( sizeof( _x_ ) == sizeof( double ) ) ? __XEOS_Lib_C99_Math_signbit_d( _x_ ) : \
__XEOS_Lib_C99_Math_signbit_l( _x_ ) \
)