summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorwernsaar <wernsaar@googlemail.com>2013-12-01 16:11:13 +0100
committerwernsaar <wernsaar@googlemail.com>2013-12-01 16:11:13 +0100
commit2a625447ead3e3c89f542fe23a3821b4b04163f4 (patch)
treeb3efe42f487bdf0fc99d53a2afcd7c107ae3081b /common.h
parent04d51536a4c01a4bdb4ff96b2ab8ed0efcbd5ebd (diff)
downloadopenblas-2a625447ead3e3c89f542fe23a3821b4b04163f4.tar.gz
openblas-2a625447ead3e3c89f542fe23a3821b4b04163f4.tar.bz2
openblas-2a625447ead3e3c89f542fe23a3821b4b04163f4.zip
modified common.h
Diffstat (limited to 'common.h')
-rw-r--r--common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/common.h b/common.h
index 309f246e2..4e3230d7e 100644
--- 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