aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2021-04-25 16:11:25 -0500
committerGitHub2021-04-25 16:11:25 -0500
commit80d494ee54c7506f60d031b4dc5d942f524422f6 (patch)
treea62151824905603f02763b3220c8f4ef92cc28eb
parent8fdbdbbaf6837e1df3adca520fc61031b4289bcd (diff)
Create 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++);}