Removed redundant double negation - shift right is arithmetic and handles sign correctly.
Sign-extend accelerometer data when using a 32-bit processor.