[PATCH v2 00/12] lib/crc: improve how arch-optimized code is integrated

Martin K. Petersen martin.petersen at oracle.com
Tue Jun 10 05:16:03 AEST 2025


Eric,

> This series improves how lib/crc supports arch-optimized code. First,
> instead of the arch-optimized CRC code being in arch/$(SRCARCH)/lib/,
> it will now be in lib/crc/$(SRCARCH)/. Second, the API functions (e.g.
> crc32c()), arch-optimized functions (e.g. crc32c_arch()), and generic
> functions (e.g. crc32c_base()) will now be part of a single module for
> each CRC type, allowing better inlining and dead code elimination. The
> second change is made possible by the first.

Looks good to me!

Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>

-- 
Martin K. Petersen


More information about the Linuxppc-dev mailing list