Squashed 'externals/xbyak/' content from commit d512551e

git-subtree-dir: externals/xbyak
git-subtree-split: d512551e914737300ba35f3c049d1b40effbe76d
This commit is contained in:
MerryMage
2020-04-22 20:25:57 +01:00
commit 4ed09fda06
79 changed files with 22734 additions and 0 deletions

17
gen/b2hex.cpp Normal file
View File

@@ -0,0 +1,17 @@
#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;
}