1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-12 23:06:30 +02:00

Fix platform constants

This commit is contained in:
Ivan Boldyrev 2023-09-11 22:50:59 +04:00
parent 87d286f0e9
commit dca1a1065a

View File

@ -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);