Fix errors and enable new cluster fit compressor.
This commit is contained in:
@ -50,7 +50,7 @@ static inline Vector3 firstEigenVector_PowerMethod(const float *__restrict matri
|
||||
v = Vector3(x, y, z) / norm;
|
||||
}
|
||||
|
||||
return v;
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,18 +2,29 @@
|
||||
|
||||
#include "Vector.h" // Vector3, Vector4
|
||||
|
||||
|
||||
// Set some reasonable defaults.
|
||||
#ifndef NV_USE_ALTIVEC
|
||||
# define NV_USE_ALTIVEC NV_CPU_PPC
|
||||
//# define NV_USE_ALTIVEC defined(__VEC__)
|
||||
#endif
|
||||
|
||||
#ifndef NV_USE_SSE
|
||||
# if NV_CPU_X86 || NV_CPU_X86_64
|
||||
# define NV_USE_SSE 2
|
||||
# endif
|
||||
//# if defined(__SSE2__)
|
||||
//# define NV_USE_SSE 2
|
||||
//# elif defined(__SSE__)
|
||||
//# define NV_USE_SSE 1
|
||||
//# else
|
||||
//# define NV_USE_SSE 0
|
||||
//# endif
|
||||
#endif
|
||||
|
||||
// Internally set NV_USE_SIMD when either altivec or sse is available.
|
||||
#if NV_USE_ALTIVEC && NV_USE_SSE
|
||||
# error "Cannot enable both altivec and sse!"
|
||||
#endif
|
||||
|
||||
#if NV_USE_ALTIVEC
|
||||
# include "SimdVector_VE.h"
|
||||
|
@ -46,10 +46,10 @@ namespace nv {
|
||||
explicit SimdVector(float f) : vec(_mm_set1_ps(f)) {}
|
||||
explicit SimdVector(__m128 v) : vec(v) {}
|
||||
|
||||
explicit SimdVector(Vector4::Arg v)
|
||||
/*explicit SimdVector(const Vector4 & v)
|
||||
{
|
||||
vec = _mm_load_ps( v.component );
|
||||
}
|
||||
vec = _mm_load_ps( v.components );
|
||||
}*/
|
||||
|
||||
explicit SimdVector(const float * v)
|
||||
{
|
||||
|
Reference in New Issue
Block a user