Mojo function
compressed_store
compressed_store[dtype: DType, size: Int](value: SIMD[dtype, size], addr: UnsafePointer[SIMD[dtype, 1], address_space=address_space, alignment=alignment, origin=origin], mask: SIMD[bool, size])
Compresses the lanes of value
, skipping mask
lanes, and stores at addr
.
Parameters:
Args:
- value (
SIMD
): The vector containing data to store. - addr (
UnsafePointer
): The memory location to store the compressed data. - mask (
SIMD
): 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!