Skip to content

Commit

Permalink
Remove architecture assumptions in MAX_ALIGNMENT_SHIFT (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
caizixian authored Sep 20, 2022
1 parent 9473d7b commit ab7aac7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ab7aac7

Please sign in to comment.