diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-12 21:59:52 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-12 21:59:52 +0200 |
commit | 96a94c38917bf52c17cc1a280cbb672f4d1d13d3 (patch) | |
tree | 7d7f22d5420f9137420f30ab6e083979474e4711 /sparc | |
parent | a321204a2091d20f1ae360064460fd1553938d6f (diff) |
libmemdraw: improve readbyte() and writebyte() routines
remove unused memsetb() routine.
replace foo ? 1 : 0 with foo != 0
avoid double calculation of rgb components in readbyte()
handle byte aligned color components in writebyte()
which lets us avoid the read-modify-write and the shifting.
surprisingly, the branches in the loop are way less important
than avoiding the memory access.
this change makes ganes/snes playable at -3 scaling.
Diffstat (limited to 'sparc')
0 files changed, 0 insertions, 0 deletions