[PATCH] crc32: Add crc32 implementation using __builtin_aarch64_crc32b

Tom Rini trini at konsulko.com
Fri Sep 24 04:41:19 CEST 2021


On Mon, Aug 30, 2021 at 03:05:23PM +0200, Marek Vasut wrote:

> ARMv8.0 has optional crc32 instruction for crc32 calculation. The
> instruction is mandatory since ARMv8.1. The crc32 calculation is
> faster using the dedicated instruction, e.g. 1.4 GHz iMX8MN gives:
> 
>   => time crc32 0x50000000 0x2000000
>   time: 0.126 seconds # crc32 instruction
>   time: 0.213 seconds # software crc32
> 
> Add implementation using the compiler builtin wrapper for the crc32
> instruction and enable it by default, since we don't support any
> platforms which do not implement this instruction.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210923/1af50faa/attachment.sig>


More information about the U-Boot mailing list