Re: Optimize Arm64 crc32 implementation in PostgreSQL

2023-08-21 Thread Nathan Bossart
On Mon, Aug 21, 2023 at 09:32:42AM +, Xiang Gao wrote: > Currently PostgreSQL has three different variants of a 32-bit CRC > calculation: CRC-32C, CRC-32(Ethernet polynomial), > and a legacy CRC-32 version that uses the lookup table. Some ARMv8 (AArch64) > CPUs implement the CRC32 extension w

Optimize Arm64 crc32 implementation in PostgreSQL

2023-08-21 Thread Xiang Gao
Hi all, Currently PostgreSQL has three different variants of a 32-bit CRC calculation: CRC-32C, CRC-32(Ethernet polynomial), and a legacy CRC-32 version that uses the lookup table. Some ARMv8 (AArch64) CPUs implement the CRC32 extension which is equivalent with CRC-32(Ethernet polynomial), so th