Skip to content
Snippets Groups Projects
Commit ab0ec58f authored by Alan Schmitt's avatar Alan Schmitt Committed by Thomas Wood
Browse files

tiny tweaks

parent 740d3b1f
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,6 @@ var JsNumber = {
return x >> 0;
},
from_string : function (x) {
return Number(x);
},
......@@ -37,8 +36,6 @@ var JsNumber = {
return "" + x;
},
int32_left_shift : function (x, y) { return x << y; },
int32_right_shift : function (x, y) { return x >> y; },
uint32_right_shift : function (x, y) { return x >>> y; },
......@@ -54,10 +51,8 @@ var JsNumber = {
absolute : function (x) { return Math.abs(x); },
fmod : function (x, y) { return x % y; },
modulo_32 : function (x) { return x % (1 << 32); }, // TODO check !
zero : 0.0,
neg_zero : -0.0,
one : 1.0,
......@@ -69,9 +64,6 @@ var JsNumber = {
pi : Math.PI,
e : Math.E,
ln2 : Math.LN2,
/* TODO: what about other functions from Math? */
/* TODO: what about other functions from Math? */
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment