import "cuelang.org/go/pkg/math/bits"
And returns the bitwise and of a and b.
At returns the value of the i'th bit of x.
Clear returns the bitwise and not of a and b (a &^ b in Go).
Len returns the length of the absolute value of x in bits. The bit length of 0 is 0.
Lsh returns x shifted left by n bits.
OnesCount returns the number of one bits ("population count") in x.
Or returns the bitwise or of a and b (a | b in Go).
Rsh returns x shifted right by n bits.
SetBit returns x with x's i'th bit set to b (0 or 1). That is, if b is 1 SetBit returns x with its i'th bit set; if b is 0 SetBit returns x with its i'th bit cleared.
Xor returns the bitwise xor of a and b (a ^ b in Go).
Package bits imports 6 packages (graph) and is imported by 2 packages. Updated 2021-01-26. Refresh now. Tools for package owners.