intrinsics: unify rint, roundeven, nearbyint in a single round_ties_even intrinsic
This commit is contained in:
parent
019fc4de2f
commit
04e7a10af6
13 changed files with 111 additions and 208 deletions
|
@ -125,7 +125,7 @@ impl f64 {
|
|||
#[stable(feature = "round_ties_even", since = "1.77.0")]
|
||||
#[inline]
|
||||
pub fn round_ties_even(self) -> f64 {
|
||||
unsafe { intrinsics::rintf64(self) }
|
||||
unsafe { intrinsics::round_ties_even_f64(self) }
|
||||
}
|
||||
|
||||
/// Returns the integer part of `self`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue