Added constant time macros and bitshifting operations.