Skip to content

Commit 644a91e

Browse files
committed
fix comment in code
1 parent 963256b commit 644a91e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85674,7 +85674,8 @@ void blobSpotFree(BlobSpot *pBlobSpot);
8567485674
/*
8567585675
* Accessor for node binary format
8567685676
* - default format is the following:
85677-
* [u64 nRowid] [u16 nEdges] [2 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
85677+
* [u64 nRowid] [u16 nEdges] [6 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
85678+
* Note, that 6 byte padding after nEdges required to align [node vector] by word boundary and avoid unaligned reads
8567885679
* Note, that node vector and edge vector can have different representations (and edge vector can be smaller in size than node vector)
8567985680
*/
8568085681
int nodeEdgesMaxCount(const DiskAnnIndex *pIndex);

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85674,7 +85674,8 @@ void blobSpotFree(BlobSpot *pBlobSpot);
8567485674
/*
8567585675
* Accessor for node binary format
8567685676
* - default format is the following:
85677-
* [u64 nRowid] [u16 nEdges] [2 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
85677+
* [u64 nRowid] [u16 nEdges] [6 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
85678+
* Note, that 6 byte padding after nEdges required to align [node vector] by word boundary and avoid unaligned reads
8567885679
* Note, that node vector and edge vector can have different representations (and edge vector can be smaller in size than node vector)
8567985680
*/
8568085681
int nodeEdgesMaxCount(const DiskAnnIndex *pIndex);

libsql-sqlite3/src/vectorIndexInt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void blobSpotFree(BlobSpot *pBlobSpot);
6565
/*
6666
* Accessor for node binary format
6767
* - default format is the following:
68-
* [u64 nRowid] [u16 nEdges] [2 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
68+
* [u64 nRowid] [u16 nEdges] [6 byte padding] [node vector] [edge vector] * nEdges [trash vector] * (nMaxEdges - nEdges) ([u32 unused] [f32 distance] [u64 edgeId]) * nEdges
69+
* Note, that 6 byte padding after nEdges required to align [node vector] by word boundary and avoid unaligned reads
6970
* Note, that node vector and edge vector can have different representations (and edge vector can be smaller in size than node vector)
7071
*/
7172
int nodeEdgesMaxCount(const DiskAnnIndex *pIndex);

0 commit comments

Comments
 (0)