Created
December 6, 2023 23:04
-
-
Save funnyboy-roks/52710ddad191de2794918e2525eaa1e8 to your computer and use it in GitHub Desktop.
"Hello, World!" in C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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