Rename "fast" and "slow" popcount functions.

Nathan Bossart <nathan@postgresql.org>

Commit: 8c6653516c5ad23628cc50d4cee1e6446e7f758d
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2026-01-21T20:21:00Z
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

PathChange+/−
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