refactor architecture-specific popcount code

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: refactor architecture-specific popcount code
Date: 2026-01-14 20:40:02
Message-ID: aWf_InS1VrbeXAfP@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Right now, the organization of this code is weird. All AArch64-specific
implementations live in an AArch64-specific file, the AVX-512
implementations live in their own file, and the architecture-agnostic and
SSE4.2 implementations live in pg_bitutils.c. The attached patches move
the SSE4.2 implementations to the AVX-512 file (which is renamed
appropriately), and they update some function names to be more descriptive,
i.e., "fast" is replaced with "sse42" and "slow" is replaced with
"generic".

I probably should've done this a while ago...

--
nathan

Attachment Content-Type Size
v1-0001-Rename-pg_popcount_avx512.c-to-pg_popcount_x86_64.patch text/plain 2.1 KB
v1-0002-Move-x86-popcount-code-to-pg_popcount_x86_64.c.patch text/plain 17.5 KB
v1-0003-Rename-fast-and-slow-popcount-functions.patch text/plain 9.4 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2026-01-14 20:40:21 Re: Updating IPC::Run in CI?
Previous Message Dmitry Dolgov 2026-01-14 20:33:07 Re: [[BUG] pg_stat_statements crashes with var and non-var expressions in IN clause