Re: vectorized CRC on ARM64

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: John Naylor <johncnaylorls@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-07-01T07:07:35Z
Lists: pgsql-hackers
On 29.06.26 11:35, John Naylor wrote:
> On Mon, Jun 29, 2026 at 3:52 PM Peter Eisentraut <peter@eisentraut.org> wrote:
>>
>> It looks like this patch was developed concurrently with the switch from
>> pg_attribute_aligned to C11 standard alignas, and it ended up being
>> committed with the "old" style.  I propose the attached patch to update
>> that.  It's only a stylistic change, but good for consistency and as an
>> example for future code.
> 
> Looks good to me.

Committed.




Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Use C11 alignas instead of pg_attribute_aligned

  2. Add missing guard for __builtin_constant_p

  3. Exit early from pg_comp_crc32c_pmull for small inputs

  4. Fix unused function warning on Arm platforms

  5. Compute CRC32C on ARM using the Crypto Extension where available