Conversions

Type conversions between SIMD vector types

Convert between SIMD types, change widths, reinterpret bits, and safely cast slices.

  1. Float / Integer — to_i32, to_i32_saturating, to_i32_round, to_f32
  2. Width Conversions — Narrowing (pack), widening (extend), half-width (split, from_halves_t)
  3. Bitcast — Bit reinterpretation, signed/unsigned conversion
  4. Slice Casting — Token-gated cast_slice_t, as_bytes, from_bytes_t (and why not bytemuck)