Lets say I am checking for odd numbers:
(i % 2 == 1)
Will the compiler convert that operation to:
if(a & 1)
?
I am aware that bitwise operations are faster and that sometimes I will work with bits.
However my question is: If the normal arithmetic is more readable (in most instances), when shall I use bitwise if the compiler might convert it later?
Or shall I always use bitwise whenever is posible (even if it is less readable)?