1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-12 10:36:15 +02:00

4 first bits ¯\_(ツ)_/¯

This commit is contained in:
divinity76 2024-02-05 16:06:10 +01:00 committed by GitHub
parent 349f8300f9
commit 21459753ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,7 +159,7 @@ static
#elif defined(__aarch64__)
uint64_t id_aa64pfr0_el1;
__asm__ ("mrs %0, ID_AA64PFR0_EL1" : "=r" (id_aa64pfr0_el1));
if((id_aa64pfr0_el1 >> 20) & 0xF) {
if((id_aa64pfr0_el1 >> 20) & (1<<0 | 1<<1 | 1<<2 | 1 << 3)) {
features = ARM_NEON;
} else {
features = 0;