From af84d48551e98f0517c5d8c5434894773378cdf8 Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Tue, 28 Aug 2007 18:00:15 +0000 Subject: [PATCH] File added [A.Sheplyakov] --- ginac/compiler.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ginac/compiler.h diff --git a/ginac/compiler.h b/ginac/compiler.h new file mode 100644 index 00000000..66f6e92f --- /dev/null +++ b/ginac/compiler.h @@ -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 */ -- 2.49.0