diff options
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.28.0/goo/GooLikely.h')
-rw-r--r-- | Build/source/libs/poppler/poppler-0.28.0/goo/GooLikely.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.28.0/goo/GooLikely.h b/Build/source/libs/poppler/poppler-0.28.0/goo/GooLikely.h new file mode 100644 index 00000000000..724ccf00870 --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.28.0/goo/GooLikely.h @@ -0,0 +1,22 @@ +//======================================================================== +// +// GooLikely.h +// +// This file is licensed under the GPLv2 or later +// +// Copyright (C) 2008 Kees Cook <kees@outflux.net> +// +//======================================================================== + +#ifndef GOOLIKELY_H +#define GOOLIKELY_H + +#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) +# define likely(x) __builtin_expect((x), 1) +# define unlikely(x) __builtin_expect((x), 0) +#else +# define likely(x) (x) +# define unlikely(x) (x) +#endif + +#endif |