Use <i64>::swap_bytes instead of llvm.bswap.i64
This commit is contained in:
parent
61693f3b53
commit
2112972a64
1 changed files with 1 additions and 7 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue