[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Exchange pow/frexp/ldexp (Lua power calculation)
- From: Doug Currie <doug.currie@...>
- Date: Mon, 18 Oct 2021 13:59:25 +0000
On Oct 18, 2021 at 9:47:47 AM, Flyer31 Test <firstname.lastname@example.org> wrote:
thank you for fast answer - sorry for misunderstanding.
I do not want to change this in Lua code.
I want to change the C machine of Lua to use my own frexp (some new
function, which I write by myself, e. g. myfrexp).
Right, that’s what I assumed. I just wrote it in pseudocode, which perhaps looked a bit like Lua. You can use the CORDIC based exp and log to build your myfrexp. (There are faster approaches than CORDIC for exp and log, but if you already have them in hand it’s a good place to start.)