Expand description
§core-math-sys
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 unstablef16primitive, and GCC 12+ or Clang 17+ (the C sources need_Float16and__builtin_roundeven).f128— binary128 functions (cr_*q, 9 functions). Requires nightly Rust for the unstablef128primitive, and Clang 15+ or GCC 14+ (the C sources use__builtin_addcl).
Statics§
Functions§
- cr_acos⚠
- cr_
acosf ⚠ - cr_
acosf16 ⚠ - cr_
acosh ⚠ - cr_
acoshf ⚠ - cr_
acoshf16 ⚠ - cr_
acospi ⚠ - cr_
acospif ⚠ - cr_
acospif16 ⚠ - cr_asin⚠
- cr_
asinf ⚠ - cr_
asinf16 ⚠ - cr_
asinh ⚠ - cr_
asinhf ⚠ - cr_
asinhf16 ⚠ - cr_
asinpi ⚠ - cr_
asinpif ⚠ - cr_
asinpif16 ⚠ - cr_atan⚠
- cr_
atan2 ⚠ - cr_
atan2f ⚠ - cr_
atan2f16 ⚠ - cr_
atan2pi ⚠ - cr_
atan2pif ⚠ - cr_
atan2pif16 ⚠ - cr_
atanf ⚠ - cr_
atanf16 ⚠ - cr_
atanh ⚠ - cr_
atanhf ⚠ - cr_
atanhf16 ⚠ - cr_
atanpi ⚠ - cr_
atanpif ⚠ - cr_
atanpif16 ⚠ - 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_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_
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 ⚠