Hacker News new | ask | show | jobs
by dragontamer 1291 days ago
> I am confused, CPUs have dedicated instructions for AES encryption and CRC32. Are they slower than AVX512?

Those instructions are literally AVX instructions, and have been _upgraded_ in AVX512 to be 512-bit wide now.

If you use the older 128-bit wide AES-NI instruction, rather than the AVX512-AES-NI instructions, you're 4x slower than me. AVX512 upgrades _ALL_ AVX instructions to 512-bits (and mind you, AES-NI was stuck on 128-bits, so the upgrade to 512-bit is a huge upgrade in practice).

-----

EDIT: CRC32 is implemented with the PCLMULQDQ instruction, which has also been upgraded to AVX512.