Mojo function
bit_not
bit_not[dtype: DType, width: Int, //](val: SIMD[dtype, width]) -> SIMD[dtype, width]
Performs a bitwise NOT operation on an SIMD vector of integer values.
Constraints:
The element type of the input vector must be integral.
Parameters:
- โdtype (
DType):dtypeused for the computation. - โwidth (
Int): SIMD width used for the computation.
Args:
- โval (
SIMD): The input value.
Returns:
SIMD: 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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!