#ffi #audio #trigonometry

sys sleef-trig-sys

Bindings to a few sleef.org trigonometric functions

1 unstable release

0.1.0 Oct 1, 2022

#10 in #trigonometry


Used in sleef-trig

BSL-1.0 license

185KB
75 lines

sleef-trig-sys

Bindings to some SLEEF trigonometric functions:

  • Sleef_sinf1_u35purec
  • Sleef_cosf1_u35purec
  • Sleef_sind1_u35purec
  • Sleef_sind2_u35sse2
  • Sleef_sind4_u35avx

Please note that SIMD FFI is unstable and relies on undefined behaviour.

The purpose of this crate is to enable correctness testing of sleef-trig, a Rust port of some of the above functions. I recommend using it instead of this crate due to the aformentioned soundness issues.

No runtime deps