7 releases

✓ Uses Rust 2018 edition

0.2.1 Nov 22, 2019
0.2.0 Nov 20, 2019
0.1.4 Jun 12, 2019
0.1.3 May 14, 2019
0.1.2 Jul 18, 2018

#17 in No standard library

Download history 11753/week @ 2019-12-02 10581/week @ 2019-12-09 10048/week @ 2019-12-16 5327/week @ 2019-12-23 5374/week @ 2019-12-30 9251/week @ 2020-01-06 16489/week @ 2020-01-13 24749/week @ 2020-01-20 10409/week @ 2020-01-27 9697/week @ 2020-02-03 9106/week @ 2020-02-10 10577/week @ 2020-02-17 9582/week @ 2020-02-24 12203/week @ 2020-03-02 10323/week @ 2020-03-09 11261/week @ 2020-03-16

35,924 downloads per month
Used in 359 crates (41 directly)

MIT/Apache

415KB
9K SLoC

libm

A port of MUSL's libm to Rust.

Goals

The short term goal of this library is to enable math support (e.g. sin, atan2) for the wasm32-unknown-unknown target (cf. rust-lang/compiler-builtins). The longer term goal is to enable math support in the core crate.

Already usable

This crate is on crates.io and can be used today in stable #![no_std] programs.

The API documentation can be found here.

Benchmark

The benchmarks are located in crates/libm-bench and require a nightly Rust toolchain. To run all benchmarks:

cargo +nightly bench --all

Contributing

Please check CONTRIBUTING.md

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps