Merge pull request #1131 from schani/feature-portable-fast-lrem-imm