Re: centralize CPU feature detection
John Naylor <johncnaylorls@gmail.com>
From: John Naylor <johncnaylorls@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Zsolt Parragi <zsolt.parragi@percona.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
root <tenistarkim@gmail.com>, Nathan Bossart <nathandbossart@gmail.com>
Date: 2026-02-25T02:15:20Z
Lists: pgsql-hackers
Attachments
- v6-0002-Centralize-detection-of-x86-CPU-features.patch (text/x-patch) patch v6-0002
- v6-0003-Refactor-detection-of-x86-ZMM-registers.patch (text/x-patch) patch v6-0003
On Wed, Feb 25, 2026 at 2:59 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > It appears that if you want to build pg_cpu_x86.o unconditionally, > you need to make it more proof against the cases it wasn't getting > built in before. Thanks, I must have stopped watching the buildfarm too early. I've pushed a fix which will get undone as part of v6-0002. On Wed, Feb 25, 2026 at 2:57 AM Zsolt Parragi <zsolt.parragi@percona.com> wrote: > > 2 and 3 looks good too, I only found two more typos: > > > + return pg_comp_crc32c(crc, data, len); > +}; > > That semicolon is not needed > > > And in the commit message: > > "it has been intialized and if" > > That should be initialized Also fixed, thanks. -- John Naylor Amazon Web Services
Commits
-
Remove extraneous PGDLLIMPORT
- ec5981c3816e 19 (unreleased) landed
-
Refactor detection of x86 ZMM registers
- 51bb4a58ed23 19 (unreleased) landed
-
Centralize detection of x86 CPU features
- 16743db061e4 19 (unreleased) landed
-
Fix USE_SLICING_BY_8_CRC32C builds on x86
- 3322f01a11b7 19 (unreleased) landed
-
Rename pg_crc32c_sse42_choose.c for general purpose
- b9278871f991 19 (unreleased) landed