commit | 3a67cc51c0e8e201ee22cb2a0ca9b418a8f8f53e | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Mon Dec 07 17:56:56 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Dec 07 17:56:56 2020 +0000 |
tree | 5408d05146387c1233c53dd0b5d6961dced9ba49 | |
parent | 17ada0f933b478a3e68173ec2fc425ec1220dacd [diff] | |
parent | de217e2c74e0d4cf79a90155527c0d7a7343672e [diff] |
Add Android.bp am: 1c1254aed2 am: 66400ab188 am: de217e2c74 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libm/+/1517422 Change-Id: Ibec240811b2aa68b09eb112a2387f80b6805159f
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.