diff --git a/test/src/test_vec3.h b/test/src/test_vec3.h index ac504739..92043dd4 100644 --- a/test/src/test_vec3.h +++ b/test/src/test_vec3.h @@ -1673,7 +1673,9 @@ TEST_IMPL(GLM_PREFIX, vec3_eqv_eps) { TEST_IMPL(GLM_PREFIX, vec3_max) { vec3 v1 = {2.104f, -3.012f, -4.10f}, v2 = {-12.35f, -31.140f, -43.502f}; +#ifndef CGLM_FAST_MATH vec3 v3 = {INFINITY, 0.0f, 0.0f}/*, v4 = {NAN, INFINITY, 2.0f}*/; +#endif vec3 /*v5 = {NAN, -1.0f, -1.0f}, */v6 = {-1.0f, -11.0f, 11.0f}; ASSERT(test_eq(GLM(vec3_max)(v1), 2.104f)) diff --git a/test/src/test_vec4.h b/test/src/test_vec4.h index a9a32b40..f017a8ae 100644 --- a/test/src/test_vec4.h +++ b/test/src/test_vec4.h @@ -1344,7 +1344,9 @@ TEST_IMPL(GLM_PREFIX, vec4_eqv_eps) { TEST_IMPL(GLM_PREFIX, vec4_max) { vec4 v1 = {2.104f, -3.012f, -4.10f, -4.10f}; vec4 v2 = {-12.35f, -31.140f, -43.502f, -43.502f}; +#ifndef CGLM_FAST_MATH vec4 v3 = {INFINITY, 0.0f, 0.0f, 0.0f}; +#endif // vec4 v4 = {NAN, INFINITY, 2.0f, 2.0f}; // vec4 v5 = {NAN, -1.0f, -1.0f, -1.0f}; vec4 v6 = {-1.0f, -11.0f, 11.0f, 11.0f};