git://git.gir.st
/
Chiptunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc1d6d
)
new version
author
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 16:12:49 +0000
(17:12 +0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 16:12:49 +0000
(17:12 +0100)
foo.c
patch
|
blob
|
blame
|
history
diff --git
a/foo.c
b/foo.c
index 0cd4bedbfd884cce991840a9a04b8605bc398e7e..e98d31840d9b7971d60c7de3c1015031a64a4240 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-33,7
+33,8
@@
void mod3(void) { //avail: t, o _
MOV (tmp, Ml)
LSR (tmp)
LSR (tmp)
- Ml = (tmp) + (Ml & 0x3);
+ ANDI (Ml, 0x03)
+ Ml = (tmp) + (Ml);
Ml = (Ml >> 2) + (Ml & 0x3);
if (Ml > 2) Ml = Ml - 3;
#undef tmp