aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boldyrev <[email protected]>2023-09-11 22:50:59 +0400
committerJack O'Connor <[email protected]>2025-03-16 21:24:06 -0700
commit268868bd1690aa5a5e13349670c559342807c542 (patch)
tree68b5e014290121ce103168460981d1f6e9d24efd
parentc27ba73939ecc6f1aedf1f68f2140701f53769f7 (diff)
Fix platform constants
-rw-r--r--src/platform.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform.rs b/src/platform.rs
index 9af6089..1c82603 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;
}
@@ -114,7 +114,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);