lua-users home
lua-l archive

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

do you possibly some "most easy way" proposal, if I want to replace
the exponentiation by some "own calculation"?

(my STM32G473 controller has a so-called CORDIC interface for
high-speed calculation of sin, cos, tan, exp, log, sqrt on board, so I
want to use this for my Lua.

The other function I all found in math.lib, so easy to exchange for me.

But the exponetiation due to lua ^ operator somehow of course is more
tricky. Can anybody give me some hint how to best exchange this
without too many Lua source modifications?