initial commit
authorTobias Girstmair <tobi@isticktoit.net>
Wed, 3 Mar 2021 22:52:50 +0000 (23:52 +0100)
committerTobias Girstmair <tobi@isticktoit.net>
Wed, 3 Mar 2021 22:58:40 +0000 (23:58 +0100)
Makefile [new file with mode: 0644]
bsv.c [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b73a6ae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+.PHONY: all test commit
+
+all: test
+
+test: bsv orig.pcm
+       ./bsv | head -c31457280 | diff -s - orig.pcm
+
+commit: test
+       git add bsv.c
+       git commit -m "new version"
+
+orig.pcm:
+       ./bsv-orig | head -c31457280 > orig.pcm
diff --git a/bsv.c b/bsv.c
new file mode 100644 (file)
index 0000000..7c11a37
--- /dev/null
+++ b/bsv.c
@@ -0,0 +1 @@
+g(i,x,t,o){return((3&x&(i*((3&i>>16?"BY}6YB6%":"Qj}6jQ6%")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}
Imprint / Impressum