Windows/x64/LJ_GC64: Fix math.frexp() and math.modf().

Thanks to Eddie Edwards.
This commit is contained in:
Mike Pall 2016-02-22 19:14:20 +01:00
parent 6cb38f788f
commit 339a1fd696

View File

@ -1804,7 +1804,11 @@ static void build_subroutines(BuildCtx *ctx)
| jmp ->fff_res1 | jmp ->fff_res1
| |
|.ffunc_n math_frexp |.ffunc_n math_frexp
|.if X64WIN
| lea CARG2, TMP1
|.else
| lea CARG1, TMP1 | lea CARG1, TMP1
|.endif
| mov RB, BASE | mov RB, BASE
| call extern frexp | call extern frexp
| mov BASE, RB | mov BASE, RB
@ -1822,7 +1826,11 @@ static void build_subroutines(BuildCtx *ctx)
| jmp ->fff_res | jmp ->fff_res
| |
|.ffunc_n math_modf |.ffunc_n math_modf
|.if X64WIN
| lea CARG2, [BASE-16]
|.else
| lea CARG1, [BASE-16] | lea CARG1, [BASE-16]
|.endif
| mov PC, [BASE-8] | mov PC, [BASE-8]
| mov RB, BASE | mov RB, BASE
| call extern modf | call extern modf