Skip to content

Commit 351c587

Browse files
committed
add stdarch compatibility hack
1 parent d1b34ac commit 351c587

File tree

1 file changed

+6
-0
lines changed
  • library/core/src/intrinsics

1 file changed

+6
-0
lines changed

library/core/src/intrinsics/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,9 @@ pub fn round_ties_even_f32(x: f32) -> f32 {
27932793
unsafe { rintf32(x) }
27942794
}
27952795

2796+
/// Provided for compatibility with stdarch. DO NOT USE.
2797+
pub use round_ties_even_f32 as rintf32;
2798+
27962799
/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
27972800
/// least significant digit.
27982801
///
@@ -2820,6 +2823,9 @@ pub fn round_ties_even_f64(x: f64) -> f64 {
28202823
unsafe { rintf64(x) }
28212824
}
28222825

2826+
/// Provided for compatibility with stdarch. DO NOT USE.
2827+
pub use round_ties_even_f64 as rintf64;
2828+
28232829
/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
28242830
/// least significant digit.
28252831
///

0 commit comments

Comments
 (0)