Skip to main content

function

bit_not

bit_not[type: DType, simd_width: Int](val: SIMD[type, simd_width]) -> SIMD[$0, $1]

Performs a bitwise NOT operation on an integral.

Parameters:

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

Args:

  • val (SIMD[type, simd_width]): The input value.

Returns:

A SIMD value where the element at position i is computed as a bitwise NOT of the integer value at position i of the input value.