commit | b9b96960c2033eeeec94d0ef3bc85196a571a7ff | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Tue Nov 30 13:50:36 2021 -0800 |
committer | Joel Galenson <[email protected]> | Tue Nov 30 13:55:26 2021 -0800 |
tree | f87f7e61d49b74b8006a5213e456c23db4dafb70 | |
parent | 913bcd19e51c0d7c1c6cc6b8dd3a4c4e2b440c8d [diff] |
Fix building with latest compiler. This adds an upstream patch that is not in the latest release. Test: Build Change-Id: Iff3a76628e60a7fe8548ee8e9c600ea278ea32d6
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.