Skip to content

Commit

Permalink
removed the definition of mask
Browse files Browse the repository at this point in the history
  • Loading branch information
kenta7777 committed Mar 11, 2019
1 parent 0ede9e6 commit 18b40c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/librustc/mir/interpret/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,3 @@ pub fn truncate(value: u128, size: Size) -> u128 {
// truncate (shift left to drop out leftover values, shift right to fill with zeroes)
(value << shift) >> shift
}

pub fn mask(size: Size) -> u128 {
let size = size.bits();
let shift = 128 - size;
!0u128 >> shift
}

0 comments on commit 18b40c6

Please sign in to comment.