PKGBUILDs/community/openimageio/arm.patch

30 lines
695 B
Diff
Raw Normal View History

2013-05-21 20:28:53 +00:00
diff -urN a/src/include/thread.h b/src/include/thread.h
--- a/src/include/thread.h 2013-07-08 13:47:25.000000000 -0600
+++ b/src/include/thread.h 2013-07-13 14:30:25.709073357 -0600
@@ -323,8 +323,12 @@
#if defined __arm__ || defined __s390__
__asm__ __volatile__("NOP;");
#else
2013-05-21 20:28:53 +00:00
+#if defined __arm__
+ __asm__ __volatile__("NOP;");
+#else
__asm__ __volatile__("pause;");
#endif
2013-05-21 20:28:53 +00:00
+#endif
}
#elif USE_TBB
__TBB_Pause(delay);
@@ -447,7 +451,12 @@
2013-05-21 20:28:53 +00:00
// Disallow copy construction by making private and unimplemented.
atomic (atomic const &);
+
+#if defined __arm__
+} __attribute__((aligned(8)));
+#else
};
+#endif
#endif /* ! USE_TBB_ATOMIC */