aarch64 fix std=c18 compilation
This commit is contained in:
parent
d3c0d6811b
commit
d2333e7842
2
common.h
2
common.h
|
@ -352,7 +352,7 @@ typedef int blasint;
|
|||
#endif
|
||||
|
||||
#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
|
||||
|
||||
#ifdef BULLDOZER
|
||||
|
|
|
@ -68,7 +68,7 @@ extern void openblas_warning(int verbose, const char * msg);
|
|||
#endif
|
||||
|
||||
#define get_cpu_ftr(id, var) ({ \
|
||||
asm("mrs %0, "#id : "=r" (var)); \
|
||||
__asm__("mrs %0, "#id : "=r" (var)); \
|
||||
})
|
||||
|
||||
static char *corename[] = {
|
||||
|
|
|
@ -62,7 +62,7 @@ static void daxpy_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha)
|
|||
y5 = a * x[5] + y[5];
|
||||
y6 = a * x[6] + y[6];
|
||||
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[1] = y1;
|
||||
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));
|
||||
yy = (y + 4*128/sizeof(*y));
|
||||
asm("":"+r"(yy)::"memory");
|
||||
__asm__("":"+r"(yy)::"memory");
|
||||
prefetch(xx);
|
||||
prefetch(yy);
|
||||
|
||||
|
|
Loading…
Reference in New Issue