mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
x64: Improve accuracy of x^-k.
This commit is contained in:
parent
b90d80d80a
commit
d437086c5a
1186
src/buildvm_x64.h
1186
src/buildvm_x64.h
File diff suppressed because it is too large
Load Diff
1179
src/buildvm_x64win.h
1179
src/buildvm_x64win.h
File diff suppressed because it is too large
Load Diff
@ -3074,14 +3074,12 @@ static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
|
||||
|6:
|
||||
| je <5 // x^1 ==> x
|
||||
| jb >7
|
||||
| push RDa
|
||||
| neg eax
|
||||
| call <1
|
||||
| sseconst_1 xmm1, RDa
|
||||
| divsd xmm1, xmm0
|
||||
| pop RDa
|
||||
| movaps xmm0, xmm1
|
||||
| neg eax
|
||||
| cmp eax, 1; je <5 // x^-1 ==> 1/x
|
||||
| jmp <1 // x^-i ==> (1/x)^i
|
||||
| ret
|
||||
|7:
|
||||
| sseconst_1 xmm0, RDa
|
||||
| ret
|
||||
|
1212
src/buildvm_x86.h
1212
src/buildvm_x86.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user