Conditional swap. Replace (f,g) with (g,f) if b == 1; replace (f,g) with (f,g) if b == 0.
0 or 1
See Implementation
Conditional swap. Replace (f,g) with (g,f) if b == 1; replace (f,g) with (f,g) if b == 0.