Hacker News new | past | comments | ask | show | jobs | submit login

Whether to use a branch or a conditional move isn’t really dependent on what the source is doing but how likely the branch is and its dependencies. Simplifying a bit, an explicit cmov is basically telling the computer that the condition is not easy to predict and to not bother. Modern processors will typically do the same analysis themselves and perform similarly on a branch with a slight overhead.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: