Skip to content

Commit 3dc6873

Browse files
committed
Use <i64>::swap_bytes instead of llvm.bswap.i64
1 parent 8346cda commit 3dc6873

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/core_arch/src/x86_64/bswap.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ use stdarch_test::assert_instr;
1212
#[cfg_attr(test, assert_instr(bswap))]
1313
#[stable(feature = "simd_x86", since = "1.27.0")]
1414
pub unsafe fn _bswap64(x: i64) -> i64 {
15-
bswap_i64(x)
16-
}
17-
18-
#[allow(improper_ctypes)]
19-
extern "C" {
20-
#[link_name = "llvm.bswap.i64"]
21-
fn bswap_i64(x: i64) -> i64;
15+
x.swap_bytes()
2216
}
2317

2418
#[cfg(test)]

0 commit comments

Comments
 (0)