bitwise-or

xod/bits/bitwise-or

Computes bitwise OR of two or more bytes. A resulting bit at a particular position is 0 only if all corresponding bits of inputs are 0.
bitwise-or
@/bitwise-or
Computes bitwise OR of two or more bytes. A resulting bit at a particular position is 0 only if all corresponding bits of inputs are 0.
IN1byte
IN2byte (variadic)
bitwise-or
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);
    }
}