Browse Source

fix: add missing NO_AFFINITY checks

tags/v0.3.29
NickelWenzel GitHub 1 year ago
parent
commit
bee123e8e3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      common_arm64.h

+ 2
- 0
common_arm64.h View File

@@ -55,6 +55,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ASSEMBLER #ifndef ASSEMBLER




#ifndef NO_AFFINITY
static __inline int WhereAmI(void){ static __inline int WhereAmI(void){
uint64_t ret; uint64_t ret;
__asm__ volatile ( __asm__ volatile (
@@ -67,6 +68,7 @@ static __inline int WhereAmI(void){
if ((int)ret <0) ret = 0; if ((int)ret <0) ret = 0;
return (int)ret; return (int)ret;
} }
#endif


static __inline void blas_lock(volatile BLASULONG *address){ static __inline void blas_lock(volatile BLASULONG *address){




Loading…
Cancel
Save