For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
readfirstlane
readfirstlane(value: UnsafePointer[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[address_space=value.address_space]): The input pointer.
Returns:
UnsafePointer[value.type, value.origin, address_space=value.address_space]: 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[dtype]): The input scalar value.
Returns:
Scalar[dtype]: The value in the lowest active lane of the input operand.