Skip to main content

mla

Function mla 

Source
pub fn mla<S: Simd, V: SimdFloat<S>>(_simd: S, x: V, y: V, z: V) -> V
Expand description

x * y + z, fused wherever the CPU supports it.

sleef-rs selects a formulation at compile time with cfg(target_feature = "fma"). This crate always takes the FMA formulation, which upstream also asserts the documented bounds for, and evaluates it with a fused operation on every level that has one. Shared by the f64 and f32 kernel families, hence generic over the vector type.