38#include "utils/fmgrprotos.h"
254 which = 1 | (1 << 1);
357 ip_addr(
val)[commonbits / 8] & (1 << (7 - commonbits % 8)))
387 bitmap = 1 | (1 << 1) | (1 << 2) | (1 << 3);
391 for (
i = 0;
i < nkeys;
i++)
451 bitmap &= (1 << 2) | (1 << 3);
456 bitmap &= (1 << 2) | (1 << 3);
461 bitmap &= 1 | (1 << 1);
468 bitmap &= 1 | (1 << 1);
475 bitmap &= (1 << 2) | (1 << 3);
477 bitmap &= 1 | (1 << 1);
540 if (bitmap & ((1 << 2) | (1 << 3)) &&
546 (1 << (7 - commonbits % 8));
553 bitmap &= 1 | (1 << 1) | (1 << 2);
559 bitmap &= 1 | (1 << 1) | (1 << 3);
567 bitmap &= 1 | (1 << 1) | (1 << 2);
569 bitmap &= 1 | (1 << 1) | (1 << 3);
597 bitmap &= 1 | (1 << 1);
605 bitmap &= (1 << 2) | (1 << 3);
626 if (!
leaf && bitmap & (1 | (1 << 1)) &&
632 (1 << (7 - commonbits % 8));
639 bitmap &= 1 | (1 << 2) | (1 << 3);
645 bitmap &= (1 << 1) | (1 << 2) | (1 << 3);
653 bitmap &= 1 | (1 << 2) | (1 << 3);
655 bitmap &= (1 << 1) | (1 << 2) | (1 << 3);
#define Assert(condition)
#define palloc_array(type, count)
#define PG_GETARG_POINTER(n)
#define PG_RETURN_BOOL(x)
int bitncommon(const unsigned char *l, const unsigned char *r, int n)
inet * cidr_set_masklen_internal(const inet *src, int bits)
int bitncmp(const unsigned char *l, const unsigned char *r, int n)
Datum inet_spg_config(PG_FUNCTION_ARGS)
Datum inet_spg_choose(PG_FUNCTION_ARGS)
Datum inet_spg_leaf_consistent(PG_FUNCTION_ARGS)
Datum inet_spg_inner_consistent(PG_FUNCTION_ARGS)
static int inet_spg_node_number(const inet *val, int commonbits)
static int inet_spg_consistent_bitmap(const inet *prefix, int nkeys, ScanKey scankeys, bool leaf)
Datum inet_spg_picksplit(PG_FUNCTION_ARGS)
#define RTNotEqualStrategyNumber
#define RTSubStrategyNumber
#define RTSubEqualStrategyNumber
#define RTSuperEqualStrategyNumber
#define RTEqualStrategyNumber
#define RTLessEqualStrategyNumber
#define RTGreaterEqualStrategyNumber
#define RTGreaterStrategyNumber
#define RTSuperStrategyNumber
#define RTLessStrategyNumber
StrategyNumber sk_strategy
spgChooseResultType resultType
struct spgChooseOut::@54::@57 splitTuple
union spgChooseOut::@54 result
struct spgChooseOut::@54::@55 matchNode
static Datum InetPGetDatum(const inet *X)
static inet * DatumGetInetPP(Datum X)
#define ip_family(inetptr)
#define ip_maxbits(inetptr)