Expand description
Bulk SIMD operations for the unsigned floating-point storage formats.
The scalar newtypes intentionally retain their precise, portable
promote/compute/demote contract. SIMD is therefore exposed as an opt-in
slice API: storage lanes are widened into native f32 (Uf16) or f64
(Uf32) vectors, computed there, and rounded back to the exact scalar
encoding. Normal finite lanes take the register-only bit-expansion path;
subnormals, infinities, NaNs, overflows, and negative results fall back to
the scalar conversion for bit-for-bit compatibility.
This feature uses nightly portable_simd. The chosen lane widths follow
the portable axnn-cpu tier: 128-bit F32/F64 vectors by default and
256-bit vectors when the crate is compiled with AVX2 or AVX-512 enabled.
Enums§
- Simd
Error - Invalid source/destination slice relationship passed to a bulk operation.
Constants§
- UF16_
LANES - F32 lanes processed by the UF16 path in one vector operation.
- UF32_
LANES - F64 lanes processed by the UF32 path in one vector operation.
Functions§
- add_
uf16 - Elementwise
Uf16addition through native F32 SIMD lanes. - add_
uf32 - Elementwise
Uf32addition through native F64 SIMD lanes. - add_
uf16e6m10 - Elementwise
Uf16E6M10addition through native F32 SIMD lanes. - decode_
uf16_ to_ f32 - Decode packed
Uf16lanes to F32. Normal finite blocks use SIMD bit expansion. - decode_
uf16e6m10_ to_ f32 - Decode packed
Uf16E6M10lanes to F32. - decode_
uf32_ to_ f64 - Decode packed
Uf32lanes to F64. Normal finite blocks use SIMD bit expansion. - div_
uf16 - Elementwise
Uf16division through native F32 SIMD lanes. - div_
uf32 - Elementwise
Uf32division through native F64 SIMD lanes. - div_
uf16e6m10 - Elementwise
Uf16E6M10division through native F32 SIMD lanes. - encode_
f32_ to_ uf16 - Encode F32 lanes as
Uf16with the scalar constructor’s exact RNE behavior. - encode_
f32_ to_ uf16e6m10 - Encode F32 lanes as
Uf16E6M10with scalar-equivalent rounding. - encode_
f64_ to_ uf32 - Encode F64 lanes as
Uf32with the scalar constructor’s exact RNE behavior. - mul_
uf16 - Elementwise
Uf16multiplication through native F32 SIMD lanes. - mul_
uf32 - Elementwise
Uf32multiplication through native F64 SIMD lanes. - mul_
uf16e6m10 - Elementwise
Uf16E6M10multiplication through native F32 SIMD lanes. - sub_
uf16 - Elementwise
Uf16subtraction through native F32 SIMD lanes. - sub_
uf32 - Elementwise
Uf32subtraction through native F64 SIMD lanes. - sub_
uf16e6m10 - Elementwise
Uf16E6M10subtraction through native F32 SIMD lanes.