We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8346cda commit 3dc6873Copy full SHA for 3dc6873
crates/core_arch/src/x86_64/bswap.rs
@@ -12,13 +12,7 @@ use stdarch_test::assert_instr;
12
#[cfg_attr(test, assert_instr(bswap))]
13
#[stable(feature = "simd_x86", since = "1.27.0")]
14
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;
+ x.swap_bytes()
22
}
23
24
#[cfg(test)]
0 commit comments