| commit | a600e7b169522b26eb8f6aa150b81b68699bde6d | [log] [tgz] |
|---|---|---|
| author | android-build-team Robot <[email protected]> | Fri Apr 30 02:41:52 2021 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Fri Apr 30 02:41:52 2021 +0000 |
| tree | 936efc6c35aad8c3b35463bca23ef4bc2601647a | |
| parent | d6b8ffd4e75cd6b57bf9571ddbda9a4efcddcc3c [diff] | |
| parent | 6266f7ce812622c30d53153aa7de92e0478424c7 [diff] |
Snap for 7325276 from d13c5afe1e2140f474e4f278e4a739b69410c621 to sc-release am: 6266f7ce81 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/libm/+/14372025 Change-Id: I49f3ad558e58a9903474e52636b00bee0bed4ac3
libmA 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.