Description

SetBit sets z to x, with x's i'th bit set to b (0 or 1). That is, if b is 1 SetBit sets z = x | (1 << i); if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1, SetBit will panic.

SetBit is referenced in 100 repositories

github.com/golang/go github.com/dedis/crypto github.com/cznic/mathutil

...