Skip to content

Commit 58ee3c0

Browse files
authored
Merge pull request #5544 from mayeut/rpcc-aarch64
fix: rpcc on linux aarch64
2 parents 29fab2b + a367f5f commit 58ee3c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common_arm64.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ static __inline BLASULONG rpcc(void){
114114
#else
115115
BLASULONG ret = 0;
116116
blasint shift;
117-
118-
__asm__ __volatile__ ("isb; mrs %0,cntvct_el0":"=r"(ret));
119-
__asm__ __volatile__ ("mrs %0,cntfrq_el0; clz %w0, %w0":"=&r"(shift));
117+
118+
__asm__ __volatile__ ("isb\n\tmrs %0,cntvct_el0":"=r"(ret));
119+
__asm__ __volatile__ ("mrs %x0,cntfrq_el0\n\tclz %w0, %w0":"=&r"(shift));
120120

121121
return ret << shift;
122122
#endif

0 commit comments

Comments
 (0)