Skip to content

Commit 4bf456c

Browse files
committed
[breaking change] fix return type of _rdtsc
1 parent 02d4be2 commit 4bf456c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_arch/src/x86/rdtsc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use stdsimd_test::assert_instr;
2222
#[inline]
2323
#[cfg_attr(test, assert_instr(rdtsc))]
2424
#[stable(feature = "simd_x86", since = "1.27.0")]
25-
pub unsafe fn _rdtsc() -> i64 {
25+
pub unsafe fn _rdtsc() -> u64 {
2626
rdtsc()
2727
}
2828

@@ -52,7 +52,7 @@ pub unsafe fn __rdtscp(aux: *mut u32) -> u64 {
5252
#[allow(improper_ctypes)]
5353
extern "C" {
5454
#[link_name = "llvm.x86.rdtsc"]
55-
fn rdtsc() -> i64;
55+
fn rdtsc() -> u64;
5656
#[link_name = "llvm.x86.rdtscp"]
5757
fn rdtscp(aux: *mut u8) -> u64;
5858
}

0 commit comments

Comments
 (0)