-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/arm: use asm fallback when clang intrinsics unusable
Instead of manually defining macros like __ARM_FEATURE_CRC32 to get the intrinsic headers of clang 15 and earlier to work, just use inline assembly. This should be a better solution as it does not rely on clang implementation details as much. We already used an inline assembly fallback for veor3q_u8 with gcc 8, and with clang 7 through 12. This commit extends the same pattern to the crc32 and dotprod intrinsics, and extends the version range to clang 15. It also drops gcc 8 from the veor3q_u8 fallback, as that is just a single major version and not worth enabling the fallback for.
- Loading branch information
Showing
3 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters