lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall wrote:
Lua is not at fault here. The Borland/Delphi runtime modifies the
FPU control word and enables FP exceptions. This violates the
Windows ABI and causes plenty of interoperability problems:

Though formally it's not Lua's fault, in practice it leads to problems.
Are the benefits of using those 2 assembly instructions (yet another
piece of non ANSI C) big enough to justify fighting with compatibility
issues?

Is there a benchmark showing noticeable gain in performance of this piece versus the other ("non-Microsoft") variant of lua_number2integer, or maybe this was introduced to avoid issues with DirectX?

--
Shmuel