• Home
Name Date Size #Lines LOC

..--

src/04-Jul-2025-12,8398,574

.android-checksum.jsonD04-Jul-202511.5 KiB11

.cargo-checksum.jsonD04-Jul-202510.9 KiB11

Android.bpD04-Jul-20251.2 KiB5045

CHANGELOG.mdD04-Jul-20253.1 KiB176132

CONTRIBUTING.mdD04-Jul-20253.4 KiB9670

Cargo.tomlD04-Jul-20251.2 KiB5347

LICENSED04-Jul-202513.8 KiB259213

LICENSE.txtD04-Jul-202513.8 KiB259213

METADATAD04-Jul-2025344 1817

MODULE_LICENSE_MITD04-Jul-20250

README.mdD04-Jul-20251.6 KiB5734

TEST_MAPPINGD04-Jul-2025296 2120

build.rsD04-Jul-2025500 1814

cargo_embargo.jsonD04-Jul-2025154 109

README.md

1# `libm`
2
3A port of [MUSL]'s libm to Rust.
4
5[MUSL]: https://musl.libc.org/
6
7## Goals
8
9The short term goal of this library is to [enable math support (e.g. `sin`, `atan2`) for the
10`wasm32-unknown-unknown` target][wasm] (cf. [rust-lang/compiler-builtins][pr]). The longer
11term goal is to enable [math support in the `core` crate][core].
12
13[wasm]: https://github.com/rust-lang/libm/milestone/1
14[pr]: https://github.com/rust-lang/compiler-builtins/pull/248
15[core]: https://github.com/rust-lang/libm/milestone/2
16
17## Already usable
18
19This crate is [on crates.io] and can be used today in stable `#![no_std]` programs.
20
21The API documentation can be found [here](https://docs.rs/libm).
22
23[on crates.io]: https://crates.io/crates/libm
24
25## Benchmark
26[benchmark]: #benchmark
27
28The benchmarks are located in `crates/libm-bench` and require a nightly Rust toolchain.
29To run all benchmarks:
30
31> cargo +nightly bench --all
32
33## Contributing
34
35Please check [CONTRIBUTING.md](CONTRIBUTING.md)
36
37## Minimum Rust version policy
38
39This crate supports rustc 1.63 and newer.
40
41## License
42
43Usage is licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or
44http://opensource.org/licenses/MIT).
45
46
47### Contribution
48
49Contributions are licensed under both the MIT license and the Apache License,
50Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
51http://www.apache.org/licenses/LICENSE-2.0). Unless you explicitly state
52otherwise, any contribution intentionally submitted for inclusion in the work
53by you, as defined in the Apache-2.0 license, shall be dual licensed as
54mentioned, without any additional terms or conditions.
55
56See `LICENSE.txt` for full details.
57