Fast math library in C, collections of approximated math functions where it sacrifices some accuracy for performance
it works similar to standard math like sqrt(x), sqrtf(x), cfm_sqrt(x), cfm_sqrtf(x)
but it is only implemented for float and double
- Graphics Programming
- Embedded Systems
- Game develeopment
inf/nan :
cfm_inf,cfm_inff,cfm_nan,cfm_nanf
logarithm :
cfm_log,cfm_logf,cfm_log2,cfm_log2f
exponential :
cfm_exp,cfm_expf,cfm_exp2,cfm_exp2f,cfm_pow,cfm_powf
trigonometry :
cfm_sin,cfm_sinf,cfm_cos,cfm_cosf,cfm_tan,cfm_tanf,cfm_sincos,cfm_sincosf,cfm_asin,cfm_asinf,cfm_acos,cfm_acosf,cfm_atan,cfm_atanf,cfm_atan2,cfm_atan2f
hyperbolic trigonometry :
cfm_sinh,cfm_sinhf,cfm_cosh,cfm_coshf,cfm_tanh,cfm_tanhf,cfm_asinh,cfm_asinhf,cfm_acosh,cfm_acoshf,cfm_atanh,cfm_atanhf
rounding :
cfm_trunc,cfm_truncf,cfm_ceil,cfm_ceilf,cfm_floor,cfm_floorf,cfm_round,cfm_roundf
remainder :
cfm_fmod,cfm_fmodf,cfm_drem,cfm_dremf
scaling :
cfm_scalbn,cfm_scalbnf,cfm_scalb,cfm_scalbf
roots :
cfm_sqrt,cfm_sqrtf,cfm_cbrt,cfm_cbrtf,cfm_hypot,cfm_hypotf
floating point :
cfm_frexp,cfm_frexpf,cfm_ldexp,cfm_ldexpf,cfm_significand,cfm_significandf,cfm_logb,cfm_logbf,cfm_ilogb,cfm_ilogbf
error functions :
cfm_erf,cfm_erff,cfm_erfc,cfm_erfcf
special functions :
cfm_fdim,cfm_fdimf,cfm_fma,cfm_fmaf,cfm_copysign,cfm_copysignf,cfm_tgamma,cfm_tgammaf,cfm_lgamma,cfm_lgammaf,cfm_fabs,cfm_fabsf