[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Optimizing interpreters (was Re: LuaJIT with vectors)
- From: Mike Pall <mikelu-1011@...>
- Date: Fri, 19 Nov 2010 13:14:42 +0100
Roberto Ierusalimschy wrote:
> > And, most importantly, canonicalize all NaNs at the ingress points
> > to the VM! For Lua that's only lua_pushnumber, string-to-number
> > conversions and maybe the bytecode loader.
>
> I unserstand the problem with lua_pushnumber (which copies whatever
> number you give to it), but why can string-to-number conversions
> generate non canonical NaNs?
C99 §7.20.1.3, footnote 253. Some strtod implementations fill the
mantissa with hex digits from "nan(xx...xx)".
--Mike
- References:
- Re: LuaJIT with vectors, Alex Queiroz
- Re: LuaJIT with vectors, David Kastrup
- Re: LuaJIT with vectors, Alex Queiroz
- Re: LuaJIT with vectors, David Kastrup
- Re: LuaJIT with vectors, Mike Pall
- Re: LuaJIT with vectors, David Given
- Re: LuaJIT with vectors, Mike Pall
- Optimizing interpreters (was Re: LuaJIT with vectors), Mark Hamburg
- Re: Optimizing interpreters (was Re: LuaJIT with vectors), Mike Pall
- Re: Optimizing interpreters (was Re: LuaJIT with vectors), Roberto Ierusalimschy