[jitter] Integer limits
(())_n
kinomatic at gmail.com
Wed Nov 28 10:32:32 MST 2007
- Previous message: [jitter] Re: error message from jit.matrixset
- Next message: [jitter] Integer limits
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, thought I would share some ceilings I am bumping into:
Max number box integer limit seems to be: 2147483647
Javascript integer limit seems to be: 1073741823
Jit.gl.lua integer limit seems to be: 16777215
cheers,
(())_n
-- intpass.lua code:
render_context = this.drawto
autogarbage = 1
autowatch = 1
gc = 1
storeint = 1
function integer(i)
storeint = i
outlet(0,storeint)
end
-- intpass.js code:
var myint = 1
function msg_int(i) {
myint = i;
outlet(0,myint);
}
-- intcheck.mxb patch:
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 41 281 20 196617 t b;
#P user jit.fpsgui 41 308 60 196617 0;
#P number 41 259 190 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 41 163 27 196617 t b i;
#P message 41 222 70 196617 16777215;
#P newex 58 186 62 196617 prepend set;
#P comment 338 83 161 196617 (result above \, negative numbers);
#P comment 353 105 270 196617 (result above \, only even numbers are
passed \, but erratic);
#P comment 272 59 161 196617 (result above \, negative numbers);
#P comment 209 105 139 196617 limit for jit.gl.lua integers;
#P newex 273 281 20 196617 t b;
#P user jit.fpsgui 273 308 60 196617 0;
#P newex 490 281 20 196617 t b;
#P user jit.fpsgui 490 308 60 196617 0;
#P message 145 105 58 196617 16777215;
#P newex 490 232 40 196617 unpack;
#P number 490 259 190 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 490 171 99 196617 prepend call integer;
#P newex 490 201 160 196617 jit.gl.lua integer @file intpass.lua;
#P comment 116 59 153 196617 limit for message box integers;
#P message 119 83 70 196617 1073741823;
#P number 41 130 190 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 41 59 70 196617 2147483647;
#P number 273 259 190 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 273 201 66 196617 js intpass.js;
#P comment 197 83 139 196617 limit for javascript integers;
#P comment 643 70 36 196617 (())_n;
#P fasten 12 0 5 0 150 125 46 125;
#P fasten 6 0 5 0 124 104 46 104;
#P connect 4 0 5 0;
#P connect 5 0 23 0;
#P connect 23 0 22 0;
#P connect 21 0 22 0;
#P connect 22 0 24 0;
#P connect 24 0 26 0;
#P connect 26 0 25 0;
#P connect 23 1 21 0;
#P fasten 5 0 2 0 46 158 278 158;
#P connect 2 0 3 0;
#P connect 3 0 16 0;
#P connect 16 0 15 0;
#P fasten 5 0 9 0 46 158 495 158;
#P connect 9 0 8 0;
#P connect 8 0 11 0;
#P connect 11 0 10 0;
#P connect 10 0 14 0;
#P connect 14 0 13 0;
#P window clipboard copycount 27;
- Previous message: [jitter] Re: error message from jit.matrixset
- Next message: [jitter] Integer limits
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
