1
Fork 0

make the new intrinsics safe

This commit is contained in:
Ralf Jung 2025-02-22 14:12:55 +01:00
parent 04e7a10af6
commit d1b34acb3b
6 changed files with 16 additions and 12 deletions

View file

@ -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::round_ties_even_f64(self) }
intrinsics::round_ties_even_f64(self)
}
/// Returns the integer part of `self`.