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) |
static uint64 | pg_popcount_slow (const char *buf, int bytes) |
static uint64 | pg_popcount_masked_slow (const char *buf, int bytes, bits8 mask) |
int | pg_popcount32 (uint32 word) |
int | pg_popcount64 (uint64 word) |
uint64 | pg_popcount_optimized (const char *buf, int bytes) |
uint64 | pg_popcount_masked_optimized (const char *buf, int bytes, bits8 mask) |
Variables | |
const uint8 | pg_leftmost_one_pos [256] |
const uint8 | pg_rightmost_one_pos [256] |
const uint8 | pg_number_of_ones [256] |
int pg_popcount32 | ( | uint32 | word | ) |
Definition at line 499 of file pg_bitutils.c.
References pg_popcount32_slow(), and word().
Referenced by plan_single_revoke().
|
inlinestatic |
Definition at line 348 of file pg_bitutils.c.
References pg_number_of_ones, and word().
Referenced by pg_popcount32(), pg_popcount_masked_slow(), and pg_popcount_slow().
int pg_popcount64 | ( | uint64 | word | ) |
|
inlinestatic |
Definition at line 370 of file pg_bitutils.c.
References pg_number_of_ones, and word().
Referenced by pg_popcount64(), pg_popcount_masked_slow(), and pg_popcount_slow().
Definition at line 525 of file pg_bitutils.c.
References buf, and pg_popcount_masked_slow().
Referenced by pg_popcount_masked().
Definition at line 444 of file pg_bitutils.c.
References buf, pg_number_of_ones, pg_popcount32_slow(), pg_popcount64_slow(), TYPEALIGN, and UINT64CONST.
Referenced by pg_popcount_masked_optimized().
uint64 pg_popcount_optimized | ( | const char * | buf, |
int | bytes | ||
) |
Definition at line 515 of file pg_bitutils.c.
References buf, and pg_popcount_slow().
Referenced by pg_popcount().
|
static |
Definition at line 398 of file pg_bitutils.c.
References buf, pg_number_of_ones, pg_popcount32_slow(), pg_popcount64_slow(), and TYPEALIGN.
Referenced by pg_popcount_optimized().
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(), pg_popcount64_slow(), pg_popcount_masked(), pg_popcount_masked_slow(), pg_popcount_slow(), and process_pipe_input().
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().