Understanding likely and unlikely in the Linux Kernel
In the Linux kernel source code, the keywords likely and unlikely are frequently encountered. Upon examining the source code, it turns out that these two keywords are macros defined in the include/linux/compiler.h file of the kernel source (specifically in linux-3.11.0-rc1): Since CONFIG_PROFILE_ALL_BRANCHES is not defined, the definitions of the two macros are as follows: # … Read more