Mojo function
readfirstlane
readfirstlane(value: UnsafePointer[value.type, value.origin, address_space=value.address_space]) -> UnsafePointer[value.type, value.origin, address_space=value.address_space]
Get the value in the lowest active lane of the input operand.
Args:
- βvalue (
UnsafePointer): The input pointer.
Returns:
UnsafePointer: The value in the lowest active lane of the input operand.
readfirstlane(value: Int) -> Int
Get the value in the lowest active lane of the input operand.
Args:
- βvalue (
Int): The input pointer.
Returns:
Int: The value in the lowest active lane of the input operand.
readfirstlane[dtype: DType](value: Scalar[dtype]) -> Scalar[dtype]
Gets the value in the lowest active lane of the input operand.
Constraints:
The scalar type must be 2, 4, or 8 bytes wide.
Parameters:
- βdtype (
DType): The element type.
Args:
- βvalue (
Scalar): The input scalar value.
Returns:
Scalar: The value in the lowest active lane of the input operand.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!