From dca1a1065adbf71713fe090d8566cd2b91b7c940 Mon Sep 17 00:00:00 2001 From: Ivan Boldyrev Date: Mon, 11 Sep 2023 22:50:59 +0400 Subject: [PATCH] Fix platform constants --- src/platform.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform.rs b/src/platform.rs index 2a0e989..4f6a8bb 100644 --- a/src/platform.rs +++ b/src/platform.rs @@ -13,7 +13,7 @@ cfg_if::cfg_if! { } else if #[cfg(blake3_neon)] { pub const MAX_SIMD_DEGREE: usize = 4; } else if #[cfg(blake3_wasm32_simd)] { - pub const MAX_SIMD_DEGREE: usize = 8; + pub const MAX_SIMD_DEGREE: usize = 4; } else { pub const MAX_SIMD_DEGREE: usize = 1; } @@ -109,7 +109,6 @@ impl Platform { #[cfg(blake3_neon)] Platform::NEON => 4, #[cfg(blake3_wasm32_simd)] - // TODO is it 8 or 4??? SSE4 has 4... Platform::WASM32_SIMD => 4, }; debug_assert!(degree <= MAX_SIMD_DEGREE);