Skip to main content

function

bit_and

bit_and[type: DType, simd_width: Int](a: SIMD[type, simd_width], b: SIMD[type, simd_width]) -> SIMD[$0, $1]

Performs a bitwise AND operation.

Parameters:

  • type (DType): dtype used for the computation. Constraints: must be integral.
  • simd_width (Int): SIMD width used for the computation.

Args:

  • a (SIMD[type, simd_width]): The first input value.
  • b (SIMD[type, simd_width]): The second input value.

Returns:

A SIMD value where the element at position i is computed as a bitwise AND of the elements at position i of the input values.