forked from len0rd/rockbox
* Use fast multiplication macro in some more places. * Better pipelining on SH1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10652 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
46ae870feb
commit
bd7248d106
2 changed files with 10 additions and 12 deletions
|
@ -1303,14 +1303,13 @@ static void _writearray(unsigned char *address, const unsigned char *src,
|
|||
"bf .wa_skip \n" /* skip this pixel */
|
||||
|
||||
"mov.b @%[src], r0 \n" /* load src byte */
|
||||
"mov #75, r1 \n"
|
||||
"extu.b r0, r0 \n" /* extend unsigned */
|
||||
"mov.b @(r0,%[trns]), r0 \n" /* idxtable into pattern index */
|
||||
"mulu r1, %[rnd] \n" /* multiply by 75 */
|
||||
"extu.b r0, r0 \n" /* extend unsigned */
|
||||
"shll2 r0 \n"
|
||||
"mov.l @(r0,%[bpat]), r4 \n" /* r4 = bitpattern[byte]; */
|
||||
|
||||
"mov #75, r0 \n"
|
||||
"mulu r0, %[rnd] \n" /* multiply by 75 */
|
||||
"sts macl, %[rnd] \n"
|
||||
"add #74, %[rnd] \n" /* add another 74 */
|
||||
/* Since the lower bits are not very random: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue