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

@@ -2030,12 +2030,6 @@ static void build_subroutines(BuildCtx *ctx)
| math_extern cosh
| math_extern tanh
|
|->ff_math_deg:
|.ffunc_nsse math_rad
| mov CFUNC:RB, [BASE-8]
| mulsd xmm0, qword CFUNC:RB->upvalue[0]
| jmp ->fff_resxmm0
|
|.ffunc_nn math_atan2; fpatan; jmp ->fff_resn
|.ffunc_nnr math_ldexp; fscale; fpop1; jmp ->fff_resn
|