[skip ci]Add comment for SingleBitLen (#13487)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/13497/head
shaoyue 2021-12-16 09:39:22 +08:00 committed by GitHub
parent 1f2c098fe7
commit f031d48b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ func CalcFloatDistance(dim int64, left, right []float32, metric string) ([]float
}
////////////////////////////////////////////////////////////////////////////////
// SingleBitLen returns the bit length of @dim
func SingleBitLen(dim int64) int64 {
if dim%8 == 0 {
return dim