Skip to content

Commit 35f370c

Browse files
calebzulawskigitbot
authored and
gitbot
committed
Add simd_relaxed_fma intrinsic
1 parent c3bd5cd commit 35f370c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/intrinsics/simd.rs

+10
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,16 @@ extern "rust-intrinsic" {
612612
#[rustc_nounwind]
613613
pub fn simd_fma<T>(x: T, y: T, z: T) -> T;
614614

615+
/// Computes `(x*y) + z` for each element, with unspecified rounding.
616+
///
617+
/// This may be equivalent to `simd_fma`, or it may relax to rounding each
618+
/// operation if that's more efficient.
619+
///
620+
/// `T` must be a vector of floats.
621+
#[cfg(not(bootstrap))]
622+
#[rustc_nounwind]
623+
pub fn simd_relaxed_fma<T>(x: T, y: T, z: T) -> T;
624+
615625
// Computes the sine of each element.
616626
///
617627
/// `T` must be a vector of floats.

0 commit comments

Comments
 (0)