[skip e2e] Add comment for VectorCount (#14335)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-27 18:00:09 +08:00 committed by GitHub
parent 8c1cfe64ce
commit 2b1daef679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,7 @@ func SingleBitLen(dim int64) int64 {
return dim + 8 - dim%8
}
// VectorCount counts bits by @dim & @length
func VectorCount(dim int64, length int) int64 {
singleBitLen := SingleBitLen(dim)
return int64(length*8) / singleBitLen