Full threadbjourne·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.View on HN