idx = RT[i] << 2 | RA[i] << 1 | RB[i]
RT[i] = (RC & (1<<idx)) != 0
-mode may be used to do inversion of ordering, similar to carryless mul
+mode (3 bit) may be used to do inversion of ordering, similar to carryless mul.
+
+also, another possible variant involving swizzle and vec4:
+
+ for i in range(8):
+ idx = RA.x[i] << 2 | RA.y[i] << 1 | RA.z[i]
+ RT[i] = (RA.w[i] & (1<<idx)) != 0
+
another mode selection would be CRs not Ints.