]> git.gir.st - Chiptunes-pms150c.git/commit
new version
authorTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 12:41:18 +0000 (13:41 +0100)
committerTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 12:41:22 +0000 (13:41 +0100)
commit7cbbb5ba36f91d988768b2e49799663e3aef4bef
tree6fe465e76c3d7e9406acc5b17c1587211cd29436
parent2ae98f0b3db825606a7ecfdb4cf3e9ea6c6dbbce
new version

div10 was prototyped with this program:

typedef unsigned char u8;
int main(void) {
for (int i = 0; i <= 0x78; i++) {
u8 real = i/10;
u8 test = i;
i++;

test >>= 1;
test += i;

test >>= 1;
test += 0;

test >>= 1;
test += 0;

test >>= 1;
test += i;

test >>= 1;
test += i;

test >>= 1;
test += 0;

test >>= 1;
test += 0;

test >>= 1;
test += 0;

test >>= 1;
i--;
if (test != real)
printf ("%hhd/10 == %hhd != %hhd\n", i, real, test);
}
return 0;
}
bsv.c
Imprint / Impressum