commit | d961497afdc027cfe10ba8360185d71fc1373927 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 01 15:49:12 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 01 15:49:12 2021 +0000 |
tree | f87f7e61d49b74b8006a5213e456c23db4dafb70 | |
parent | e02fca6c61a9ebbee27e1e739c985777ee9f8a58 [diff] | |
parent | b9b96960c2033eeeec94d0ef3bc85196a571a7ff [diff] |
Fix building with latest compiler. am: b9b96960c2 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libm/+/1907153 Change-Id: Idf852181e73de77cd17c4652c0065793497466a8
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.