Computes bitwise NOT of a byte. Also known as complement. A resulting bit at a particular position is 1 when input bit at the same position is 0, and vice versa.
bitwise-not
@/bitwise-not
Computes bitwise NOT of a byte. Also known as complement. A resulting bit at a particular position is 1 when input bit at the same position is 0, and vice versa.
INbyte
OUTbyte
C++ implementation
#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
auto x = getValue<input_IN>(ctx);
emitValue<output_OUT>(ctx, ~x);
}
}