Skip to content

Instantly share code, notes, and snippets.

@funnyboy-roks
Created December 6, 2023 23:04
Show Gist options
  • Save funnyboy-roks/52710ddad191de2794918e2525eaa1e8 to your computer and use it in GitHub Desktop.
Save funnyboy-roks/52710ddad191de2794918e2525eaa1e8 to your computer and use it in GitHub Desktop.
"Hello, World!" in C
#include <stdio.h>
#include <inttypes.h>
int main() {
uint64_t table[] = { 0x72DFB32E4AF21621, 0x2014000000000000 };
uint64_t idx = 0xA84201597122360;
while (idx >>= 4) putchar(table[(idx & 0xf) / 9] >> (8 - (idx & 0xf) % 9) * 7 & 0x7f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment