From d2532043c66fd187f1f3853bbb06523dcb25ae2d Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Wed, 3 Mar 2021 23:52:50 +0100 Subject: [PATCH] initial commit --- Makefile | 13 +++++++++++++ bsv.c | 1 + 2 files changed, 14 insertions(+) create mode 100644 Makefile create mode 100644 bsv.c diff --git a/Makefile b/Makefile new file mode 100644 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 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));} -- 2.39.3