Add static_assert_imm_s10 macros
This commit is contained in:
parent
efedfe9fdd
commit
dae66cfb06
1 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,11 @@
|
|||
//! Utility macros.
|
||||
|
||||
macro_rules! static_assert_imm_s10 {
|
||||
($imm:ident) => {
|
||||
let _ = $crate::core_arch::macros::ValidateConstImm::<$imm, -512, 511>::VALID;
|
||||
};
|
||||
}
|
||||
|
||||
//immediate value: -4096:4088
|
||||
macro_rules! constify_imm_s13 {
|
||||
($imm_s13:expr, $expand:ident) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue