diff --git a/fixed_wide_vectors/src/macros/fixed_wide.rs b/fixed_wide_vectors/src/macros/fixed_wide.rs index ff4e075..3cb65ce 100644 --- a/fixed_wide_vectors/src/macros/fixed_wide.rs +++ b/fixed_wide_vectors/src/macros/fixed_wide.rs @@ -36,19 +36,6 @@ macro_rules! impl_wide_vector_operations_1arg_not_const_generic { } }; } -#[doc(hidden)] -#[macro_export(local_inner_macros)] -macro_rules! do_macro_repeated{ - ( - $macro:ident, - $any:tt, - $($repeated:tt),* - )=>{ - $( - $crate::$macro!($repeated, $any); - )* - }; -} #[doc(hidden)] #[macro_export(local_inner_macros)] @@ -57,7 +44,7 @@ macro_rules! do_macro_8x8{ $macro:ident, $any:tt )=>{ - $crate::do_macro_repeated!($macro, $any, + $crate::macro_repeated!($macro, $any, (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1), (1,2),(2,2),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2), (1,3),(2,3),(3,3),(4,3),(5,3),(6,3),(7,3),(8,3), @@ -77,7 +64,7 @@ macro_rules! do_macro_8{ $macro:ident, $any:tt )=>{ - $crate::do_macro_repeated!($macro, $any, 1,2,3,4,5,6,7,8); + $crate::macro_repeated!($macro, $any, 1,2,3,4,5,6,7,8); }; } diff --git a/fixed_wide_vectors/src/macros/mod.rs b/fixed_wide_vectors/src/macros/mod.rs index 30d20cc..adf672a 100644 --- a/fixed_wide_vectors/src/macros/mod.rs +++ b/fixed_wide_vectors/src/macros/mod.rs @@ -4,3 +4,17 @@ pub mod fixed_wide; pub mod common; pub mod vector; pub mod matrix; + +#[doc(hidden)] +#[macro_export(local_inner_macros)] +macro_rules! macro_repeated{ + ( + $macro:ident, + $any:tt, + $($repeated:tt),* + )=>{ + $( + $crate::$macro!($repeated, $any); + )* + }; +}