Browse Source

Update common_arm64.h

tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
f2cde2ccfb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      common_arm64.h

+ 10
- 0
common_arm64.h View File

@@ -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;


Loading…
Cancel
Save