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

diff --git a/bsv.c b/bsv.c
index 5a222a7d18da7f3199023c7eeb5df65dd0edb958..305044e61f2d7dae541ac0d82dc52aa7613b2aa5 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -24,7 +24,7 @@ void main(void){
 
                g(n);
                acc >>= 4;
-               acc &= 1&3;
+               acc &= 1;
                sample = acc;
 
                { u8 tmp;
@@ -32,7 +32,8 @@ void main(void){
                  tmp ^= n;
                g(tmp);
                acc >>= 2;
-               acc &= s&3;
+               acc &= s;
+               acc &= 3;
                sample += acc;
                } //tmp
 
@@ -42,7 +43,8 @@ void main(void){
                  tmp2 += n;
                g(tmp2);
                acc >>= 2;
-               acc &= tmp1&3;
+               acc &= tmp1;
+               acc &= 3;
                sample += acc;
                } //tmp1, tmp2
 
@@ -54,7 +56,8 @@ void main(void){
                  tmp2 += 8;
                g(tmp2);
                acc >>= 1;
-               acc &= tmp1&3;
+               acc &= tmp1;
+               acc &= 3;
                sample += acc;
                } //tmp1, tmp2
 
Imprint / Impressum