plan9fox/sys
cinap_lenrek 96a94c3891 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.
2014-04-12 21:59:52 +02:00
..
doc
games/lib fortunes: Can somebody please include this in the fortunes database? 2014-04-09 21:19:39 -04:00
include factotum/authsrv: fix padding for mschap on amd64, use constants for structure sizes 2014-02-15 19:57:13 +01:00
lib acid: fix errstr syscall data offset for truss library 2014-02-25 09:31:58 -08:00
man newt: add 'kf' command to grep $home/lib/newsgroups for group names 2014-04-11 13:19:18 -04:00
src libmemdraw: improve readbyte() and writebyte() routines 2014-04-12 21:59:52 +02:00