logo

ibnjs

Unnamed repository; edit this file 'description' to name the repository.
commit: 169aa4d542f7ff8e50b98f9045980a938fadb9bf
parent 4521fb14d35e96fd98dd91c48f7a2d8c3c765777
Author: Adrian Siekierka <asiekierka@gmail.com>
Date:   Wed,  4 Jan 2012 09:27:25 +0100

sin/atan inlining stuff

Diffstat:

Mibniz.html4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ibniz.html b/ibniz.html @@ -502,10 +502,10 @@ function Parser(simpleGetPut,useAudio) tempCode += "steps = (stacka.pop()>>16)&31; a = stacka.pop(); stacka.push((a>>>steps)|(a<<(32-steps)));"; break; case 97: - tempCode += "a = stacka.pop(); stacka.push((Math.atan2(a,stacka.pop())*(65536/(2*Math.PI)))|0);"; + tempCode += "a = stacka.pop(); stacka.push((Math.atan2(a,stacka.pop())*"+(65536/(2*Math.PI))+")|0);"; break; case 115: - tempCode += "stacka.push((Math.sin(stacka.pop()*(2*Math.PI/65536))*65536)|0);"; + tempCode += "stacka.push((Math.sin(stacka.pop()*"+(2*Math.PI/65536)+")*65536)|0);"; break; case 113: tempCode += "a = stacka.pop(); stacka.push(0 > a ? 0 : (65536 * Math.sqrt(a / 65536))|0);";