Mojo function
masked_store
masked_store[size: Int](value: SIMD[dtype, size], addr: UnsafePointer[Scalar[dtype], address_space=address_space, origin=origin], mask: SIMD[DType.bool, size], alignment: Int = 1)
Stores a value at a memory location, skipping masked lanes.
Parameters:
- size (
Int): Size ofvalue, the data to store.
Args:
- value (
SIMD): The vector containing data to store. - addr (
UnsafePointer): A vector of memory location to store data at. - mask (
SIMD): A binary vector which prevents memory access to certain lanes ofvalue. - alignment (
Int): The alignment of the destination locations. Must be 0 or a power of two constant integer value.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!