Re: vectorized CRC on ARM64
John Naylor <johncnaylorls@gmail.com>
From: John Naylor <johncnaylorls@gmail.com>
To: Tomas Vondra <tomas@vondra.me>
Cc: Nathan Bossart <nathandbossart@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-05T01:56:05Z
Lists: pgsql-hackers
On Sun, Apr 5, 2026 at 1:36 AM Tomas Vondra <tomas@vondra.me> wrote: > I happened to do some testing on rpi5 with a 32-bit user space, and when > building with this commit I get these warnings from clang: > pg_crc32c_armv8_choose.c:112:1: warning: unused function > 'pg_pmull_available' [-Wunused-function] > 112 | pg_pmull_available(void) > | ^~~~~~~~~~~~~~~~~~ > 1 warning generated. > > I suppose the pg_pmull_available() needs to be if-defed with > USE_PMULL_CRC32C_WITH_RUNTIME_CHECK. That removes the warning for me, at > least. Hmm, it looks like gcc is different in that it won't warn on unused static inlines, only unused statics. The fix is right, so done that way, thanks for the report! -- John Naylor Amazon Web Services
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Use C11 alignas instead of pg_attribute_aligned
- 182f6944d3d0 19 (unreleased) landed
- 8061bfd15abe master landed
-
Add missing guard for __builtin_constant_p
- 936d8974c3bc 18.4 landed
- 676626426285 19 (unreleased) landed
-
Exit early from pg_comp_crc32c_pmull for small inputs
- 948ef7cdc499 19 (unreleased) landed
-
Fix unused function warning on Arm platforms
- 2849fe4c9785 19 (unreleased) landed
-
Compute CRC32C on ARM using the Crypto Extension where available
- fbc57f2bc2ee 19 (unreleased) landed