Provide prefetch on non GCC target & compatible
This commit is contained in:
1 parent
000dba1da5
commit
333cc2ccf8
1 file changed
+4
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user