| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| src/ | 04-Jul-2025 | - | 12,839 | 8,574 | ||
| .android-checksum.json | D | 04-Jul-2025 | 11.5 KiB | 1 | 1 | |
| .cargo-checksum.json | D | 04-Jul-2025 | 10.9 KiB | 1 | 1 | |
| Android.bp | D | 04-Jul-2025 | 1.2 KiB | 50 | 45 | |
| CHANGELOG.md | D | 04-Jul-2025 | 3.1 KiB | 176 | 132 | |
| CONTRIBUTING.md | D | 04-Jul-2025 | 3.4 KiB | 96 | 70 | |
| Cargo.toml | D | 04-Jul-2025 | 1.2 KiB | 53 | 47 | |
| LICENSE | D | 04-Jul-2025 | 13.8 KiB | 259 | 213 | |
| LICENSE.txt | D | 04-Jul-2025 | 13.8 KiB | 259 | 213 | |
| METADATA | D | 04-Jul-2025 | 344 | 18 | 17 | |
| MODULE_LICENSE_MIT | D | 04-Jul-2025 | 0 | |||
| README.md | D | 04-Jul-2025 | 1.6 KiB | 57 | 34 | |
| TEST_MAPPING | D | 04-Jul-2025 | 296 | 21 | 20 | |
| build.rs | D | 04-Jul-2025 | 500 | 18 | 14 | |
| cargo_embargo.json | D | 04-Jul-2025 | 154 | 10 | 9 |
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