File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 71
71
72
72
#define HAS_MULTIPLE_ONES (x ) ((bitmapword) RIGHTMOST_ONE(x) != (x))
73
73
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
-
87
74
#ifdef USE_ASSERT_CHECKING
88
75
/*
89
76
* 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
73
73
BMS_MULTIPLE , /* >1 member */
74
74
} BMS_Membership ;
75
75
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
+
76
89
77
90
/*
78
91
* function prototypes in nodes/bitmapset.c
You can’t perform that action at this time.
0 commit comments