Fixed float complex handling as parameter

This commit is contained in:
ptitSeb 2023-04-07 12:45:32 +02:00
parent ae34c7e1cc
commit 5c2f62657f
2 changed files with 2 additions and 2 deletions

View File

@ -1094,7 +1094,7 @@ def main(root: str, files: Iterable[Filename], ver: str):
vreg = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 2, 2, 0, 1, 0, 0]
# vxmm: value is in a XMM register
# E v c w i I C W u U f d D K l L p V O S N M H P A x X
vxmm = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2]
vxmm = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2]
# vother: value is elsewere
# E v c w i I C W u U f d D K l L p V O S N M H P A x X
vother = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]

View File

@ -12,7 +12,7 @@ typedef struct complexf_s { float r; float i;} complexf_t;
inline complexf_t to_complexf(x64emu_t* emu, int i) {
complexf_t ret;
ret.r = emu->xmm[i].f[0];
ret.i = emu->xmm[i+1].f[0];
ret.i = emu->xmm[i].f[1];
return ret;
}
inline complex_t to_complex(x64emu_t* emu, int i) {