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

@@ -1521,12 +1521,6 @@ static void build_subroutines(BuildCtx *ctx)
| b ->fff_resn
|. nop
|
|->ff_math_deg:
|.ffunc_n math_rad
|. ldc1 FARG2, CFUNC:RB->upvalue[0]
| b ->fff_resn
|. mul.d FRET1, FARG1, FARG2
|
|.ffunc_nn math_ldexp
| cvt.w.d FARG2, FARG2
| load_got ldexp