]> www.ginac.de Git - ginac.git/commitdiff
File added [A.Sheplyakov]
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 28 Aug 2007 18:00:01 +0000 (18:00 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 28 Aug 2007 18:00:01 +0000 (18:00 +0000)
ginac/compiler.h [new file with mode: 0644]

diff --git a/ginac/compiler.h b/ginac/compiler.h
new file mode 100644 (file)
index 0000000..66f6e92
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef GINAC_COMPILER_DEP_HH
+#define GINAC_COMPILER_DEP_HH
+
+#ifdef __GNUC__
+#define unlikely(cond) __builtin_expect((cond), 0)
+#define likely(cond) __builtin_expect((cond), 1)
+#else
+#define unlikely(cond) (cond)
+#define likely(cond) (cond)
+#endif
+
+#endif /* GINAC_COMPILER_DEP_HH */