We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c2585 commit 70e8b22Copy full SHA for 70e8b22
1 file changed
src/libocxl_internal.h
@@ -22,6 +22,22 @@
22
#include <stdbool.h>
23
#include <pthread.h>
24
25
+/* LibOCXL is only tested with the following compilers:
26
+ * GCC 6
27
+ * GCC 7
28
+ *
29
+ * Use of other compilers may result in the MMIO functions emitting instructions
30
+ * that do not result in a 32/64 bit transfer across the OpenCAPI link.
31
32
+ * The above compilers have been manually verified to produce the following
33
+ * instructions in the mmio_*_native functions:
34
+ * lwz/ld
35
+ * stw/std
36
+ */
37
+#if !defined(__GNUC__) || __GNUC__ < 6
38
+#error LibOCXL is only tested with GCC 6 & GCC 7, remove this error at your own peril
39
+#endif
40
+
41
#define LIKELY(condition) __builtin_expect((condition), 1)
42
#define UNLIKELY(condition) __builtin_expect((condition), 0)
43
0 commit comments