C syntax or binary optimized syntax?
Posted
by Dpp
on Stack Overflow
See other posts from Stack Overflow
or by Dpp
Published on 2010-05-13T06:19:59Z
Indexed on
2010/05/13
6:24 UTC
Read the original article
Hit count: 507
Let's take an simple example of two lines supposedly doing the same thing:
if (value >= 96 || value < 0) ...
or
if (value & ~ 95) ...
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?
© Stack Overflow or respective owner