Fix powerpc and powerpcspe builds
This change fixes 32-bit PowerPC builds, that r367390 broke (shift count >= width of type).