Skip to main content

Mojo function

compressed_store

compressed_store[type: DType, size: Int](value: SIMD[type, size], addr: UnsafePointer[SIMD[type, 1], address_space, alignment, origin], mask: SIMD[bool, size])

Compresses the lanes of value, skipping mask lanes, and stores at addr.

Parameters:

  • type (DType): DType of value, the value to store.
  • size (Int): Size of value, the value to store.

Args:

  • value (SIMD[type, size]): The vector containing data to store.
  • addr (UnsafePointer[SIMD[type, 1], address_space, alignment, origin]): The memory location to store the compressed data.
  • mask (SIMD[bool, size]): A binary vector which prevents memory access to certain lanes of value.