added tests for Vector Math, modified Makefile, added helper include files

This commit is contained in:
ejcoumans
2007-08-15 04:54:27 +00:00
parent b43b8f0f75
commit 6b0a3f081c
102 changed files with 91266 additions and 76385 deletions

View File

@@ -27,8 +27,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _VECTORMATH_AOS_CPP_H
#define _VECTORMATH_AOS_CPP_H
#ifndef _VECTORMATH_AOS_CPP_SSE_H
#define _VECTORMATH_AOS_CPP_SSE_H
#include <math.h>
#include <xmmintrin.h>
@@ -113,8 +113,8 @@ static inline __m128 vec_ctf(__m128 x, int a)
SSE64 sse64;
sse64.m128 = x;
__m128 result =_mm_movelh_ps(
_mm_cvt_pi2ps(_mm_setzero_ps(), sse64.m64.m01),
_mm_cvt_pi2ps(_mm_setzero_ps(), sse64.m64.m23));
_mm_cvt_pi2ps(_mm_setzero_ps(), sse64.m64.m01),
_mm_cvt_pi2ps(_mm_setzero_ps(), sse64.m64.m23));
_mm_empty();
return result;
}