PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static int | pg_popcount32_slow (uint32 word) |
static int | pg_popcount64_slow (uint64 word) |
int | pg_popcount32 (uint32 word) |
int | pg_popcount64 (uint64 word) |
uint64 | pg_popcount (const char *buf, int bytes) |
Variables | |
const uint8 | pg_leftmost_one_pos [256] |
const uint8 | pg_rightmost_one_pos [256] |
const uint8 | pg_number_of_ones [256] |
uint64 pg_popcount | ( | const char * | buf, |
int | bytes | ||
) |
Definition at line 296 of file pg_bitutils.c.
References buf, pg_number_of_ones, pg_popcount32(), pg_popcount64(), and TYPEALIGN.
Referenced by bit_bit_count(), bloom_prop_bits_set(), bytea_bit_count(), GetWALBlockInfo(), heap_tuple_infomask_flags(), process_pipe_input(), and sizebitvec().
int pg_popcount32 | ( | uint32 | word | ) |
Definition at line 278 of file pg_bitutils.c.
References pg_popcount32_slow(), and word().
Referenced by pg_popcount(), and plan_single_revoke().
|
static |
Definition at line 223 of file pg_bitutils.c.
References pg_number_of_ones, and word().
Referenced by pg_popcount32().
int pg_popcount64 | ( | uint64 | word | ) |
Definition at line 284 of file pg_bitutils.c.
References pg_popcount64_slow(), and word().
Referenced by pg_popcount(), and visibilitymap_count().
|
static |
Definition at line 245 of file pg_bitutils.c.
References pg_number_of_ones, and word().
Referenced by pg_popcount64().
const uint8 pg_leftmost_one_pos[256] |
Definition at line 34 of file pg_bitutils.c.
Referenced by AllocSetFreeIndex(), pg_leftmost_one_pos32(), and pg_leftmost_one_pos64().
const uint8 pg_number_of_ones[256] |
Definition at line 87 of file pg_bitutils.c.
Referenced by hemdistsign(), pg_popcount(), pg_popcount32_slow(), and pg_popcount64_slow().
const uint8 pg_rightmost_one_pos[256] |
Definition at line 62 of file pg_bitutils.c.
Referenced by pg_rightmost_one_pos32(), and pg_rightmost_one_pos64().