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

If the conditional is almost always true or almost always false and the CPU has a branch predictor, then a branch is likely faster; otherwise, the CMOV will be faster.

Obviously a CPU could use a predictor for CMOVs as well, although I think the commonly used CPUs don't (but not too sure).




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: