[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Integer patch for Lua 5.1 final
- From: "Ben Sunshine-Hill" <sneftel@...>
- Date: Sun, 26 Feb 2006 15:59:40 -0800
On 2/26/06, Adam D. Moss <adam@gimp.org> wrote:
> Daniel Collins wrote:
> > Also, does the integer patch give control (eg via a macro) of the fixed
> > point precision?
>
> The integer patch (assuming we're talking about the same thing)
> isn't a fixed-point patch, I believe; instead it makes the VM
> use integer maths for integer values where feasible, deferring
> to floating point only when necessary (i.e. non-integer operands).
I vaguely recall, though, someone on this list doing fixed point in
Lua to make it work with BREW. It would be interesting to combine the
two patches. You'd still only have one choice of fixed-point other
than integer, but in my experience that's adequate for the majority of
applications.
Ben