lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/03/10 17:08, Mike Pall wrote:
[...]
> Easy, huh? Ok, so there's a lot more magic going on inside. E.g.
> you may have noticed it has hoisted the lookup of bit.bxor out of
> the loop and narrowed everything to integer arithmetic.

I was under the impression that LuaJIT did everything using double
precision floats. Is the narrowing-to-integer stuff new? If so, does
this mean that porting to devices with poor FPUs (such as ARM) would be
more feasible, with the bulk of the calculations happening using fast
integer operations and floats only used for the calculations that need it?

- -- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
│ --- Conway's Game Of Life, in one line of APL
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuntD0ACgkQf9E0noFvlzgeEACeIa66nz04t+3SBXpQ3GDOF4a0
tVoAni/q5m/9ZtK0eQ4NthhSHYTUxxfB
=aSfU
-----END PGP SIGNATURE-----