Skip to content

Commit

Permalink
wasm: update for rintf intrinsic rename
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and Amanieu committed Mar 3, 2025
1 parent 421caad commit 4793c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/wasm32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn f32_trunc(a: f32) -> f32 {
#[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "wasm_numeric_instr", issue = "133908")]
pub fn f32_nearest(a: f32) -> f32 {
unsafe { crate::intrinsics::rintf32(a) }
crate::intrinsics::round_ties_even_f32(a)
}

/// Generates the [`f32.sqrt`] instruction, returning the square root of the number `a`.
Expand Down Expand Up @@ -157,7 +157,7 @@ pub fn f64_trunc(a: f64) -> f64 {
#[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "wasm_numeric_instr", issue = "133908")]
pub fn f64_nearest(a: f64) -> f64 {
unsafe { crate::intrinsics::rintf64(a) }
crate::intrinsics::round_ties_even_f64(a)
}

/// Generates the [`f64.sqrt`] instruction, returning the square root of the number `a`.
Expand Down

0 comments on commit 4793c09

Please sign in to comment.