Rename "fast" and "slow" popcount functions.
Nathan Bossart <nathan@postgresql.org>
Rename "fast" and "slow" popcount functions. Since we now have several implementations of the popcount functions, let's give them more descriptive names. This commit replaces "slow" with "portable" and "fast" with "sse42". While the POPCNT instruction is technically not part of SSE4.2, this naming scheme is close enough in practice and is arguably easier to understand than using "popcnt" instead. Reviewed-by: John Naylor <johncnaylorls@gmail.com> Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/aWf_InS1VrbeXAfP%40nathan
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/pg_bitutils.h | modified | +4 −4 |
| src/port/pg_bitutils.c | modified | +19 −19 |
| src/port/pg_popcount_x86.c | modified | +30 −26 |
Discussion
- refactor architecture-specific popcount code 40 messages · 2026-01-14 → 2026-02-23