Skip to content

Commit

Permalink
Fixed #15
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Jun 24, 2015
1 parent 8e44798 commit 1aeecfe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dlib/math/sse.d
Expand Up @@ -49,6 +49,19 @@ Vector4f sseAdd4(Vector4f a, Vector4f b)
return a;
}

Vector4f sseSub4(Vector4f a, Vector4f b)
{
asm
{
movups XMM0, a;
movups XMM1, b;
subps XMM0, XMM1;
movups a, XMM0;
}

return a;
}

Vector4f sseMul4(Vector4f a, Vector4f b)
{
asm
Expand All @@ -62,6 +75,19 @@ Vector4f sseMul4(Vector4f a, Vector4f b)
return a;
}

Vector4f sseDiv4(Vector4f a, Vector4f b)
{
asm
{
movups XMM0, a;
movups XMM1, b;
divps XMM0, XMM1;
movups a, XMM0;
}

return a;
}

float sseDot4(Vector4f a, Vector4f b)
{
asm
Expand Down

0 comments on commit 1aeecfe

Please sign in to comment.