Skip to main content

Crate core_math_sys

Crate core_math_sys 

Source
Expand description

§core-math-sys

Crates.io Documentation Build status

Generated bindings to CORE-MATH

CORE-MATH is a correctly rounded mathematical library in C. Correct rounding is the theoretical accuracy and beats most old C libraries such as glibc. Meanwhile, its speed is competitive with the most popular C libraries, even faster most of the time.

This crate provides the raw bindings to the CORE-MATH library. It is recommended to use the core-math crate directly instead, which provides a safe Rusty interface.

§Cargo features

The default build exposes the f32 and f64 functions and works on stable Rust (1.85+). Functions on more exotic types are opt-in because their Rust primitives are unstable and their C types need a recent compiler:

  • f16 — binary16 functions (cr_*f16, 43 functions). Requires nightly Rust for the unstable f16 primitive, and GCC 12+ or Clang 17+ (the C sources need _Float16 and __builtin_roundeven).
  • f128 — binary128 functions (cr_*q, 15 functions). Requires nightly Rust for the unstable f128 primitive, and Clang 15+ or GCC 14+ (the C sources use __builtin_addcl).

Statics§

signgam
Sign of the gamma function, set by cr_lgamma and cr_lgammaf

Functions§

cr_acos⚠
cr_acosf⚠
cr_acosf16⚠
cr_acosh⚠
cr_acoshf⚠
cr_acoshf16⚠
cr_acospi⚠
cr_acospif⚠
cr_acospif16⚠
cr_acosq⚠
cr_asin⚠
cr_asinf⚠
cr_asinf16⚠
cr_asinh⚠
cr_asinhf⚠
cr_asinhf16⚠
cr_asinpi⚠
cr_asinpif⚠
cr_asinpif16⚠
cr_asinq⚠
cr_atan⚠
cr_atan2⚠
cr_atan2f⚠
cr_atan2f16⚠
cr_atan2pi⚠
cr_atan2pif⚠
cr_atan2pif16⚠
cr_atan2q⚠
cr_atanf⚠
cr_atanf16⚠
cr_atanh⚠
cr_atanhf⚠
cr_atanhf16⚠
cr_atanpi⚠
cr_atanpif⚠
cr_atanpif16⚠
cr_atanq⚠
cr_cbrt⚠
cr_cbrtf⚠
cr_cbrtf16⚠
cr_cbrtq⚠
cr_compoundf⚠
cr_compoundf16⚠
cr_cos⚠
cr_cosf⚠
cr_cosf16⚠
cr_cosh⚠
cr_coshf⚠
cr_coshf16⚠
cr_cospi⚠
cr_cospif⚠
cr_cospif16⚠
cr_cosq⚠
cr_erf⚠
cr_erfc⚠
cr_erfcf⚠
cr_erfcf16⚠
cr_erff⚠
cr_erff16⚠
cr_exp⚠
cr_exp2⚠
cr_exp2f⚠
cr_exp2f16⚠
cr_exp2m1⚠
cr_exp2m1f⚠
cr_exp2m1f16⚠
cr_exp2q⚠
cr_exp10⚠
cr_exp10f⚠
cr_exp10f16⚠
cr_exp10m1⚠
cr_exp10m1f⚠
cr_exp10m1f16⚠
cr_exp10q⚠
cr_expf⚠
cr_expf16⚠
cr_expm1⚠
cr_expm1f⚠
cr_expm1f16⚠
cr_expm1q⚠
cr_expq⚠
cr_hypot⚠
cr_hypotf⚠
cr_hypotf16⚠
cr_hypotq⚠
cr_lgamma⚠
cr_lgammaf⚠
cr_lgammaf16⚠
cr_log⚠
cr_log2⚠
cr_log1p⚠
cr_log1pf⚠
cr_log1pf16⚠
cr_log2f⚠
cr_log2f16⚠
cr_log2p1⚠
cr_log2p1f⚠
cr_log2p1f16⚠
cr_log10⚠
cr_log10f⚠
cr_log10f16⚠
cr_log10p1⚠
cr_log10p1f⚠
cr_log10p1f16⚠
cr_logf⚠
cr_logf16⚠
cr_logq⚠
cr_pow⚠
cr_powf⚠
cr_powf16⚠
cr_rsqrt⚠
cr_rsqrtf⚠
cr_rsqrtf16⚠
cr_rsqrtq⚠
cr_sin⚠
cr_sincos⚠
cr_sincosf⚠
cr_sincosf16⚠
cr_sinf⚠
cr_sinf16⚠
cr_sinh⚠
cr_sinhf⚠
cr_sinhf16⚠
cr_sinpi⚠
cr_sinpif⚠
cr_sinpif16⚠
cr_sinq⚠
cr_sqrtf16⚠
cr_sqrtq⚠
cr_tan⚠
cr_tanf⚠
cr_tanf16⚠
cr_tanh⚠
cr_tanhf⚠
cr_tanhf16⚠
cr_tanpi⚠
cr_tanpif⚠
cr_tanpif16⚠
cr_tgamma⚠
cr_tgammaf⚠
cr_tgammaf16⚠