crc32c
’s hardware accelerated code doesn’t handle ARM 32-bit at all, but only 64-bit. Make the check in configure.ac
check for this architecture explicitly. This change does not affect non-ARM architectures.
For the release binaries, the current configure.ac
check happens to work: it enables it on aarch64 but disables it for armhf. However some combination of compiler version and settings can cause this check to succeed on armhf (as reported on IRC). So make the 64-bit platform requirement explicit.
(details: while the check already explicitly checks the __crc32d
intrinsic, which strictly doesn’t exist on 32-bit ARM, this is not enough! gcc happens to helpfully emulate it:
These built-in intrinsics for the ARMv8-A CRC32 extension are available when the -march=armv8-a+crc switch is used “uint32_t __crc32d (uint32_t, uint64_t)” Form of expected instruction(s): Two crc32w r0, r0, r0 instructions for AArch32
)