Browse Source

Exclude the WhereAmI function when compiling with MSVC

pull/4927/head
Martin Kroeker GitHub 1 year ago
parent
commit
d71c9b8bf5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      common_arm64.h

+ 3
- 2
common_arm64.h View File

@@ -1,5 +1,5 @@
/***************************************************************************** /*****************************************************************************
Copyright (c) 2011-2015, The OpenBLAS Project
Copyright (c) 2011-2024, The OpenBLAS Project
All rights reserved. All rights reserved.


Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@@ -54,7 +54,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


#ifndef ASSEMBLER #ifndef ASSEMBLER


#ifndef C_MSVC
static __inline int WhereAmI(void){ static __inline int WhereAmI(void){
uint64_t ret; uint64_t ret;
__asm__ volatile ( __asm__ volatile (
@@ -67,6 +67,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