Last active
April 25, 2016 18:54
-
-
Save evanlong/4013583148a6687edcf02c297a78a14c to your computer and use it in GitHub Desktop.
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
// Compile run with: | |
// cc piper.c -o piper ; ./piper | |
// From Season 3 Episode 1 of HBO's Silicon Valley | |
#include <stdio.h> | |
#include <stdlib.h> | |
void _ctx_iface(__int128_t s, int i) | |
{ | |
int c = (((s & ((__int128_t)0x1FULL << i * 5)) >> i * 5) + 65); | |
printf("%c", c); | |
} | |
int main(int argc, char* argv[]) | |
{ | |
for (int i = 0; i < 17; i++) { | |
_ctx_iface(0x79481E6BBCC01223 + ((__int128_t)0x1222DC << 64), i); | |
} | |
printf("\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
haha