Skip to content

Commit e8d61b3

Browse files
committed
1 parent 7564a33 commit e8d61b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cpucounter.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ unsafe fn cpucounter() -> u64 {
1010
(high << 32) | low
1111
}
1212

13-
1413
// https://github.com/google/benchmark/blob/v1.1.0/src/cycleclock.h#L116
1514
#[cfg(asm)]
1615
#[inline]
1716
#[cfg(any(target_arch = "aarch64"))]
1817
unsafe fn cpucounter() -> u64 {
1918
let (vtm): (u64);
20-
asm!("mrs %0, cntvct_el0" : "=r"(vtm));
19+
llvm_asm!("mrs %0, cntvct_el0" : "=r"(vtm));
2120
vtm
2221
}
2322

0 commit comments

Comments
 (0)