Fast integer arithmetic
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Fast integer arithmetic
- From: Asko Kauppi <askok@...>
- Date: 2008年2月21日 10:17:37 +0200
LNUM patch:
http://luaforge.net/projects/lnum/
Ivan Baggett kirjoitti 20.2.2008 kello 22:07:
I expect it depends on the processor you're talking about. Floating
point arithmetic on modern processors is often _very_ fast...
Well, it isn't fast if your CPU doesn't have a FPU. I use ARM7 and
real-mode X86 processors in embedded systems, and I know for a fact
that FP is not fast on them. It would be nice to have
configuration options for Lua that would allow for integers to be
treated as integers unless explictly forced to double.
Not all of us are using Core 2 Duos in our designs...
Ivan