rust/library/compiler-builtins/libm
2019-08-07 14:06:12 -06:00
..
ci Move benchmarks into its own crate 2019-07-02 08:22:03 +02:00
crates Re-export the stable libm feature 2019-07-02 08:33:11 +02:00
src Improve sqrt/sqrtf if stable intrinsics allow 2019-08-07 14:06:12 -06:00
.gitignore add newlib support to the test generator 2018-07-27 00:11:06 -05:00
azure-pipelines.yml Run benchmarks on CI 2019-07-02 09:07:10 +02:00
build.rs fix jn, ilogb 2019-05-09 18:40:19 +03:00
Cargo.toml Bump minor version to 0.2.0 2019-07-03 23:35:24 +02:00
CHANGELOG.md Add changelog entry for v0.1.4 release 2019-06-12 18:45:42 +02:00
CONTRIBUTING.md Update contributing docs 2019-05-02 12:12:47 -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 Remove traits from README 2019-07-03 23:53:35 +02:00

libm

Build Status

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-nursery/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.