Skip to content

Commit

Permalink
[breaking change] fix return type of _rdtsc
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Apr 22, 2019
1 parent 02d4be2 commit 4bf456c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/rdtsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use stdsimd_test::assert_instr;
#[inline]
#[cfg_attr(test, assert_instr(rdtsc))]
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _rdtsc() -> i64 {
pub unsafe fn _rdtsc() -> u64 {
rdtsc()
}

Expand Down Expand Up @@ -52,7 +52,7 @@ pub unsafe fn __rdtscp(aux: *mut u32) -> u64 {
#[allow(improper_ctypes)]
extern "C" {
#[link_name = "llvm.x86.rdtsc"]
fn rdtsc() -> i64;
fn rdtsc() -> u64;
#[link_name = "llvm.x86.rdtscp"]
fn rdtscp(aux: *mut u8) -> u64;
}
Expand Down

0 comments on commit 4bf456c

Please sign in to comment.