Skip to content

Instantly share code, notes, and snippets.

@oconnor663
Created August 19, 2024 18:58
Show Gist options
  • Save oconnor663/4183a403cc09974aa03046ead42dffe3 to your computer and use it in GitHub Desktop.
Save oconnor663/4183a403cc09974aa03046ead42dffe3 to your computer and use it in GitHub Desktop.
comment out new XOF optimizations
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