r/programming • u/chaobang • Aug 22 '26
The unlikely Linux macro
https://rushed-reflections.bearblog.dev/an-unlikely-experiment/Wrote a bit about the `unlikely` and `likely` macros in the Linux codebase. Great little exploration into tiny optimizations that everyone should know more about π
188
Upvotes
View all comments
Show parent comment
49
u/stassats Aug 23 '26
Now they do https://www.phoronix.com/news/GCC-Clang-Intel-x86-Branch-Hint