Let's take a simple example of two lines supposedly doing the same thing:
if (value >= 128 || value < 0) ...
or
if (value & ~ 127) ...
Say 'If's are costly in a loop of thousands of iterations, is it better to keep with the traditional C syntax or better to find a binary optimized one if possible?
I would use first statement with traditional syntax as it is more readable. It's possible to break the eyes with the second statement.
Care about programmers who will use the code after you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With