Remove the absv implementation, it isn't needed by Rust

This commit is contained in:
Amanieu d'Antras
2016-08-11 08:18:06 +01:00
parent f22f7cdd86
commit 07afa89f10
2 changed files with 0 additions and 44 deletions

View File

@@ -118,23 +118,3 @@ impl IndexMut<RangeFull> for U64 {
unsafe { &mut *(self as *const _ as *mut u64) }
}
}
macro_rules! absv_i2 {
($intrinsic:ident : $ty:ty) => {
#[no_mangle]
pub extern "C" fn $intrinsic(x: $ty) -> $ty {
let n = <$ty>::bits();
if x == 1 << (n - 1) {
panic!();
}
let y = x >> (n - 1);
(x ^ y) - y
}
}
}
absv_i2!(__absvsi2: i32);
absv_i2!(__absvdi2: i64);
// TODO(rust-lang/35118)?
// absv_i2!(__absvti2, i128);