From ab7aac7be189ea5f291305089e5018ed6845e437 Mon Sep 17 00:00:00 2001 From: Zixian Cai <2891235+caizixian@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:32:47 +1000 Subject: [PATCH] Remove architecture assumptions in MAX_ALIGNMENT_SHIFT (#666) --- src/vm/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/vm/mod.rs b/src/vm/mod.rs index 12c10677f5..4bccea5f94 100644 --- a/src/vm/mod.rs +++ b/src/vm/mod.rs @@ -57,10 +57,6 @@ where const LOG_MIN_ALIGNMENT: usize = LOG_BYTES_IN_INT as usize; /// Allowed minimal alignment in bytes. const MIN_ALIGNMENT: usize = 1 << Self::LOG_MIN_ALIGNMENT; - #[cfg(target_arch = "x86")] - /// Allowed maximum alignment as shift by min alignment. - const MAX_ALIGNMENT_SHIFT: usize = 1 + LOG_BYTES_IN_LONG as usize - LOG_BYTES_IN_INT as usize; - #[cfg(target_arch = "x86_64")] /// Allowed maximum alignment as shift by min alignment. const MAX_ALIGNMENT_SHIFT: usize = LOG_BYTES_IN_LONG as usize - LOG_BYTES_IN_INT as usize;