Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:19

0001 #ifndef FWCore_Utilities_Likely_h
0002 #define FWCore_Utilities_Likely_h
0003 #include "FWCore/Utilities/interface/GCCPrerequisite.h"
0004 
0005 #if GCC_PREREQUISITE(3, 0, 0)
0006 
0007 #if defined(NO_LIKELY)
0008 #define LIKELY(x) (x)
0009 #define UNLIKELY(x) (x)
0010 #elif defined(REVERSE_LIKELY)
0011 #define UNLIKELY(x) (__builtin_expect(x, true))
0012 #define LIKELY(x) (__builtin_expect(x, false))
0013 #else
0014 #define LIKELY(x) (__builtin_expect(x, true))
0015 #define UNLIKELY(x) (__builtin_expect(x, false))
0016 #endif
0017 
0018 #else
0019 #define NO_LIKELY
0020 #define LIKELY(x) (x)
0021 #define UNLIKELY(x) (x)
0022 #endif
0023 
0024 #endif