fdlibm-rs

Crates.iofdlibm-rs
lib.rsfdlibm-rs
version0.1.0
sourcesrc
created_at2023-09-29 16:24:52.699866
updated_at2023-09-29 16:24:52.699866
descriptionrust wrapper of FDLIBM, a C math library for machines that support IEEE-754 floating-point arithmetic.
homepagehttps://github.com/mtb0x1/fdlibm-rs
repositoryhttps://github.com/mtb0x1/fdlibm-rs
max_upload_size
id987579
size399,091
mtb (mtb0x1)

documentation

README

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

  1. This lib is currently in beta version, some of functions doesn't have unit tests and some are buggy (gamme).
  2. Other modes decribed in fdlibm are not supported yet.

Todo

  1. Avoid using std::, instead use core:: when possible.
  2. Support other targets (currently only x86_64-unknown-linux-gnu is supported)
  3. Support other Modes.
  4. Benchmarks.
Commit count: 36

cargo fmt