Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10389 - Lua: add math library

Attached to Project: Rockbox
Opened by Maurus Cuelenaere (mcuelenaere) - Sunday, 28 June 2009, 17:45 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Friday, 23 October 2009, 12:50 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This patch adds (some part of) the math library to Lua.
   lua_mathlib.diff (7.5 KiB)
 SOURCES    |    1 
 lmathlib.c |  286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 rocklua.c  |    1 
 3 files changed, 288 insertions(+)

This task depends upon

Closed by  Maurus Cuelenaere (mcuelenaere)
Friday, 23 October 2009, 12:50 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  In r23321.
Comment by Maurus Cuelenaere (mcuelenaere) - Sunday, 28 June 2009, 18:14 GMT+2
Fix math_random
   lua_mathlib.diff (7.3 KiB)
 SOURCES    |    1 
 lmathlib.c |  285 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 rocklua.c  |    1 
 3 files changed, 287 insertions(+)

Comment by Christophe Gragnic (Grahack) - Wednesday, 29 July 2009, 11:29 GMT+2
I'd appreciate having math.mod and math.pow since we have % and ^ now.
I tried to tweak your patch but didn't reach anything nice (yet).

Loading...