projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17609f8
)
Update common_arm64.h
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Tue, 8 Oct 2019 18:12:08 +0000
(20:12 +0200)
committer
GitHub
<noreply@github.com>
Tue, 8 Oct 2019 18:12:08 +0000
(20:12 +0200)
common_arm64.h
patch
|
blob
|
history
diff --git
a/common_arm64.h
b/common_arm64.h
index
c5e6948
..
13718af
100644
(file)
--- a/
common_arm64.h
+++ b/
common_arm64.h
@@
-78,7
+78,17
@@
static void __inline blas_lock(volatile BLASULONG *address){
#define BLAS_LOCK_DEFINED
+static __inline BLASULONG rpcc(void){
+ BLASULONG ret = 0;
+
+ __asm__ __volatile__ ("mrs %0,cntvct_el0":"=r"(ret));
+ return ret;
+}
+
+#define RPCC_DEFINED
+#define RPCC64BIT
+
static inline int blas_quickdivide(blasint x, blasint y){
return x / y;