1 unstable release
| 0.1.0 | Apr 27, 2026 |
|---|
#2899 in Math
Used in aocl
48KB
1K
SLoC
Safe Rust wrappers for AOCL-LibM — comprehensive scalar math, AMD-tuned.
Covers the entire AOCL-LibM scalar API: trig + inverse trig + atan2; hyperbolic + inverse hyperbolic; exp / log family (exp, exp2, exp10, expm1, log, log2, log10, log1p, logb, ilogb); power family (pow, sqrt, cbrt, hypot); floor/ceil/round/trunc/rint/nearbyint and their integer variants (lrint, llrint, lround, llround); fmod / remainder / remquo; frexp / ldexp / scalbn / scalbln / modf; nextafter / copysign / fdim / fmin / fmax; finite check; erf; complex cexp / cpow / clog (via aocl_types::Complex32 / Complex64).
Each f32 entry point forwards to the corresponding amd_*f symbol;
complex routines accept and return our aocl_types::Complex32 /
aocl_types::Complex64 (ABI-equivalent to AOCL's fc32_t / fc64_t
storage layout { _Val: [f, 2] }).
aocl-math
Safe Rust wrappers for AOCL-LibM — AMD-tuned scalar transcendental math.
Built on top of aocl-math-sys.
Dual-licensed under MIT or Apache-2.0.
Dependencies
~0.1–2.4MB
~48K SLoC