commit | 733ce54596e7a9805ef2d1320edd0d3c112624ec | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 01 16:45:31 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 01 16:45:31 2021 +0000 |
tree | f87f7e61d49b74b8006a5213e456c23db4dafb70 | |
parent | f32842d9f4aecc4d97168b0f05b262df607da43a [diff] | |
parent | cd3f7e1a8482242557aa9d5c1528e850801032e6 [diff] |
Fix building with latest compiler. am: b9b96960c2 am: d961497afd am: 5f60786769 am: cd3f7e1a84 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libm/+/1907153 Change-Id: I8e4f8f1245bed280de89f29ff6e43aa70aedcdb2
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.