Check architecture bit width is consistent with Postgres

This commit is contained in:
Andrew Kane
2025-03-24 19:03:40 -07:00
parent 4af2b06dc5
commit 9542b5548f

View File

@@ -8,6 +8,9 @@
#error "Requires PostgreSQL 13+"
#endif
/* Check architecture in first header */
StaticAssertDecl(sizeof(Datum) == SIZEOF_DATUM, "Architecture mismatch");
extern uint64 (*BitHammingDistance) (uint32 bytes, unsigned char *ax, unsigned char *bx, uint64 distance);
extern double (*BitJaccardDistance) (uint32 bytes, unsigned char *ax, unsigned char *bx, uint64 ab, uint64 aa, uint64 bb);