IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
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:

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:

Returns:

Scalar[dtype]: The value in the lowest active lane of the input operand.