Replace math.deg/math.rad with builtin Lua function.

This commit is contained in:
Mike Pall
2013-02-22 01:44:17 +01:00
parent e20157c6e6
commit 19d5651455
9 changed files with 8 additions and 53 deletions

View File

@@ -1456,12 +1456,6 @@ static void build_subroutines(BuildCtx *ctx)
| math_extern2 atan2
| math_extern2 fmod
|
|->ff_math_deg:
|.ffunc_n math_rad
| evldd CARG2, CFUNC:RB->upvalue[0]
| efdmul CRET1, CARG1, CARG2
| b ->fff_restv
|
|.ffunc math_ldexp
| cmplwi NARGS8:RC, 16
| evldd CARG2, 0(BASE)