[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Exchange pow/frexp/ldexp (Lua power calculation)**
**From**: Flyer31 Test <flyer31@...>
**Date**: Mon, 18 Oct 2021 15:15:53 +0200

Hi,
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?