1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-04-27 21:05:05 +02:00

forgort blake3_simd_degree()

This commit is contained in:
divinity76 2024-02-06 11:52:38 +01:00 committed by GitHub
parent f9b332c61c
commit 059ad2d922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -320,6 +320,11 @@ size_t blake3_simd_degree(void) {
#endif
#if BLAKE3_USE_NEON == 1
return 4;
#elif defined(__aarch64__)
const enum cpu_feature features = get_cpu_features();
if(features & ARM_NEON) {
return 4;
}
#endif
return 1;
}