new version
authorTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 00:04:04 +0000 (01:04 +0100)
committerTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 00:04:04 +0000 (01:04 +0100)
bsv.c

diff --git a/bsv.c b/bsv.c
index f42eff621a82271d2d097e7033870d613931ad66..cb34dc96f14a6dfaa45ff1fb82ddf389540d3af3 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -35,14 +35,14 @@ void main(void){
 
                { u8 tmp1 = s/3;
                  u8 tmp2;
-                 tmp2 = (i>>11)%3;
+                 tmp2 = (i3<<13|i2<<5|i1>>3)%3;
                  tmp2 += n;
                sample += g(tmp1,tmp2,10);
                } //tmp1, tmp2
 
                { u8 tmp1 = s/5;
                  u8 tmp2 = n;
-                 { u8 tmp3 = (i>>10)%3;
+                 { u8 tmp3 = (i3<<14|i2<<6|i1>>2)%3;
                    tmp2 -= tmp3;
                  } // tmp3
                  tmp2 += 8;
Imprint / Impressum