libretro / snes9x2005

Snes9x 2005. Port of SNES9x 1.43 for libretro (was previously called CAT SFC).
Other
15 stars 32 forks source link

Microoptimisations #92

Closed jSTE0 closed 2 years ago

jSTE0 commented 2 years ago

A few microoptimisations noticed during code inspection, merged upstream in snes9xgit/snes9x#735 and libretro/snes9x2010#156. I've opted to only fix the assignment of Op11Xr in patch 2 instead of wholesale replacement with {READ,WRITE}_WORD to minimise code churn. Patch 3 benefits fewer little-endian platforms on this older fork as port.h has fewer LE platforms with a fast version of {READ,WRITE}_WORD, basically just x86 and Alpha.