File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 7171
7272#define HAS_MULTIPLE_ONES (x ) ((bitmapword) RIGHTMOST_ONE(x) != (x))
7373
74- /* Select appropriate bit-twiddling functions for bitmap word size */
75- #if BITS_PER_BITMAPWORD == 32
76- #define bmw_leftmost_one_pos (w ) pg_leftmost_one_pos32(w)
77- #define bmw_rightmost_one_pos (w ) pg_rightmost_one_pos32(w)
78- #define bmw_popcount (w ) pg_popcount32(w)
79- #elif BITS_PER_BITMAPWORD == 64
80- #define bmw_leftmost_one_pos (w ) pg_leftmost_one_pos64(w)
81- #define bmw_rightmost_one_pos (w ) pg_rightmost_one_pos64(w)
82- #define bmw_popcount (w ) pg_popcount64(w)
83- #else
84- #error "invalid BITS_PER_BITMAPWORD"
85- #endif
86-
8774#ifdef USE_ASSERT_CHECKING
8875/*
8976 * bms_is_valid_set - for cassert builds to check for valid sets
Original file line number Diff line number Diff line change @@ -73,6 +73,19 @@ typedef enum
7373 BMS_MULTIPLE , /* >1 member */
7474} BMS_Membership ;
7575
76+ /* Select appropriate bit-twiddling functions for bitmap word size */
77+ #if BITS_PER_BITMAPWORD == 32
78+ #define bmw_leftmost_one_pos (w ) pg_leftmost_one_pos32(w)
79+ #define bmw_rightmost_one_pos (w ) pg_rightmost_one_pos32(w)
80+ #define bmw_popcount (w ) pg_popcount32(w)
81+ #elif BITS_PER_BITMAPWORD == 64
82+ #define bmw_leftmost_one_pos (w ) pg_leftmost_one_pos64(w)
83+ #define bmw_rightmost_one_pos (w ) pg_rightmost_one_pos64(w)
84+ #define bmw_popcount (w ) pg_popcount64(w)
85+ #else
86+ #error "invalid BITS_PER_BITMAPWORD"
87+ #endif
88+
7689
7790/*
7891 * function prototypes in nodes/bitmapset.c
You can’t perform that action at this time.
0 commit comments