modified common.h
authorwernsaar <wernsaar@googlemail.com>
Sun, 1 Dec 2013 15:11:13 +0000 (16:11 +0100)
committerwernsaar <wernsaar@googlemail.com>
Sun, 1 Dec 2013 15:11:13 +0000 (16:11 +0100)
common.h

index 309f246..4e3230d 100644 (file)
--- a/common.h
+++ b/common.h
@@ -310,6 +310,15 @@ typedef int blasint;
 #define YIELDING       SwitchToThread()
 #endif
 
+#if defined(ARMV7) || defined(ARMV6) || defined(ARMV8)
+#define YIELDING        asm volatile ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
+#endif
+
+#ifdef PILEDRIVER
+#define YIELDING        __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
+#endif
+
+
 #ifndef YIELDING
 #define YIELDING       sched_yield()
 #endif
@@ -363,6 +372,15 @@ please https://github.com/xianyi/OpenBLAS/issues/246
 #include "common_mips64.h"
 #endif
 
+#ifdef ARCH_ARM
+#include "common_arm.h"
+#endif
+
+#ifdef ARCH_ARM64
+#include "common_arm64.h"
+#endif
+
+
 #ifdef OS_LINUX
 #include "common_linux.h"
 #endif