Skip to content

Commit

Permalink
Exclude the WhereAmI function when compiling with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Oct 9, 2024
1 parent 7ac5b90 commit d71c9b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common_arm64.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*****************************************************************************
Copyright (c) 2011-2015, The OpenBLAS Project
Copyright (c) 2011-2024, The OpenBLAS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -54,7 +54,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifndef ASSEMBLER


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

static __inline void blas_lock(volatile BLASULONG *address){

Expand Down

0 comments on commit d71c9b8

Please sign in to comment.