[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (alpha) now available
- From: Gavin Wraith <gavin@...>
- Date: Sat, 03 Sep 2005 15:38:26 +0100
In message <20050903142821.GA5659@mike.de> you wrote:
>
> 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.
Sorry. Yes that is right. And on the whole I do use integers for
lua_Number.
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/