How would I add 1
or 2
to the register xmm0
(double)?
I can do it like this, but sure there must be an easier way:
movsd xmm0, [ecx] xor eax, eax inc eax cvtsi2sd xmm1, eax addsd xmm0, xmm1 movsd [ecx], xmm0
Also would it be possible to do this with the floating point x87 instructions?
This doesn't work for me:
fld dword ptr [ecx] fld1 faddp fstp dword ptr [ecx]