Skip to content

Commit

Permalink
ValveSoftwareGH-195: Copy SSE fix to MP branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Dec 3, 2013
1 parent 3f15618 commit 73f5dea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mp/src/mathlib/sse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ float FASTCALL _SSE_VectorNormalize (Vector& vec)
"movaps %%xmm4, %1 \n\t"
: "=m" (radius), "=m" (result)
: "m" (*v)
: "xmm1", "xmm2", "xmm3", "xmm4"
);
#else
#error "Not Implemented"
Expand Down Expand Up @@ -322,8 +323,9 @@ float _SSE_InvRSquared(const float* v)
"maxss %%xmm5, %%xmm1 \n\t"
"rcpss %%xmm1, %%xmm0 \n\t"
"movss %%xmm0, %0 \n\t"
: "=m" (inv_r2)
: "m" (*v), "0" (inv_r2)
: "+m" (inv_r2)
: "m" (*v)
: "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5"
);
#else
#error "Not Implemented"
Expand Down

0 comments on commit 73f5dea

Please sign in to comment.