mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Windows/x64/LJ_GC64: Fix math.frexp() and math.modf().
Thanks to Eddie Edwards.
This commit is contained in:
parent
6cb38f788f
commit
339a1fd696
@ -1804,7 +1804,11 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| jmp ->fff_res1
|
||||
|
|
||||
|.ffunc_n math_frexp
|
||||
|.if X64WIN
|
||||
| lea CARG2, TMP1
|
||||
|.else
|
||||
| lea CARG1, TMP1
|
||||
|.endif
|
||||
| mov RB, BASE
|
||||
| call extern frexp
|
||||
| mov BASE, RB
|
||||
@ -1822,7 +1826,11 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| jmp ->fff_res
|
||||
|
|
||||
|.ffunc_n math_modf
|
||||
|.if X64WIN
|
||||
| lea CARG2, [BASE-16]
|
||||
|.else
|
||||
| lea CARG1, [BASE-16]
|
||||
|.endif
|
||||
| mov PC, [BASE-8]
|
||||
| mov RB, BASE
|
||||
| call extern modf
|
||||
|
Loading…
Reference in New Issue
Block a user