Compare commits

...

1 Commits

Author SHA1 Message Date
Andrew Kane
9542b5548f Check architecture bit width is consistent with Postgres 2025-03-24 19:03:40 -07:00

View File

@@ -8,6 +8,9 @@
#error "Requires PostgreSQL 13+" #error "Requires PostgreSQL 13+"
#endif #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 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); extern double (*BitJaccardDistance) (uint32 bytes, unsigned char *ax, unsigned char *bx, uint64 ab, uint64 aa, uint64 bb);