Skip to content

Commit

Permalink
Use libcore intrinsics instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Sep 9, 2019
1 parent 7082187 commit 76fba09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
if stride >= a {
// This code was copied from the original `align_offset` implementation in
// rust/src/libcore/ptr/mod.rs, refer to it for its documentation
use std::intrinsics::{unchecked_rem, cttz_nonzero};
use core::intrinsics::{unchecked_rem, cttz_nonzero};
#[inline]
fn mod_inv(x: usize, m: usize) -> usize {
const INV_TABLE_MOD_16: [u8; 8] = [1, 11, 13, 7, 9, 3, 5, 15];
Expand Down

0 comments on commit 76fba09

Please sign in to comment.