Ever since the 80s, C compilers generally recognize "take an int and divide it by a constant power of two" and then if the target processor prefers it, to replace it with a "shift to the right" operation automatically.
You're welcome to put (x >> 3)
in your code, but if you feel like making the code more readable, and you prefer to think of it as dividing by eight, then don't feel like it's bad
to put (x /
in your C source code.
Source code is more for the humans than for the machines. Be expressive. Simple things like this generally get optimized to the best equivalent code for the platform, within reason.