Convert vld1_lane_* and other methods to const generics (#1034)

This commit is contained in:
Sparrow Li
2021-03-01 19:49:09 +08:00
committed by GitHub
parent 4f8872b617
commit fc407fb98b
2 changed files with 225 additions and 306 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,13 @@ impl<const IMM: i32, const BITS: i32> ValidateConstImm<IMM, BITS> {
};
}
#[allow(unused)]
macro_rules! static_assert_imm1 {
($imm:ident) => {
let _ = $crate::core_arch::macros::ValidateConstImm::<$imm, 1>::VALID;
};
}
#[allow(unused)]
macro_rules! static_assert_imm2 {
($imm:ident) => {