rust/library/compiler-builtins/libm
2024-04-30 12:14:55 +08:00
..
.github/workflows fix ci, disable mips, mirrors https://github.com/rust-lang/compiler-builtins/pull/537 2023-08-07 21:51:34 +03:00
ci Fix no-panic 2022-01-03 21:32:08 +01:00
crates Add benchmarks 2022-11-07 23:43:39 -05:00
src Fix clippy::deprecated_cfg_attr on compiler_builtins 2024-04-30 12:14:55 +08: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 rint/rintf instead of roundeven/roundevenf 2022-11-07 12:54:02 -05:00
Cargo.toml Release 0.2.8 2023-10-06 11:25:38 +02: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.