bitwise-not

xod/bits/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.
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
bitwise-not
IN
OUT
OUTbyte

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        auto x = getValue<input_IN>(ctx);
        emitValue<output_OUT>(ctx, ~x);
    }
}