commit | ba6c821c7be4a9d6b89c876fb8027578b9b6df1b | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri May 07 00:33:28 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri May 07 00:33:28 2021 +0000 |
tree | 936efc6c35aad8c3b35463bca23ef4bc2601647a | |
parent | 2670b074bfc627dfd3b452da2207052778ddcd88 [diff] | |
parent | d13c5afe1e2140f474e4f278e4a739b69410c621 [diff] |
Snap for 7343852 from d13c5afe1e2140f474e4f278e4a739b69410c621 to sc-mainline-release Change-Id: Id9ad0c7d27cd4018d7e7b735319623557ad3f8cf
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.