Skip to main content

poly2

Function poly2 

Source
pub fn poly2<S: Simd, V: SimdFloat<S> + Copy>(
    simd: S,
    x: V,
    x2: V,
    x4: V,
    c1: V::Element,
    c0: V::Element,
) -> V
Expand description

Estrin polynomial evaluation with scalar coefficients, degree 2.

Every polyN takes the same (simd, x, x2, x4 [, x8] [, x16], coefficients...) shape so the nesting below stays uniform; the higher powers are unused below degree 5.