Use <i64>::swap_bytes instead of llvm.bswap.i64

This commit is contained in:
bjorn3 2019-07-31 13:48:46 +02:00 committed by gnzlbg
parent 61693f3b53
commit 2112972a64

View file

@ -12,13 +12,7 @@ use stdarch_test::assert_instr;
#[cfg_attr(test, assert_instr(bswap))]
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _bswap64(x: i64) -> i64 {
bswap_i64(x)
}
#[allow(improper_ctypes)]
extern "C" {
#[link_name = "llvm.bswap.i64"]
fn bswap_i64(x: i64) -> i64;
x.swap_bytes()
}
#[cfg(test)]