[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (alpha) now available
- From: Mike Pall <mikelu-0509@...>
- Date: Sat, 3 Sep 2005 16:28:21 +0200
Hi,
Gavin Wraith wrote:
> > But why bother? All CPUs other than x86 have
> > a decent FP instruction set (x87 FP is _not_ decent).
>
> Not ARMs, alas.
Ahemm, I _do_ word my postings carefully.
The ARM FP instruction set _does_ provide both rounding and
truncation:
FIX reg, fpreg
FIXZ reg, fpreg
The fact that most ARM based systems don't have a (hardware) FPU
is something quite different and doesn't matter for the discussion
at hand. Because then you'd better use integers for lua_Number
which makes all the relevant casts a no-op.
Bye,
Mike