From 176eb762e32929912c303e8246ffe6af66328a2e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 3 Sep 2024 12:51:19 -0700 Subject: [PATCH] name macros better --- fixed_wide_vectors/src/macros/fixed_wide.rs | 10 +++++----- fixed_wide_vectors/src/macros/matrix.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fixed_wide_vectors/src/macros/fixed_wide.rs b/fixed_wide_vectors/src/macros/fixed_wide.rs index 6d882f9..b8fbbae 100644 --- a/fixed_wide_vectors/src/macros/fixed_wide.rs +++ b/fixed_wide_vectors/src/macros/fixed_wide.rs @@ -119,7 +119,7 @@ macro_rules! impl_matrix_wide_mul { #[doc(hidden)] #[macro_export(local_inner_macros)] -macro_rules! impl_matrix_wide_mul_shim3 { +macro_rules! impl_matrix_wide_mul_shim { ( ($outer_info:tt,$inner_info:tt,$rhs_info:tt), ($lhs: expr, $rhs: expr) @@ -129,22 +129,22 @@ macro_rules! impl_matrix_wide_mul_shim3 { } #[doc(hidden)] #[macro_export(local_inner_macros)] -macro_rules! impl_matrix_wide_mul_shim2 { +macro_rules! impl_matrix_wide_mul_8x8 { ( ($outer_info:tt,$inner_info:tt), $rhs_info:tt ) => { - $crate::do_macro_8x8!(impl_matrix_wide_mul_shim3,($outer_info,$inner_info,$rhs_info)); + $crate::do_macro_8x8!(impl_matrix_wide_mul_shim,($outer_info,$inner_info,$rhs_info)); } } #[doc(hidden)] #[macro_export(local_inner_macros)] -macro_rules! impl_matrix_wide_mul_shim1 { +macro_rules! impl_matrix_wide_mul_repeat_rhs { ( ($outer_info:tt,($($rhs_info:tt),+)), $inner_info:tt ) => { - $crate::macro_repeated!(impl_matrix_wide_mul_shim2,($outer_info,$inner_info),$($rhs_info),+); + $crate::macro_repeated!(impl_matrix_wide_mul_8x8,($outer_info,$inner_info),$($rhs_info),+); } } #[doc(hidden)] diff --git a/fixed_wide_vectors/src/macros/matrix.rs b/fixed_wide_vectors/src/macros/matrix.rs index 98d72aa..e457ced 100644 --- a/fixed_wide_vectors/src/macros/matrix.rs +++ b/fixed_wide_vectors/src/macros/matrix.rs @@ -48,7 +48,7 @@ macro_rules! impl_matrix_inner_shim { ) => { $crate::macro_repeated!(impl_matrix_inner,$matrix_info,$($vector_info),+); #[cfg(feature="fixed_wide")] - $crate::macro_repeated!(impl_matrix_wide_mul_shim1,($matrix_info,($($vector_info),+)),$($vector_info),+); + $crate::macro_repeated!(impl_matrix_wide_mul_repeat_rhs,($matrix_info,($($vector_info),+)),$($vector_info),+); } } #[doc(hidden)]