Word description Selects between two integers in constant time without branching. If flag is 1, returns a. If flag is 0, returns b. Uses arithmetic masking to avoid conditional branches.
Warning Flag MUST be exactly 0 or 1. Other values produce undefined results.