-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crc: Detect support for pmull and crc instructions on Apple AArch64
With a newer clang, we can use __builtin_cpu_supports which caches all the feature bits. If we are using an older clang, we fall back to querying sysctlbyname for the relevant processor features. PiperOrigin-RevId: 715153229 Change-Id: I570fa349f96829d5da3b32c928480ddf67176cad
- Loading branch information
1 parent
d498bf6
commit 6effb00
Showing
3 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ cc_library( | |
deps = [ | ||
"//absl/base", | ||
"//absl/base:config", | ||
"//absl/types:optional", | ||
], | ||
) | ||
|
||
|
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