added bitwise macros copied directly from Arduino.h