pk.Ary and pk.Array using generic now

This commit is contained in:
Tnze
2022-03-20 01:17:25 +08:00
parent 7997a5faea
commit 4c2510565d
15 changed files with 95 additions and 155 deletions

View File

@ -40,9 +40,8 @@ func NewBitStorage(bits, length int, data []uint64) (b *BitStorage) {
}
b = &BitStorage{
mask: 1<<bits - 1,
bits: bits,
length: length,
mask: 1<<bits - 1,
bits: bits, length: length,
valuesPerLong: 64 / bits,
}
dataLen := calcBitStorageSize(bits, length)