Mojo function
compressed_store
compressed_store[type: DType, size: Int](value: SIMD[type, size], addr: UnsafePointer[SIMD[type, 1], address_space, exclusive, alignment], mask: SIMD[bool, size])
Compresses the lanes of value
, skipping mask
lanes, and stores at addr
.
Parameters:
- type (
DType
): DType ofvalue
, the value to store. - size (
Int
): Size ofvalue
, the value to store.
Args:
- value (
SIMD[type, size]
): The vector containing data to store. - addr (
UnsafePointer[SIMD[type, 1], address_space, exclusive, alignment]
): The memory location to store the compressed data. - mask (
SIMD[bool, size]
): A binary vector which prevents memory access to certain lanes ofvalue
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!