#![allow(dead_code, unused_macros)]
#[cfg(all(
target_pointer_width = "32",
any(
target_arch = "aarch64",
target_arch = "amdgpu",
target_arch = "arm64ec",
target_arch = "bpf",
target_arch = "loongarch64",
target_arch = "mips64",
target_arch = "mips64r6",
target_arch = "nvptx64",
target_arch = "powerpc64",
target_arch = "riscv64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "wasm64",
target_arch = "x86_64",
),
))]
#[macro_use]
mod imp {
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
macro_rules! ptr_reg {
($ptr:ident) => {{
let _: *const _ = $ptr; #[allow(clippy::ptr_as_ptr)]
{
crate::utils::zero_extend64::ptr($ptr as *mut ())
}
}};
}
pub(crate) type RegSize = u64;
}
#[cfg(not(all(
target_pointer_width = "32",
any(
target_arch = "aarch64",
target_arch = "amdgpu",
target_arch = "arm64ec",
target_arch = "bpf",
target_arch = "loongarch64",
target_arch = "mips64",
target_arch = "mips64r6",
target_arch = "nvptx64",
target_arch = "powerpc64",
target_arch = "riscv64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "wasm64",
target_arch = "x86_64",
),
)))]
#[macro_use]
mod imp {
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
macro_rules! ptr_reg {
($ptr:ident) => {{
let _: *const _ = $ptr; $ptr }};
}
#[cfg(target_pointer_width = "16")]
pub(crate) type RegSize = u16;
#[cfg(target_pointer_width = "32")]
pub(crate) type RegSize = u32;
#[cfg(target_pointer_width = "64")]
pub(crate) type RegSize = u64;
#[cfg(target_pointer_width = "128")]
pub(crate) type RegSize = u128;
}
pub(crate) use self::imp::RegSize;