u128 sdiv intrinsics

This commit is contained in:
est31
2017-01-05 15:23:45 +01:00
parent 37a62269dc
commit b1561fc195
4 changed files with 31 additions and 8 deletions

View File

@@ -100,6 +100,13 @@ fn conv(i: u128) -> U64x2 {
U64x2(i.low(), i.high())
}
#[cfg(all(windows, target_pointer_width="64"))]
fn sconv(i: i128) -> U64x2 {
use int::LargeInt;
let j = i as u128;
U64x2(j.low(), j.high())
}
#[cfg(test)]
#[cfg_attr(target_arch = "arm", macro_use)]
extern crate quickcheck;