Home | History | Annotate | Download | only in big

Lines Matching defs:Bit

439 // The bit length of 0 is 0.
845 // Bit returns the value of the i'th bit of x. That is, it
846 // returns (x>>i)&1. The bit index i must be >= 0.
847 func (x *Int) Bit(i int) uint {
851 return uint(x.abs[0] & 1) // bit 0 is same for -x
856 panic("negative bit index")
860 return t.bit(uint(i)) ^ 1
863 return x.abs.bit(uint(i))
866 // SetBit sets z to x, with x's i'th bit set to b (0 or 1).
872 panic("negative bit index")