From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: Add portable pauses
--- rapmap.orig/include/FastxParserThreadUtils.hpp
+++ rapmap/include/FastxParserThreadUtils.hpp
@@ -18,7 +18,13 @@
     static const size_t MAX_BACKOFF_ITERS = 1024;
 
     ALWAYS_INLINE static void cpuRelax() {
+#if defined(__aarch64__) || defined(arm64)
+      asm volatile("yield" ::: "memory");
+#elif defined(__PPC64__) || defined(PPC64) || defined(__ppc64__)
+      asm("ori 0,0,0");
+#else
       asm("pause");
+#endif
     }
 
     ALWAYS_INLINE void yieldSleep() {
