]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rename pg_crc32c_sse42_choose.c for general purpose
authorJohn Naylor <john.naylor@postgresql.org>
Mon, 23 Feb 2026 12:19:49 +0000 (19:19 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Mon, 23 Feb 2026 12:24:56 +0000 (19:24 +0700)
commitb9278871f991e0c1419b96b7508fe5206903fb1a
tree49b95d3f0da4efb66f36af439cb11f767f31f318
parent55f385932920a232c490fe594d44fb9a9a236c5e
Rename pg_crc32c_sse42_choose.c for general purpose

Future commits will consolidate the CPU feature detection functionality
now scattered around in various files, and the CRC "*_choose.c"
files seem to be the natural place for it. For now, just rename in
a separate commit to make it easier to follow the git log. Do the
minimum necessary to keep the build systems functional, and build the
new file pg_cpu_x86.c unconditionally using guards to control the
visibility of its contents, following the model of some more recent
files in src/port.

Limit scope to x86 to reduce the number of moving parts, since the
motivation for doing this now is to clear out some technical debt
before adding AVX2 detection. Arm is left for future work.

Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Discussion: https://postgr.es/m/CANWCAZbgEUFw7LuYSVeJ=Tj98R5HoOB1Ffeqk3aLvbw5rU5NTw@mail.gmail.com
configure
configure.ac
src/port/Makefile
src/port/meson.build
src/port/pg_cpu_x86.c [moved from src/port/pg_crc32c_sse42_choose.c with 94% similarity]