Mojo function
masked_store
masked_store[size: Int](value: SIMD[type, size], addr: UnsafePointer[SIMD[type, 1], address_space, exclusive, alignment], mask: SIMD[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[type, size]
): The vector containing data to store. - βaddr (
UnsafePointer[SIMD[type, 1], address_space, exclusive, alignment]
): A vector of memory location to store data at. - βmask (
SIMD[bool, size]
): 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!
π What went wrong?