package wal import "hash/crc32" // crc32cTable is the CRC-32 table using the Castagnoli polynomial (0x82F63B78 // reflected). Required by design §3.2 line 359 for all WAL CRC computations. // // Distinct from crc32.IEEE (Ethernet/PNG polynomial 0xEDB88320) — the two // produce unrelated checksums for the same input. SSE4.2 native CRC32 // instruction only supports Castagnoli, so this table also enables hardware // acceleration via Go's standard library internals. var crc32cTable = crc32.MakeTable(crc32.Castagnoli)