ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.35k stars 238 forks source link

Update arm64_immenc.c #1602

Closed salt431 closed 1 week ago

salt431 commented 1 week ago

combine if (!bitmask || !~bitmask) to (bitmask == 0 || bitmask == ~0ULL) to reduce overhead.

use bitwise operators instead of + operators. to slightly reduce cpu cycles used per instruction