code: func (b *bsiGroup) BitDepth() uint {
  	for i := uint(0); i < 63; i++ {
  		if b.Max-b.Min < (1 << i) {
  			return i
  		}
  	}
  	return 63
  }
docs: // BitDepth returns the number of bits required to store a value between min & max.