Change all left shifts to be of unsigned values. In some cases the values were negative. Added macros to make the code easier to be consistent.
Change all left shifts to be of unsigned values. In some cases the values were negative. Added macros to make the code easier to be consistent.