|
|
|||
File indexing completed on 2025-12-11 10:26:10
0001 //======================================================================== 0002 // 0003 // GooLikely.h 0004 // 0005 // This file is licensed under the GPLv2 or later 0006 // 0007 // Copyright (C) 2008 Kees Cook <kees@outflux.net> 0008 // 0009 //======================================================================== 0010 0011 #ifndef GOOLIKELY_H 0012 #define GOOLIKELY_H 0013 0014 #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) 0015 # define likely(x) __builtin_expect((x), 1) 0016 # define unlikely(x) __builtin_expect((x), 0) 0017 #else 0018 # define likely(x) (x) 0019 # define unlikely(x) (x) 0020 #endif 0021 0022 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|