• Yuqi Gu's avatar
    MDEV-23495: Refine Arm64 PMULL runtime check in MariaDB · 151fc0ed
    Yuqi Gu authored
    Raspberry Pi 4 supports crc32 but doesn't support pmull (MDEV-23030).
    
    The PR #1645 offers a solution to fix this issue. But it does not consider
    the condition that the target platform does support crc32 but not support PMULL.
    
    In this condition, it should leverage the Arm64 crc32 instruction (__crc32c) and
    just only skip parallel computation (pmull/vmull) rather than skip all hardware
    crc32 instruction of computation.
    
    The PR also removes unnecessary CRC32_ZERO branch in 'crc32c_aarch64' for MariaDB,
    formats the indent and coding style.
    
    Change-Id: I76371a6bd767b4985600e8cca10983d71b7e9459
    Signed-off-by: default avatarYuqi Gu <yuqi.gu@arm.com>
    151fc0ed
crc32_arm64.c 9.54 KB