commit | f189534a6cafacbd680ecf4b34002f7d8353f076 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Feb 20 00:24:20 2021 -0800 |
committer | Xin Li <delphij@google.com> | Sat Feb 20 00:24:20 2021 -0800 |
tree | 391b25b9268c4e9c42bc450098be763ccb7a72da | |
parent | e93f385dda1645d0b93e9ac8cb4fe9445ba8ad6f [diff] | |
parent | a92bea40f6d102bbe433d3328e033aa4cd3a799b [diff] |
Mark ab/7061308 as merged in stage. Bug: 180401296 Merged-In: I81c0552266b7df75142fe6e393706e8b37a468f0 Change-Id: I1fe47943ffd14d838f82a38666d0e95264e3749b
libm
A port of MUSL's libm to Rust.
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.
This crate is on crates.io and can be used today in stable #![no_std]
programs.
The API documentation can be found here.
The benchmarks are located in crates/libm-bench
and require a nightly Rust toolchain. To run all benchmarks:
cargo +nightly bench --all
Please check CONTRIBUTING.md
Licensed under either of
at your option.
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.