Expand description
Vector helpers for the f64 kernels.
Ported from sleef-rs rev 3671d46 (src/f64x.rs, src/f64x/constants.rs) and the doubled
crate v0.3.3. See the crate-level crate::common docs for the translation table.
Every helper takes the SIMD token as its first argument. <S as Simd>::f64s is not
invertible in argument position, so a signature whose only vector argument is that projection
cannot be inferred from a call; passing the token first makes every call site inferrable
without a turbofish.
Re-exports§
pub use crate::common::mla;pub use crate::common::mul_sub;pub use crate::common::neg_mul_add;pub use crate::common::poly10;pub use crate::common::poly11;pub use crate::common::poly12;pub use crate::common::poly13;pub use crate::common::poly14;pub use crate::common::poly15;pub use crate::common::poly16;pub use crate::common::poly17;pub use crate::common::poly18;pub use crate::common::poly19;pub use crate::common::poly2;pub use crate::common::poly20;pub use crate::common::poly21;pub use crate::common::poly3;pub use crate::common::poly4;pub use crate::common::poly5;pub use crate::common::poly6;pub use crate::common::poly7;pub use crate::common::poly8;pub use crate::common::poly9;pub use constants::splat;pub use constants::splat_bits;pub use constants::splat_int;
Modules§
- activation
- Fused activation kernels: one vector pass per element.
- constants
- Constants and broadcast helpers for the
f64kernels. - special
i0e,i1eandxlogyover native-widthf64vectors.- u05
f64kernels with a 0.5 ULP error bound (SLEEF’su05tier).- u10
f64kernels with a 1.0 ULP error bound (SLEEF’su10tier).- u15
f64kernels with a 1.5 ULP error bound (SLEEF’su15tier).- u35
f64kernels with a 3.5 ULP error bound (SLEEF’su35tier).
Functions§
- bits_
to_ int - Reinterprets a bit pattern as a signed integer vector of the same lane count.
- ceil
- Round towards positive infinity.
- copy_
sign xwith the sign ofy.- expfrexp
- Exponent of a floating-point number, as returned by
frexp. - fabs
- Absolute value.
- fdim
- Positive difference.
- floor
- Round towards negative infinity.
- fma
- Fused multiply-add:
x * y + zwith a single rounding. - fmax
- Maximum, treating a NaN in
yasx. - fmin
- Minimum, treating a NaN in
yasx. - fmod
- Floating-point remainder, truncated towards zero.
- frfrexp
- Fractional component of a floating-point number, as returned by
frexp. - from_
bits - Reinterprets a bit pattern as an
f64vector. - from_
slice_ offset - Gathers one lane per element of
vifromtable. - ilogb
- The exponent of
das an integer vector. - ilogb2k
- The exponent of
d, without subnormal handling. - ilogbk
- The exponent of
d, scaling subnormals into range first. - int_
to_ bits - Reinterprets a signed integer vector as a bit pattern.
- is_
integer - Whether
xis integral. - is_
neg_ zero - Whether
xis exactly-0.0. - is_odd
- Whether
xis an odd integer. - ldexp
- Multiply by an integral power of two.
- ldexp2k
d * 2^e, split into two half-range multiplications.- ldexp3k
d * 2^qby adding directly to the exponent field.- ldexpk
x * 2^qover the full exponent range, including subnormals.- modf
- Splits
xinto its fractional and integral parts. - mul_
sign xwith the sign bit ofyapplied.- nextafter
- The next representable value after
xin the direction ofy. - or_sign
xwith the sign bit ofyset.- pow2i
2^qfor an integer vectorq.- remainder
- IEEE remainder, rounded to nearest even quotient.
- rempi
- Reduces
amodulopi/2using the Payne–Hanek tables. - rempisub
- Removes the integer part of
4 * x, returning the fraction and the integer part. - rint
- Round to nearest integer, ties to even.
- round
- Round away from zero.
- roundi
- Round to an integer vector, ties to even.
- select3
- Selects between three scalar values using two masks.
- select4
- Selects between four scalar values using three masks.
- select_
doubled - Selects between two double-double values using a mask.
- select_
splat - Selects between two scalars broadcast to vectors.
- sign
1.0carrying the sign ofx.- sign_
bit - Sign bit of
x, as a bit pattern. - sqrt_
as_ doubled sqrt(x)as a double-double.- to_bits
- Reinterprets an
f64vector as its bit pattern. - trunc
- Truncate towards zero.
- trunci
- Truncate to an integer vector.
- v_
add_ dd v + d, matching upstream’sF64x + Doubled<F64x>.- visinf2
- Picks
mwith the sign ofdfor infinited, otherwised.