The semantics should probably match:
maxsd %xmm0, %xmm1
minsd %xmm1, %xmm2
movaps %xmm2, %xmm0
otherwise the implementation may be much slower than it needs to be.
The semantics should probably match:
maxsd %xmm0, %xmm1
minsd %xmm1, %xmm2
movaps %xmm2, %xmm0
otherwise the implementation may be much slower than it needs to be.