Currently wondering about the highByte and lowByte functions.
At some point, I may need to highly optimize some code for heavier operations. (I generally optimize things anyway).
So I was wondering; what is the actual functionality?
Is using the following better than highByte/lowByte (or worse?)?
byte _highByte(word input)
return (input>>8) & 0x00FF;
byte _lowByte(word input)
return input & 0xFF;
This question extends to functions such as bitRead, bitSet, bitWrite, etc. For those I am more likely to have my own implementation, but curiosity has struck me.
Any input is appreciated