From 356cd6af4fe856dfc1b68cc30a9704a2e546a585 Mon Sep 17 00:00:00 2001 From: Saveliy Yusufov Date: Mon, 12 Feb 2024 17:14:37 -0500 Subject: [PATCH] Expose `cobra_apply` for fast bit reverseal --- src/cobra.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cobra.rs b/src/cobra.rs index ed7bef6..43e0964 100644 --- a/src/cobra.rs +++ b/src/cobra.rs @@ -167,7 +167,7 @@ pub(crate) fn bit_reverse_permutation(buf: &mut [T]) { /// [2] Christian Knauth, Boran Adas, Daniel Whitfield, Xuesong Wang, Lydia Ickler, Tim Conrad, Oliver Serang: /// Practically efficient methods for performing bit-reversed permutation in C++11 on the x86-64 architecture /// [3] -pub(crate) fn cobra_apply(v: &mut [T], log_n: usize) { +pub fn cobra_apply(v: &mut [T], log_n: usize) { if log_n <= 2 * LOG_BLOCK_WIDTH { bit_rev(v, log_n); return;