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