ctSelectInt static method
Branchless select: returns b if choice else a.
Implementation
static int ctSelectInt(int a, int b, bool choice) {
final mask = choice ? -1 : 0; // 0 or -1
final s = a ^ (mask & (a ^ b));
assert(s == a || s == b);
return s;
}