Change _STDC_VERSION__ to __STDC_VERSION__
Change-Id: Id3fa4e8d9eedd4ef7230df69b611e7f397301a42
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
_Atomic
|
||||
#else
|
||||
volatile
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
_Atomic
|
||||
#else
|
||||
volatile
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
_Atomic
|
||||
#else
|
||||
volatile
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/* or implied, of The University of Texas at Austin. */
|
||||
/*********************************************************************/
|
||||
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
#ifndef _Atomic
|
||||
#define _Atomic volatile
|
||||
#endif
|
||||
@@ -57,7 +57,7 @@
|
||||
int blas_server_avail = 0;
|
||||
|
||||
static void * blas_thread_buffer[MAX_PARALLEL_NUMBER][MAX_CPU_NUMBER];
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
static atomic_bool blas_buffer_inuse[MAX_PARALLEL_NUMBER];
|
||||
#else
|
||||
static _Bool blas_buffer_inuse[MAX_PARALLEL_NUMBER];
|
||||
@@ -322,7 +322,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
|
||||
|
||||
while(true) {
|
||||
for(i=0; i < MAX_PARALLEL_NUMBER; i++) {
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
_Bool inuse = false;
|
||||
if(atomic_compare_exchange_weak(&blas_buffer_inuse[i], &inuse, true)) {
|
||||
#else
|
||||
@@ -347,7 +347,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
|
||||
exec_threads(&queue[i], buf_index);
|
||||
}
|
||||
|
||||
#if _STDC_VERSION__ >= 201112L
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
atomic_store(&blas_buffer_inuse[buf_index], false);
|
||||
#else
|
||||
blas_buffer_inuse[buf_index] = false;
|
||||
|
||||
Reference in New Issue
Block a user