13#define GETENTRY(vec,pos) ((GISTTYPE *) DatumGetPointer((vec)->vector[(pos)].key))
34 errmsg(
"cannot accept a value of type %s",
"intbig_gkey")));
44 errmsg(
"cannot display a value of type %s",
"intbig_gkey")));
191 if ((
sign[
i] & 0xff) != 0xff)
400 for (k = 0; k < maxoff; k++)
592 "signature length in bytes",
bool signconsistent(QUERYTYPE *query, BITVECP sign, int siglen, bool calcnot)
#define BooleanSearchStrategy
Datum g_intbig_consistent(PG_FUNCTION_ARGS)
static int hemdist(GISTTYPE *a, GISTTYPE *b, int siglen)
static int32 sizebitvec(BITVECP sign, int siglen)
static int hemdistsign(BITVECP a, BITVECP b, int siglen)
Datum _intbig_in(PG_FUNCTION_ARGS)
#define GETENTRY(vec, pos)
Datum g_intbig_compress(PG_FUNCTION_ARGS)
Datum g_intbig_decompress(PG_FUNCTION_ARGS)
static int32 unionkey(BITVECP sbase, GISTTYPE *add, int siglen)
Datum _intbig_out(PG_FUNCTION_ARGS)
Datum g_intbig_same(PG_FUNCTION_ARGS)
static GISTTYPE * _intbig_alloc(bool allistrue, int siglen, BITVECP sign)
static bool _intbig_overlap(GISTTYPE *a, ArrayType *b, int siglen)
Datum g_intbig_union(PG_FUNCTION_ARGS)
Datum g_intbig_picksplit(PG_FUNCTION_ARGS)
Datum g_intbig_penalty(PG_FUNCTION_ARGS)
Datum g_intbig_options(PG_FUNCTION_ARGS)
static bool _intbig_contains(GISTTYPE *a, ArrayType *b, int siglen)
static int comparecost(const void *a, const void *b)
#define PG_GETARG_ARRAYTYPE_P(n)
#define DatumGetArrayTypeP(X)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define palloc_object(type)
#define palloc_array(type, count)
#define PG_FREE_IF_COPY(ptr, n)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_DATUM(n)
#define PG_FUNCTION_INFO_V1(funcname)
#define PG_GETARG_UINT16(n)
#define PG_RETURN_DATUM(x)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
#define gistentryinit(e, k, r, pg, o, l)
#define HASHVAL(val, siglen)
#define CALCGTSIZE(flag, siglen)
#define SIGLENBIT(siglen)
#define HASH(sign, val, siglen)
static int pg_cmp_s32(int32 a, int32 b)
void pfree(void *pointer)
void * palloc0(Size size)
#define OffsetNumberNext(offsetNumber)
#define FirstOffsetNumber
PGDLLIMPORT const uint8 pg_number_of_ones[256]
static uint64 pg_popcount(const char *buf, int bytes)
#define qsort(a, b, c, d)
static Datum PointerGetDatum(const void *X)
static Pointer DatumGetPointer(Datum X)
void init_local_reloptions(local_relopts *relopts, Size relopt_struct_size)
void add_local_int_reloption(local_relopts *relopts, const char *name, const char *desc, int default_val, int min_val, int max_val, int offset)
#define RTOldContainsStrategyNumber
#define RTOverlapStrategyNumber
#define RTSameStrategyNumber
#define RTContainsStrategyNumber
#define RTOldContainedByStrategyNumber
#define RTContainedByStrategyNumber
static Size VARSIZE(const void *PTR)
static void SET_VARSIZE(void *PTR, Size len)