rust/library/compiler-builtins/libm
2022-11-07 13:19:05 -05:00
..
.github/workflows Disable i686-unknown-linux-gnu tests for now 2022-01-03 19:06:54 +01:00
ci Fix no-panic 2022-01-03 21:32:08 +01:00
crates Use macros for more division/array checks (#244) 2020-05-29 14:16:51 -05:00
src Disable tests on PowerPC 2022-11-07 13:19:05 -05:00
.gitignore add newlib support to the test generator 2018-07-27 00:11:06 -05:00
build.rs rint/rintf instead of roundeven/roundevenf 2022-11-07 12:54:02 -05:00
Cargo.toml Bump to 0.2.5 2022-08-10 15:23:56 +01:00
CHANGELOG.md Update CHANGELOG.md (#245) 2020-06-08 09:11:11 -05:00
CONTRIBUTING.md Remove -nursery from urls 2019-09-25 11:20:49 -07: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.