Hacker News new | ask | show | jobs
by bjourne 1040 days ago
You can find out for yourself using the Compiler Explorer (godbolt): https://godbolt.org/z/qrYGzMjWd Looks to me as if If is more efficient here.
1 comments

Thank you