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).
bit_not
def bit_not[dtype: DType, width: SIMDLength, //](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 (
SIMDLength): SIMD width used for the computation.
Args:
- val (
SIMD[dtype, width]): The input value.
Returns:
SIMD[dtype, width]: 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.