Link Copied
[fortran]subroutine sub(x,y)compiles to
real, intent(in) :: x
real, intent(out) :: y
y=x*x
return
end subroutine sub[/fortran]
[bash] mov eax, DWORD PTR [4+esp]and, to me, it seems clear that 'mulss xmm0,xmm0' captures the essence of 'square the operand'.
mov edx, DWORD PTR [8+esp]
movss xmm0, DWORD PTR [eax]
mulss xmm0, xmm0
movss DWORD PTR [edx], xmm0
ret[/bash]
This "counterexample" is not quite relevant to the subject of this thread since the original question was about multi-precision integer arithmetic.
Best regards,
Vladimir
For more complete information about compiler optimizations, see our Optimization Notice.