3 ms·
On x64, foo(double) expects its argument in xmm0, but foo(int) expects it in rdi. So the 3 passed in rdi is ignored and it operates on whatever happened to be i
by edflsafoiewq 4y ago
On x64, foo(double) expects its argument in xmm0, but foo(int) expects it in rdi. So the 3 passed in rdi is ignored and it operates on whatever happened to be in xmm0.
- WalterBright 4y agoYes, you're right. Thanks for the correction. I was thinking of the Windows C ABI.