x64: Improve accuracy of x^-k.

This commit is contained in:
Mike Pall 2011-02-25 11:46:29 +01:00
parent b90d80d80a
commit d437086c5a
4 changed files with 1791 additions and 1794 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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

File diff suppressed because it is too large Load Diff