File tree 1 file changed +12
-0
lines changed
library/core/src/intrinsics
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2793,6 +2793,12 @@ pub fn round_ties_even_f32(x: f32) -> f32 {
2793
2793
unsafe { rintf32 ( x) }
2794
2794
}
2795
2795
2796
+ /// Provided for compatibility with stdarch. DO NOT USE.
2797
+ #[ inline( always) ]
2798
+ pub unsafe fn rintf32 ( x : f32 ) -> f32 {
2799
+ round_ties_even_f32 ( x)
2800
+ }
2801
+
2796
2802
/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
2797
2803
/// least significant digit.
2798
2804
///
@@ -2820,6 +2826,12 @@ pub fn round_ties_even_f64(x: f64) -> f64 {
2820
2826
unsafe { rintf64 ( x) }
2821
2827
}
2822
2828
2829
+ /// Provided for compatibility with stdarch. DO NOT USE.
2830
+ #[ inline( always) ]
2831
+ pub unsafe fn rintf64 ( x : f64 ) -> f64 {
2832
+ round_ties_even_f64 ( x)
2833
+ }
2834
+
2823
2835
/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
2824
2836
/// least significant digit.
2825
2837
///
You can’t perform that action at this time.
0 commit comments