commit | 473c56b36ea92a06b8071aaab83caf282a801650 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 17:27:49 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 17:27:49 2021 +0000 |
tree | e9112ccc69532822871b7fd658743d57d914dcbb | |
parent | cd3f7e1a8482242557aa9d5c1528e850801032e6 [diff] | |
parent | 4866e5e41879bc02c743113fe4eb9a2bf6021ea6 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: f179e1ccbe am: 76cd8448f5 am: 4866e5e418 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libm/+/1912438 Change-Id: Icd127216ccafcc6f63e191ee02547d534a413c82
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.