Skip to content

Commit f6b5e5b

Browse files
committed
Fix std implementation and trailing whitespace
- Use core::intrinsics::fmuladd* directly in std impl - Remove trailing whitespace from test file
1 parent 31d81ae commit f6b5e5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl f32 {
270270
#[inline]
271271
#[rustc_const_unstable(feature = "float_mul_add_relaxed", issue = "151770")]
272272
pub const fn mul_add_relaxed(self, a: f32, b: f32) -> f32 {
273-
core::f32::mul_add_relaxed(self, a, b)
273+
core::intrinsics::fmuladdf32(self, a, b)
274274
}
275275

276276
/// Calculates Euclidean division, the matching method for `rem_euclid`.

library/std/src/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl f64 {
270270
#[inline]
271271
#[rustc_const_unstable(feature = "float_mul_add_relaxed", issue = "151770")]
272272
pub const fn mul_add_relaxed(self, a: f64, b: f64) -> f64 {
273-
core::f64::mul_add_relaxed(self, a, b)
273+
core::intrinsics::fmuladdf64(self, a, b)
274274
}
275275

276276
/// Calculates Euclidean division, the matching method for `rem_euclid`.

0 commit comments

Comments
 (0)