Use the SIGN_EXTENSION macro where possible

This shortens the x86 assembly by 134 lines in total.
Merge pull request #496 from mstorsjo/use-sign-extend-macro

Use the SIGN_EXTENSION macro where possible