libnxz / power-gzip

POWER NX zlib compliant library
23 stars 18 forks source link

Replace crc32_ppc_asm.s with an implementation based on built-ins #51

Closed tuliom closed 2 years ago

tuliom commented 3 years ago

File lib/crc32_ppc_asm.s was implemented to be executed on POWER8. However, the NX GZIP accelerator is available on POWER9.

We might get a small performance improvement by using an implementation in C using built-ins while building with -mcpu=power9.

tuliom commented 3 years ago

More importantly: P9 provides new instructions that could help with memory accesses on little-endian systems.