[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: need uint64, is setting lua_Number to long double a bad idea?
- From: Mike Pall <mikelu-0607@...>
- Date: Mon, 24 Jul 2006 02:13:11 +0200
Hi,
Sam Roberts wrote:
> It occurs to me that long double is big enough to represent a UINT32
> without truncation.
Only very few CPUs have hardware support for long double. Most
compilers inline calls to emulation library functions for every
single operation. One word: sloooow.
> - can anybody suggest some simple benchmarks to get a feel for what, if
> any, impact this has on general (non-numeric intensive) lua
> performance?
Try this trivial (numeric intensive) test first:
for i=1,1e9 do end
If this terminates before you fall asleep then check:
http://shootout.alioth.debian.org/
Bye,
Mike