kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.62k stars 59 forks source link

make math.log match PUC-Lua #47

Closed Jengamon closed 4 months ago

Jengamon commented 4 months ago

Matches the interface for piccolo's math.log function to that of PUC-Lua.

We take advantage of Rust's optimized (?) functions when the requested base matches one of the routines, but we can now handle any base directly.

Jengamon commented 4 months ago

Drafting as this is a fix for stuff found in #46

kyren commented 4 months ago

Thank you!