Add (empty) read barrier definition

This commit is contained in:
Martin Kroeker 2020-04-13 12:22:35 +02:00 committed by GitHub
parent db3226a646
commit a52bdd9d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -63,13 +63,16 @@
#ifdef __GNUC__ #ifdef __GNUC__
#define MB do { __asm__ __volatile__("": : :"memory"); } while (0) #define MB do { __asm__ __volatile__("": : :"memory"); } while (0)
#define WMB do { __asm__ __volatile__("": : :"memory"); } while (0) #define WMB do { __asm__ __volatile__("": : :"memory"); } while (0)
#define RMB
#else #else
#define MB do {} while (0) #define MB do {} while (0)
#define WMB do {} while (0) #define WMB do {} while (0)
#define RMB
#endif #endif
static void __inline blas_lock(volatile BLASULONG *address){ static void __inline blas_lock(volatile BLASULONG *address){
#ifndef C_MSVC #ifndef C_MSVC
int ret; int ret;
#else #else