Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the libm submodule #765

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Feb 24, 2025

This requires privately reexporting libm's support module at crate root, where it is expected for macros. Once libm is made always available, the reexport can be simplified.

This delta adds a lot of routines to f16 and f128:

  • ceil
  • floor
  • fma (f128 only)
  • fmax
  • fmin
  • fmod
  • ldexp
  • rint
  • round
  • scalbn
  • sqrt

Additionally, the following new API was added for all four float types:

  • fmaximum
  • fmaximum_num
  • fminimum
  • fminimum_num
  • roundeven

There are also some significant performance improvements for sqrt and
sqrtf, as well as precision improvements for cbrt (both f32 and
f64 versions of this function are now always correctly rounded).

@tgross35 tgross35 force-pushed the update-libm branch 7 times, most recently from 3fe7179 to e0240a3 Compare February 24, 2025 06:23
This requires privately reexporting `libm`'s `support` module at crate
root, where it is expected for macros. Once `libm` is made always
available, the reexport can be simplified.

This delta adds a lot of routines to `f16` and `f128`:

* ceil
* floor
* fma (f128 only)
* fmax
* fmin
* fmod
* ldexp
* rint
* round
* scalbn
* sqrt

Additionally, the following new API was added for all four float types:

* fmaximum
* fmaximum_num
* fminimum
* fminimum_num
* roundeven

There are also some significant performance improvements for `sqrt` and
`sqrtf`, as well as precision improvements for `cbrt` (both `f32` and
`f64` versions of this function are now always correctly rounded).
@tgross35 tgross35 marked this pull request as ready for review February 24, 2025 07:32
@tgross35 tgross35 enabled auto-merge (rebase) February 24, 2025 07:32
@tgross35 tgross35 merged commit 0a3d5c0 into rust-lang:master Feb 24, 2025
26 checks passed
@tgross35 tgross35 deleted the update-libm branch February 24, 2025 07:34
tgross35 added a commit to tgross35/rust that referenced this pull request Feb 24, 2025
Includes `f16` symbols on MIPS [1], updates for `libm` [2], and
reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 24, 2025
Update `compiler-builtins` to 0.1.148

Includes `f16` symbols on MIPS [1], updates for `libm` [2], and reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766

try-job: aarch64-gnu
try-job: i686-mingw-1
try-job: i686-mingw-2
try-job: test-various
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: x86_64-rust-for-linux
fmease added a commit to fmease/rust that referenced this pull request Feb 25, 2025
Update `compiler-builtins` to 0.1.148

Includes `f16` symbols on MIPS [1], updates for `libm` [2], and reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766

try-job: aarch64-gnu
try-job: i686-mingw-1
try-job: i686-mingw-2
try-job: test-various
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: x86_64-rust-for-linux
fmease added a commit to fmease/rust that referenced this pull request Feb 25, 2025
Update `compiler-builtins` to 0.1.148

Includes `f16` symbols on MIPS [1], updates for `libm` [2], and reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766

try-job: aarch64-gnu
try-job: i686-mingw-1
try-job: i686-mingw-2
try-job: test-various
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: x86_64-rust-for-linux
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Feb 25, 2025
Rollup merge of rust-lang#137515 - tgross35:update-builtins, r=tgross35

Update `compiler-builtins` to 0.1.148

Includes `f16` symbols on MIPS [1], updates for `libm` [2], and reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766

try-job: aarch64-gnu
try-job: i686-mingw-1
try-job: i686-mingw-2
try-job: test-various
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: x86_64-rust-for-linux
bjorn3 pushed a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Feb 26, 2025
Includes `f16` symbols on MIPS [1], updates for `libm` [2], and
reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766
bjorn3 pushed a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Feb 26, 2025
Update `compiler-builtins` to 0.1.148

Includes `f16` symbols on MIPS [1], updates for `libm` [2], and reapplies the patch that drops the `public_test_deps!` macro [3].

[1]: rust-lang/compiler-builtins#762
[2]: rust-lang/compiler-builtins#765
[3]: rust-lang/compiler-builtins#766

try-job: aarch64-gnu
try-job: i686-mingw-1
try-job: i686-mingw-2
try-job: test-various
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: x86_64-rust-for-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant