#[repr(simd)]pub struct m256i(/* private fields */);
stdarch_loongarch
#117427)Expand description
256-bit wide integer vector type, LoongArch-specific
This type is the same as the __m256i
type defined in lasxintrin.h
,
representing a 256-bit SIMD register. Usage of this type typically
occurs in conjunction with the lasx
target features for LoongArch.
Internally this type may be viewed as:
i8x32
- thirty twoi8
values packed togetheri16x16
- sixteeni16
values packed togetheri32x8
- eighti32
values packed togetheri64x4
- fouri64
values packed together
(as well as unsigned versions). Each intrinsic may interpret the internal bits differently, check the documentation of the intrinsic to see how itโs being used.
The in-memory representation of this type is the same as the one of an equivalent array (i.e. the in-memory order of elements is the same, and there is no padding); however, the alignment is different and equal to the size of the type. Note that the ABI for function calls may not be the same.
Note that this means that an instance of m256i
typically just means
a โbag of bitsโ which is left up to interpretation at the point of use.
Most intrinsics using m256i
are prefixed with lasx_
and the integer
types tend to correspond to suffixes like โbโ, โhโ, โwโ or โdโ.