In reply to Fipser@VA:
I believe you want to write
in_act = in_reg.xor() with (item.index < 4 ? item : 0 );