File tree 1 file changed +2
-2
lines changed
crates/core_arch/src/wasm32
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ pub fn f32_trunc(a: f32) -> f32 {
86
86
#[ must_use = "method returns a new number and does not mutate the original value" ]
87
87
#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
88
88
pub fn f32_nearest ( a : f32 ) -> f32 {
89
- unsafe { crate :: intrinsics:: rintf32 ( a) }
89
+ crate :: intrinsics:: round_ties_even_f32 ( a)
90
90
}
91
91
92
92
/// Generates the [`f32.sqrt`] instruction, returning the square root of the number `a`.
@@ -157,7 +157,7 @@ pub fn f64_trunc(a: f64) -> f64 {
157
157
#[ must_use = "method returns a new number and does not mutate the original value" ]
158
158
#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
159
159
pub fn f64_nearest ( a : f64 ) -> f64 {
160
- unsafe { crate :: intrinsics:: rintf64 ( a) }
160
+ crate :: intrinsics:: round_ties_even_f64 ( a)
161
161
}
162
162
163
163
/// Generates the [`f64.sqrt`] instruction, returning the square root of the number `a`.
You can’t perform that action at this time.
0 commit comments