英特尔 x86_64 程序集将整数添加到双精度浮点数 SSE、SSE2
Intel x86_64 Assembly add integer to double precision float SSE, SSE2
为了达到这样的目的:
for (int i=0; i < height; i++)
{
double relY = cY-i;
...
L1:
cmp rax, [rsi]
jz end
mov xmm2, rax ;<----
...
如何将 32 位 int 移动到双精度 float 寄存器?可能吗?
根据 Michael Petch 在评论中写道:搜索到的指令是 CVTSI2SD。谢谢你的帮助。
为了达到这样的目的:
for (int i=0; i < height; i++)
{
double relY = cY-i;
...
L1:
cmp rax, [rsi]
jz end
mov xmm2, rax ;<----
...
如何将 32 位 int 移动到双精度 float 寄存器?可能吗?
根据 Michael Petch 在评论中写道:搜索到的指令是 CVTSI2SD。谢谢你的帮助。