Skip to content

Commit

Permalink
Fixed #68
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Jul 6, 2015
1 parent a30bcb4 commit d27bb80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dlib/math/sse.d
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Matrix4x4f sseMulMat4(Matrix4x4f a, Matrix4x4f b)

mov EAX, _b;
movd XMM1, EAX;

shufps XMM1, XMM1, 0;

mulps XMM0, XMM1;
Expand Down Expand Up @@ -179,11 +180,16 @@ Matrix4x4f sseMulMat4(Matrix4x4f a, Matrix4x4f b)
}

_rp = cast(Vector4f*)(r.arrayof.ptr + i);
asm
version(X86) asm
{
mov EAX, _rp;
movups [EAX], XMM0;
}
version(X86_64) asm
{
mov RAX, _rp;
movups [RAX], XMM0;
}
}

return r;
Expand Down

0 comments on commit d27bb80

Please sign in to comment.