Provide prefetch on non GCC target & compatible

This commit is contained in:
Patrick Pelissier committed 2024-05-12 22:59:58 +02:00
1 parent 000dba1da5
commit 333cc2ccf8
1 file changed
+4 -1
+4 -1
View File
@@ -147,7 +147,10 @@
#if defined(__GNUC__)
# define M_PREFETCH(p) __builtin_prefetch((p), 0, 0)
#else
# define M_PREFETCH(p) (void) 0
# define M_PREFETCH(p) do { \
volatile char m_c = *(volatile char *) (p); \
(void) m_c; \
} while (0)
#endif
/* Ignore some warnings detected by some compilers in the library.