rust/library/compiler-builtins
Juho Kahala 8cd47adab2
libm: Fix tests for lgamma
The tests were using `rug::ln_gamma` as a reference for `libm::lgamma`,
which actually computes the natural logarithm *of the absolute value* of
the Gamma function.

This changes the range of inputs used for the icount-benchmarks of these
functions, which causes false regressions in [1].

[1]: https://github.com/rust-lang/compiler-builtins/actions/runs/21788698368/job/62864230903?pr=1075#step:7:2710.

Fixes: a1a066611dc2 ("Create interfaces for testing against MPFR")
2026-02-09 04:32:04 -06:00
..
.github/workflows ci: Enable verbose output for josh-sync 2026-02-07 01:42:15 -06:00
builtins-shim meta: Switch to workspace dependencies 2026-02-07 07:51:17 -06:00
builtins-test meta: Switch to workspace dependencies 2026-02-07 07:51:17 -06:00
builtins-test-intrinsics Enable tests that were skipped on PowerPC 2025-07-24 07:18:08 -05:00
ci symcheck: Add tests for the symbol checker 2026-02-07 05:27:30 -06:00
compiler-builtins meta: Switch to workspace dependencies 2026-02-07 07:51:17 -06:00
crates meta: Sort Cargo.toml [features] table after [dependencies] 2026-02-07 07:51:17 -06:00
etc Implement __sync builtins for thumbv6-none-eabi (#1050) 2026-01-22 10:09:48 +00:00
libm cleanup: Perform some simplifications possible with the MSRV bump 2026-02-07 08:46:41 -06:00
libm-test libm: Fix tests for lgamma 2026-02-09 04:32:04 -06: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 meta: Switch to workspace dependencies 2026-02-07 07:51:17 -06: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 2026-02-05 04:42:48 +00:00
triagebot.toml triagebot: Switch to check-commits = "uncanonicalized" 2026-01-30 21:50:02 -06: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.