Updated comments [skip ci]

This commit is contained in:
Andrew Kane
2024-03-25 15:43:05 -07:00
parent 58eeefeef4
commit 6bc0c47a0a

View File

@@ -1190,9 +1190,9 @@ hamming_distance(PG_FUNCTION_ARGS)
CheckBitLengths(VARBITLEN(a), VARBITLEN(b));
/* TODO Improve performance */
for (uint32 i = 0; i < VARBITBYTES(a); i++)
distance += pg_number_of_ones[ax[i] ^ bx[i]];
/* TODO Decide on return type */
PG_RETURN_FLOAT8((double) distance);
}