4ed09fda06
git-subtree-dir: externals/xbyak git-subtree-split: d512551e914737300ba35f3c049d1b40effbe76d
17 lines
No EOL
274 B
C++
17 lines
No EOL
274 B
C++
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
puts("enum {");
|
|
for (int i = 0; i < 256; i++) {
|
|
printf(" B");
|
|
for (int j = 0; j < 8; j++) {
|
|
putchar(i & (1 << (7 - j)) ? '1' : '0');
|
|
}
|
|
printf("= %d", i);
|
|
if (i < 255) putchar(',');
|
|
putchar('\n');
|
|
}
|
|
puts("};");
|
|
return 0;
|
|
} |