psxinterpreter: tons of new exceptions
[pcsx_rearmed.git] / include / compiler_features.h
diff --git a/include/compiler_features.h b/include/compiler_features.h
new file mode 100644 (file)
index 0000000..0c1119d
--- /dev/null
@@ -0,0 +1,13 @@
+
+#ifdef __GNUC__
+# define likely(x)       __builtin_expect((x),1)
+# define unlikely(x)     __builtin_expect((x),0)
+#else
+# define likely(x)       (x)
+# define unlikely(x)     (x)
+#endif
+
+#ifndef __has_builtin
+#define __has_builtin(x) 0
+#endif
+