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:
0f21911
)
new version
author
Tobias Girstmair
<t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:16:48 +0000
(
00:16
+0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:16:48 +0000
(
00:16
+0100)
foo.c
patch
|
blob
|
blame
|
history
diff --git
a/foo.c
b/foo.c
index 9d42341197c20a6a46cb0c958c833906bbb2f72e..061ecc73c61168fbc76135a9de006e5e9130819b 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-6,12
+6,12
@@
u8* data = "Qj}6jQ6%BY}6YB6%";
int g(int i, u8 x, u8 t, u8 o) {
ANDI (t, 0x07)
if (3 & i >> 16 ) t+=8;
-
u8 xxx
= data[t];
- SUBI (
xxx
, -51)
-
xxx = (i*xxx
) >> o;
- AND (
xxx
, x)
- ANDI (
xxx
, 3)
- return
xxx
;
+
t
= data[t];
+ SUBI (
t
, -51)
+
t = (i*t
) >> o;
+ AND (
t
, x)
+ ANDI (
t
, 3)
+ return
t
;
};
int main(void) {