4 ms·
To be fair that's generally good practice since it eliminates a branch in the code, depending on the type of v and overhead of assignment.
by holy_city 7y ago
To be fair that's generally good practice since it eliminates a branch in the code, depending on the type of v and overhead of assignment.
- DuskStar 7y agoSounds like the sort of thing your compiler should choose for you.