Bug: 174788271

Clone this repo:
  1. 7816bb8 Update TEST_MAPPING by Jeff Vander Stoep · 7 days ago master
  2. 273183c Merge "Upgrade libm to 0.2.6" by Treehugger Robot · 8 weeks ago main-16k-with-phones
  3. b0acf3c Upgrade libm to 0.2.6 by Jeff Vander Stoep · 8 weeks ago
  4. 431b054 Merge "Update TEST_MAPPING" am: 5cb066dab8 am: 425d6798be am: 7365bf1056 am: e484bd37a3 by Treehugger Robot · 8 months ago
  5. e484bd3 Merge "Update TEST_MAPPING" am: 5cb066dab8 am: 425d6798be am: 7365bf1056 by Treehugger Robot · 8 months ago

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.