rust/library/compiler-builtins/libm
Trevor Gross d0f1dd6010 Set target-specific AR and CC arguments
The Rust `cc` crate reads these, so make sure they are set for when we
start making use of `cc`.
2024-10-06 00:18:00 -05:00
..
.github/workflows Add a success job to CI 2024-08-22 03:43:13 -05:00
ci Set target-specific AR and CC arguments 2024-10-06 00:18:00 -05:00
crates Do library updates necessary with dependency upgrades 2024-10-05 22:28:38 -05:00
src Move musl-reference-tests to a new libm-test crate 2024-10-05 15:54:39 -05:00
.editorconfig add generic libm helper 2023-01-17 20:41:24 +01:00
.gitignore add newlib support to the test generator 2018-07-27 00:11:06 -05:00
build.rs Move musl-reference-tests to a new libm-test crate 2024-10-05 15:54:39 -05:00
Cargo.toml Upgrade all dependencies 2024-10-05 22:24:14 -05:00
CHANGELOG.md Update CHANGELOG.md (#245) 2020-06-08 09:11:11 -05:00
CONTRIBUTING.md Rename the musl-reference-tests feature to musl-bitwise-tests 2024-10-05 21:42:28 -05:00
LICENSE-APACHE initial commit 2018-07-12 00:44:28 -05:00
LICENSE-MIT initial commit 2018-07-12 00:44:28 -05:00
README.md updated link to musl website 2021-07-09 09:52:08 +05:30

libm

A port of MUSL's libm to Rust.

Goals

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.

Already usable

This crate is on crates.io and can be used today in stable #![no_std] programs.

The API documentation can be found here.

Benchmark

The benchmarks are located in crates/libm-bench and require a nightly Rust toolchain. To run all benchmarks:

cargo +nightly bench --all

Contributing

Please check CONTRIBUTING.md

License

Licensed under either of

at your option.

Contribution

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.