From 1e851c12c07f4a1bde4793c4d6a5b8e103ae7efd Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 21 Aug 2023 22:55:24 -0700 Subject: [PATCH] Updated comment [skip ci] --- src/hnsw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnsw.h b/src/hnsw.h index 042e0a0..eedc593 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -81,7 +81,7 @@ /* Optimal ML from paper */ #define HnswGetMl(m) (1 / log(m)) -/* Ensure fits in uint8 */ +/* Ensure fits on page and in uint8 */ #define HnswGetMaxLevel(m) Min(((BLCKSZ - MAXALIGN(SizeOfPageHeaderData) - MAXALIGN(sizeof(HnswPageOpaqueData)) - offsetof(HnswNeighborTupleData, indextids) - sizeof(ItemIdData)) / (sizeof(ItemPointerData)) / m) - 2, 255) /* Variables */