Skip to main content
Version: 1.0

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:

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.