Created
August 19, 2024 18:58
-
-
Save oconnor663/4183a403cc09974aa03046ead42dffe3 to your computer and use it in GitHub Desktop.
comment out new XOF optimizations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/platform.rs b/src/platform.rs | |
index cd8ef63..4452780 100644 | |
--- a/src/platform.rs | |
+++ b/src/platform.rs | |
@@ -292,13 +292,13 @@ impl Platform { | |
return; | |
} | |
match self { | |
- // Safe because detect() checked for platform support. | |
- #[cfg(blake3_avx512_ffi)] | |
- #[cfg(unix)] | |
- #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] | |
- Platform::AVX512 => unsafe { | |
- crate::avx512::xof_many(cv, block, block_len, counter, flags, out) | |
- }, | |
+ // // Safe because detect() checked for platform support. | |
+ // #[cfg(blake3_avx512_ffi)] | |
+ // #[cfg(unix)] | |
+ // #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] | |
+ // Platform::AVX512 => unsafe { | |
+ // crate::avx512::xof_many(cv, block, block_len, counter, flags, out) | |
+ // }, | |
_ => { | |
// For platforms without an optimized xof_many, fall back to a loop over | |
// compress_xof. This is still faster than portable code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment