lua-users home
lua-l archive

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


On Sat, Jun 15, 2013 at 6:11 PM, Miles Bader <miles@gnu.org> wrote:
> Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
>> It will not use the NaN trick. (The trick does not work anyway in 64-bit
>> machines.)
>
> I think the NaN trick *could* work in 64-bit machines...
>
> http://lua-users.org/lists/lua-l/2011-07/msg00172.html
>
> -miles

The problem is that on modern OSes, you can't assume that you can fit
a 64-bit pointer in 48 bits. This is (part of) why LuaJIT demands to
use the low 2GB.

/s/ Adam