Merge branch 'noise' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into noise

This commit is contained in:
Christophe Riccio
2011-05-05 12:36:32 +01:00
27 changed files with 265 additions and 336 deletions

View File

@@ -129,6 +129,8 @@ namespace bitRevert
int main()
{
::extractField::test();
::bitRevert::test();
bool Error = 0;
Error += ::extractField::test();
Error += ::bitRevert::test();
return Error;
}

View File

@@ -224,14 +224,14 @@ int test_compute_gtx()
std::clock_t TimeEnd = clock();
printf("test_compute_gtx: %ld\n", TimeEnd - TimeStart);
return Output.size() != 0;
return 0;
}
int main()
{
int Failed = GLM_COMPILER;
int Error = 0;
std::vector<glm::mat4> Data(1024 * 1024 * 8);
std::vector<glm::mat4> Data(64 * 64 * 1);
for(std::size_t i = 0; i < Data.size(); ++i)
Data[i] = glm::mat4(
glm::vec4(glm::compRand4(-2.0f, 2.0f)),
@@ -277,13 +277,11 @@ int main()
glm::simdVec4 B(5.0f, 6.0f, 7.0f, 8.0f);
__m128 C = _mm_shuffle_ps(A.Data, B.Data, _MM_SHUFFLE(1, 0, 1, 0));
Failed += test_compute_glm();
Failed += test_compute_gtx();
Error += test_compute_glm();
Error += test_compute_gtx();
float Det = glm::determinant(glm::simdMat4(1.0));
glm::simdMat4 D = glm::matrixCompMult(glm::simdMat4(1.0), glm::simdMat4(1.0));
system("pause");
return Failed;
return Error;
}