aboutsummaryrefslogtreecommitdiff
path: root/mocking-bob/bit-hack.c
diff options
context:
space:
mode:
Diffstat (limited to 'mocking-bob/bit-hack.c')
-rw-r--r--mocking-bob/bit-hack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mocking-bob/bit-hack.c b/mocking-bob/bit-hack.c
new file mode 100644
index 0000000..a462ec6
--- /dev/null
+++ b/mocking-bob/bit-hack.c
@@ -0,0 +1,2 @@
+double P=3.141592653;//Nothing-up-my-sleeve!
+main(int n,char**v){char*c=v[1];while(*c)putchar((*(int*)&P>>(*c&31)&1)<<5^*c++);}