bitwise-and

xod/bits/bitwise-and

Computes bitwise AND of two or more bytes. A resulting bit at a particular position is 1 only if corresponding bits of all inputs are 1.
bitwise-and
@/bitwise-and
Computes bitwise AND of two or more bytes. A resulting bit at a particular position is 1 only if corresponding bits of all inputs are 1.
IN1byte
IN2byte (variadic)
bitwise-and
IN1
IN2
OUT
OUTbyte

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        auto in1 = getValue<input_IN1>(ctx);
        auto in2 = getValue<input_IN2>(ctx);
        emitValue<output_OUT>(ctx, in1 & in2);
    }
}