Skip to content

Commit f2cde2c

Browse files
authored
Update common_arm64.h
1 parent 17609f8 commit f2cde2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

common_arm64.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,17 @@ static void __inline blas_lock(volatile BLASULONG *address){
7878

7979
#define BLAS_LOCK_DEFINED
8080

81+
static __inline BLASULONG rpcc(void){
82+
BLASULONG ret = 0;
83+
84+
__asm__ __volatile__ ("mrs %0,cntvct_el0":"=r"(ret));
8185

86+
return ret;
87+
}
88+
89+
#define RPCC_DEFINED
90+
#define RPCC64BIT
91+
8292

8393
static inline int blas_quickdivide(blasint x, blasint y){
8494
return x / y;

0 commit comments

Comments
 (0)