@@ -1783,27 +1783,33 @@ extern "rust-intrinsic" {
1783
1783
#[ rustc_nounwind]
1784
1784
pub fn truncf64 ( x : f64 ) -> f64 ;
1785
1785
1786
- /// Returns the nearest integer to an `f32`. May raise an inexact floating-point exception
1787
- /// if the argument is not an integer.
1786
+ /// Returns the nearest integer to an `f32`. Changing the rounding mode is not possible in Rust,
1787
+ /// so this rounds half-way cases to the number with an even least significant digit.
1788
+ ///
1789
+ /// May raise an inexact floating-point exception if the argument is not an integer.
1788
1790
///
1789
1791
/// The stabilized version of this intrinsic is
1790
1792
/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
1791
1793
#[ rustc_nounwind]
1792
1794
pub fn rintf32 ( x : f32 ) -> f32 ;
1793
- /// Returns the nearest integer to an `f64`. May raise an inexact floating-point exception
1794
- /// if the argument is not an integer.
1795
+ /// Returns the nearest integer to an `f64`. Changing the rounding mode is not possible in Rust,
1796
+ /// so this rounds half-way cases to the number with an even least significant digit.
1797
+ ///
1798
+ /// May raise an inexact floating-point exception if the argument is not an integer.
1795
1799
///
1796
1800
/// The stabilized version of this intrinsic is
1797
1801
/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
1798
1802
#[ rustc_nounwind]
1799
1803
pub fn rintf64 ( x : f64 ) -> f64 ;
1800
1804
1801
- /// Returns the nearest integer to an `f32`.
1805
+ /// Returns the nearest integer to an `f32`. Changing the rounding mode is not possible in Rust,
1806
+ /// so this rounds half-way cases to the number with an even least significant digit.
1802
1807
///
1803
1808
/// This intrinsic does not have a stable counterpart.
1804
1809
#[ rustc_nounwind]
1805
1810
pub fn nearbyintf32 ( x : f32 ) -> f32 ;
1806
- /// Returns the nearest integer to an `f64`.
1811
+ /// Returns the nearest integer to an `f64`. Changing the rounding mode is not possible in Rust,
1812
+ /// so this rounds half-way cases to the number with an even least significant digit.
1807
1813
///
1808
1814
/// This intrinsic does not have a stable counterpart.
1809
1815
#[ rustc_nounwind]
0 commit comments