Skip to content

Commit

Permalink
Fix platform constants
Browse files Browse the repository at this point in the history
  • Loading branch information
monoid committed Sep 11, 2023
1 parent 87d286f commit dca1a10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dca1a10

Please sign in to comment.