aboutsummaryrefslogtreecommitdiff
path: root/src/portable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable.rs')
-rw-r--r--src/portable.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portable.rs b/src/portable.rs
index 4181f27..35b5f5d 100644
--- a/src/portable.rs
+++ b/src/portable.rs
@@ -177,6 +177,10 @@ pub fn hash_many<const N: usize>(
}
}
+// This function is test-only. When platform::xof_many() doesn't have an optimized implementation,
+// it loops over platform::compress_xof() instead of falling back to this, so it still benefits
+// from compress optimizations.
+#[cfg(test)]
pub fn xof_many(
cv: &CVWords,
block: &[u8; BLOCK_LEN],