Hacker News new | ask | show | jobs
by lmm 3884 days ago
A correctly predicted branch is almost free, the compiler could check for that case.

The real problem of course is that C requires the programmer to obscure their intent by messing with a counter variable. Is there really no "loop exactly N times" construct in the language?