logoalt Hacker News

gblarggtoday at 9:49 AM1 replyview on HN

Assuming compilers are smart enough to insert an unnecessary branch to break the dependency.


Replies

vitally3643today at 12:59 PM

That's what the hints are for. Expect/likely/unlikely are the programmer informing the compiler what it should expect and how it should optimize