From 059ad2d9220dfa744f13cb79dc9945ff4a97fb4c Mon Sep 17 00:00:00 2001 From: divinity76 Date: Tue, 6 Feb 2024 11:52:38 +0100 Subject: [PATCH] forgort blake3_simd_degree() --- c/blake3_dispatch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c index 438f47c..95f9fb0 100644 --- a/c/blake3_dispatch.c +++ b/c/blake3_dispatch.c @@ -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; }