mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Prevent TravisCI timeout, shorter test
This commit is contained in:
parent
9b158c57b9
commit
c83e38f9fb
@ -98,7 +98,7 @@ int test_inversesqrt()
|
|||||||
glm::uint ulp(0);
|
glm::uint ulp(0);
|
||||||
float diff(0.0f);
|
float diff(0.0f);
|
||||||
|
|
||||||
for(float f = 0.001f; f < 10.f; f *= 1.001f)
|
for(float f = 0.001f; f < 10.f; f *= 1.01f)
|
||||||
{
|
{
|
||||||
glm::lowp_fvec1 u(f);
|
glm::lowp_fvec1 u(f);
|
||||||
glm::lowp_fvec1 lowp_v = glm::inversesqrt(u);
|
glm::lowp_fvec1 lowp_v = glm::inversesqrt(u);
|
||||||
@ -106,6 +106,7 @@ int test_inversesqrt()
|
|||||||
|
|
||||||
ulp = glm::max(glm::float_distance(lowp_v.x, defaultp_v), ulp);
|
ulp = glm::max(glm::float_distance(lowp_v.x, defaultp_v), ulp);
|
||||||
diff = glm::abs(lowp_v.x - defaultp_v);
|
diff = glm::abs(lowp_v.x - defaultp_v);
|
||||||
|
Error += diff > 0.1f ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
Loading…
Reference in New Issue
Block a user