mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for SingleBitLen (#13487)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>pull/13497/head
parent
1f2c098fe7
commit
f031d48b2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue