Quantcast
Channel: PCSX-Reloaded
Viewing all articles
Browse latest Browse all 2368

Commented Unassigned: Code Mistake in SWAP functions [12409]

$
0
0
There are some coding errors in the SWAP functions for big endian (libpcsxcore/psxmem.h). There are some ADD's rather than OR's. which can affect performance depending on the processor (AND's may need overflow protection and/or sign handling).

Tested the attached patch on an old PPC with GCC, and it produces smaller code (likely faster). Should not affect functionality.
Comments: I included this in a pull request: https://pcsxr.codeplex.com/SourceControl/network/forks/Jem256/pcsxr/contribution/9035

Viewing all articles
Browse latest Browse all 2368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>