1 unstable release
0.1.0 | Sep 29, 2023 |
---|
#11 in #ieee-754
270KB
5.5K
SLoC
Contains (autotools obfuscated code, 98KB) fdlibm/configure
Fdlibm-rs
This crate is a rust wrapper of fdlibm.
Usage
Run the following Cargo command in your project directory:
cargo add fdlibm-rs
use fdlibm_rs::sin;
let value = unsafe {sin(1.0)};
println!("sin(1)={}",value);
Disclaimer
- This lib is currently in beta version, some of functions doesn't have unit tests and some are buggy (
gamme
). - Other modes decribed in fdlibm are not supported yet.
Todo
- Avoid using
std::
, instead usecore::
when possible. - Support other targets (currently only
x86_64-unknown-linux-gnu
is supported) - Support other Modes.
- Benchmarks.
No runtime deps
~0–2.5MB
~42K SLoC