Elements
6.2
A C++ base framework for the Euclid Software.
ElementsKernel
ElementsKernel
Likely.h
Go to the documentation of this file.
1
26
#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_LIKELY_H_
27
#define ELEMENTSKERNEL_ELEMENTSKERNEL_LIKELY_H_
28
37
#ifdef __GNUC__
38
#define LIKELY(x) __builtin_expect(not not(x), 1)
39
#define UNLIKELY(x) __builtin_expect(not not(x), 0)
40
#else
41
#define LIKELY(x) x
42
#define UNLIKELY(x) x
43
#endif
44
45
#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_LIKELY_H_
46
Generated by
1.8.17