aarch64 fix std=c18 compilation

This commit is contained in:
User User-User 2020-10-03 18:00:34 +03:00
parent d3c0d6811b
commit d2333e7842
3 changed files with 4 additions and 4 deletions

View File

@ -352,7 +352,7 @@ typedef int blasint;
#endif #endif
#if defined(ARMV7) || defined(ARMV6) || defined(ARMV8) || defined(ARMV5) #if defined(ARMV7) || defined(ARMV6) || defined(ARMV8) || defined(ARMV5)
#define YIELDING asm volatile ("nop;nop;nop;nop;nop;nop;nop;nop; \n"); #define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
#endif #endif
#ifdef BULLDOZER #ifdef BULLDOZER

View File

@ -68,7 +68,7 @@ extern void openblas_warning(int verbose, const char * msg);
#endif #endif
#define get_cpu_ftr(id, var) ({ \ #define get_cpu_ftr(id, var) ({ \
asm("mrs %0, "#id : "=r" (var)); \ __asm__("mrs %0, "#id : "=r" (var)); \
}) })
static char *corename[] = { static char *corename[] = {

View File

@ -62,7 +62,7 @@ static void daxpy_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha)
y5 = a * x[5] + y[5]; y5 = a * x[5] + y[5];
y6 = a * x[6] + y[6]; y6 = a * x[6] + y[6];
y7 = a * x[7] + y[7]; y7 = a * x[7] + y[7];
asm("":"+w"(y0),"+w"(y1),"+w"(y2),"+w"(y3),"+w"(y4),"+w"(y5),"+w"(y6),"+w"(y7)); __asm__("":"+w"(y0),"+w"(y1),"+w"(y2),"+w"(y3),"+w"(y4),"+w"(y5),"+w"(y6),"+w"(y7));
y[0] = y0; y[0] = y0;
y[1] = y1; y[1] = y1;
y[2] = y2; y[2] = y2;
@ -74,7 +74,7 @@ static void daxpy_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha)
xx = (x + 4*128/sizeof(*x)); xx = (x + 4*128/sizeof(*x));
yy = (y + 4*128/sizeof(*y)); yy = (y + 4*128/sizeof(*y));
asm("":"+r"(yy)::"memory"); __asm__("":"+r"(yy)::"memory");
prefetch(xx); prefetch(xx);
prefetch(yy); prefetch(yy);