Expand description
Type aliases for the f64 kernel family, and the translation table they follow.
sleef-rs expresses these as extension traits on Simd<f64, N>/Simd<f32, N>. Extension
traits cannot be implemented for S::f64s here (the projection is not a local type, and two
such impls conflict), so they are free functions parameterised by the SIMD token. The
translation table used throughout this crate is:
sleef-rs | elem-simd-math |
|---|---|
F64x<N> | F64s<S> |
x.mla(y, z) | x.mul_add_precise(y, z) |
F64x::splat(v) | F64s::<S>::splat(simd, v) |
F64x::poly8(…) | poly8(simd, …) |
m.select_splat(l, r) | select_splat(m, l, r) |
m.select(l, r) | m.select(l, r) |
x.to_bits() / F64x::from_bits(b) | to_bits(x) / from_bits(b) |
Functions§
- hw_sqrt
- Square root, one correctly rounded instruction per lane.
- mla
x * y + z, fused wherever the CPU supports it.- mul_sub
x * y - z, fused wherever the CPU supports it. Seemla.- neg_
mul_ add z - x * y, fused wherever the CPU supports it. Seemla.- poly2
- Estrin polynomial evaluation with scalar coefficients, degree 2.
- poly3
- Estrin polynomial evaluation with scalar coefficients, degree 3.
- poly4
- Estrin polynomial evaluation with scalar coefficients, degree 4.
- poly5
- Estrin polynomial evaluation with scalar coefficients, degree 5.
- poly6
- Estrin polynomial evaluation with scalar coefficients, degree 6.
- poly7
- Estrin polynomial evaluation with scalar coefficients, degree 7.
- poly8
- Estrin polynomial evaluation with scalar coefficients, degree 8.
- poly9
- Estrin polynomial evaluation with scalar coefficients, degree 9.
- poly10
- Estrin polynomial evaluation with scalar coefficients, degree 10.
- poly11
- Estrin polynomial evaluation with scalar coefficients, degree 11.
- poly12
- Estrin polynomial evaluation with scalar coefficients, degree 12.
- poly13
- Estrin polynomial evaluation with scalar coefficients, degree 13.
- poly14
- Estrin polynomial evaluation with scalar coefficients, degree 14.
- poly15
- Estrin polynomial evaluation with scalar coefficients, degree 15.
- poly16
- Estrin polynomial evaluation with scalar coefficients, degree 16.
- poly17
- Estrin polynomial evaluation with scalar coefficients, degree 17.
- poly18
- Estrin polynomial evaluation with scalar coefficients, degree 18.
- poly19
- Estrin polynomial evaluation with scalar coefficients, degree 19.
- poly20
- Estrin polynomial evaluation with scalar coefficients, degree 20.
- poly21
- Estrin polynomial evaluation with scalar coefficients, degree 21.
Type Aliases§
- F32s
- Native-width
f32vector for SIMD levelS. - F64s
- Native-width
f64vector for SIMD levelS. - I32s
- Native-width
i32vector for SIMD levelS. - I64s
- Native-width
i64vector for SIMD levelS. - M32s
- Native-width mask for
f32lanes. - M64s
- Native-width mask for
f64lanes. - U32s
- Native-width
u32vector for SIMD levelS. - U64s
- Native-width
u64vector for SIMD levelS.