rust/library/compiler-builtins/libm
Trevor Gross c7c5adbe64 compiler-builtins: Remove the no-f16-f128 feature
This option was used to gate `f16` and `f128` when support across
backends and targets was inconsistent. We now have the rustc builtin cfg
`target_has_reliable{f16,f128}` which has taken over this usecase.
Remove no-f16-f128 since it is now unused and redundant.
2026-01-11 07:02:27 -06:00
..
src Fix a typo in libm::Libm::roundeven 2026-01-02 16:30:25 -05:00
build.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
Cargo.toml Update Cargo.toml authors fields 2025-12-06 03:49:54 -05:00
CHANGELOG.md chore: release 2025-05-06 19:37:58 -04:00
configure.rs compiler-builtins: Remove the no-f16-f128 feature 2026-01-11 07:02:27 -06:00
LICENSE.txt libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
README.md Typo in README.md 2025-05-28 15:51:49 -04:00

libm

A Rust implementations of the C math library.

Usage

libm provides fallback implementations for Rust's float math functions in core, and the core_float_math feature. If what is available suits your needs, there is no need to add libm as a dependency.

If more functionality is needed, this crate can also be used directly:

[dependencies]
libm = "0.2.11"

Contributing

Please check CONTRIBUTING.md

Minimum Rust version policy

This crate supports rustc 1.63 and newer.

License

Usage is under the MIT license, available at https://opensource.org/license/mit.

Contribution

Contributions are licensed under both the MIT license and the Apache License, Version 2.0, available at https://www.apache.org/licenses/LICENSE-2.0. 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 mentioned, without any additional terms or conditions.

See LICENSE.txt for full details.