![]() ![]() other versions Copyright © 20152020 Lua.org, PUC-Rio.For a complete introduction to Lua programming, see the book Programming in Lua. LuaJIT#13 0x00000000100067a4 in main (argc=2, argv=0x3ffffffffa38) at luajit. Lua 5.3 Reference Manual - contents Lua 5.3 Reference Manual The reference manual is the official definition of the Lua language. Size frame) and now backtrace works all over (e.g:) ![]() Removed the complicated handling of lj_vm_ffi_call (it was a variable All JIT backends have to do some weird dance to join these back together to pow() in the hope that this fixes some of these issues.ĭefinitely needs further discussion and analysis.debug doesnt work either, since B.lua is not call from command line. My question is, how can I get the absolute path of B.lua in B.lua 'PWD' doesnt work since PWD just return the current working directory. In B.lua, it has to use its absolute path. And/or their and our exp2() and log2() workaround implementations suck: exp(x_k) and log(x_k) are hopelessly imprecise. I have a lua script A.lua, which calls B.lua by specifying package.path.It adds a dependency on C99 exp2() and log2(), which (still) aren't part of some libm implementations.Whether the libm implementation does that is often questionable, though. It doesn't give proper results for NaN, Inf and other special cases.It mainly benefits some silly benchmarks, where log2(a) can be hoisted out. ![]() The split into exp2(b*log2(a)) is of questionable utility and more troublesome: Especially when some intermediate step and/or the final result overflows FP precision. Whichever is more accurate is a question of the libm implementation and some debate. But it may give different results than calling the libm pow() function.It gives more precise results than the exp/log method in some important cases, like 3^i.It opens other optimization opportunities (unrolling).The a^i integer narrowing is definitely useful: 8.The current narrowing and strength reduction for a^b aka math.pow(a, b) is problematic.8.1 – Incompatibilities in the Language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |