rust/library/compiler-builtins
Juho Kahala a9fa80ce91
Fix expm1f overflow threshold
Due to an erroneous overflow threshold, `expm1f` was incorrectly
returning `inf` for inputs in the range `[88.72169, 88.72283]`. This
additionally caused `sinhf` to return `NaN` for inputs in that range.

The bug was ported from the original in musl, which has since been fixed
in [1].

[1]: https://git.musl-libc.org/cgit/musl/commit/?id=964104f9f0e056cf58d9defa0b716d7756f040f6
2025-12-17 05:56:45 +00:00
..
.github/workflows ci: Switch the x86 Apple job to the macos-15-intel runner 2025-12-07 14:48:01 -05:00
builtins-shim Update Cargo.toml authors fields 2025-12-06 03:49:54 -05:00
builtins-test apply the rename to aarch64_outline_atomics in builtins-test 2025-12-17 05:01:44 +00:00
builtins-test-intrinsics Enable tests that were skipped on PowerPC 2025-07-24 07:18:08 -05:00
ci ci: Print CPU information for benchmarks 2025-12-07 14:41:17 -05:00
compiler-builtins Merge ref '2dc30247c5' from rust-lang/rust 2025-12-17 04:58:31 +00:00
crates Update Cargo.toml authors fields 2025-12-06 03:49:54 -05:00
etc Rollup merge of #144443 - WaffleLapkin:integer-target-pointer-width, r=Noratrieb 2025-08-31 13:40:34 +02:00
libm Fix expm1f overflow threshold 2025-12-17 05:56:45 +00:00
libm-test Fix expm1f overflow threshold 2025-12-17 05:56:45 +00:00
.editorconfig Move the libm .editorconfig to root 2025-04-19 20:42:40 -04:00
.git-blame-ignore-revs Update .git-blame-ignore-revs after the libm merge 2025-04-19 20:18:22 +00:00
.gitignore bench: Update the benchmark runner to gungraun 0.17 2025-12-04 21:35:41 -05:00
.rustfmt.toml Add a .rustfmt.toml with style edition 2024 2025-04-19 19:05:49 -04:00
Cargo.toml bench: Add strip = false to the bench profile 2025-12-05 04:43:01 -05:00
CONTRIBUTING.md bench: Update the benchmark runner to gungraun 0.17 2025-12-04 21:35:41 -05:00
josh-sync.toml Add josh-sync config file 2025-07-08 08:56:34 +02:00
LICENSE.txt Update licensing information after repository refactoring 2025-04-21 06:16:12 -04:00
PUBLISHING.md ci: Update the default branch name 2025-12-04 21:35:23 -05:00
README.md fixed typo in readme 2025-05-22 11:51:54 +02:00
rust-version Prepare for merging from rust-lang/rust 2025-12-17 04:56:18 +00:00
triagebot.toml Remove [no-mentions] handler in our triagebot config 2025-12-11 12:13:10 -05:00

compiler-builtins and libm

This repository contains two main crates:

  • compiler-builtins: symbols that the compiler expects to be available at link time
  • libm: a Rust implementation of C math libraries, used to provide implementations in core.

More details are at compiler-builtins/README.md and libm/README.md.

For instructions on contributing, see CONTRIBUTING.md.

License

  • libm may be used under the MIT License
  • compiler-builtins may be used under the MIT License and the Apache License, Version 2.0 with the LLVM exception.
  • All original contributions must be under all of: the MIT license, the Apache-2.0 license, and the Apache-2.0 license with the LLVM exception.

More details are in LICENSE.txt and libm/LICENSE.txt.