Skip to main content

smoothstep_simd

Function smoothstep_simd 

Source
pub fn smoothstep_simd<F, const N: usize>(x: Simd<F, N>) -> Simd<F, N>
where F: SimdElement + SimdCast, Simd<F, N>: Mul<Output = Simd<F, N>> + Sub<Output = Simd<F, N>> + Add<Output = Simd<F, N>>,
Expand description

Smoothstep for N lanes: 6x^5 - 15x^4 + 10x^3. Per-lane identical to smoothstep.