Replace function instanciations with macros by templates

This commit is contained in:
Christophe Riccio
2014-10-20 02:03:48 +02:00
parent 0042517167
commit bf08a0e234
8 changed files with 196 additions and 433 deletions

View File

@@ -99,7 +99,8 @@ int test_inversesqrt()
for(float f = 0.001f; f < 10.f; f *= 1.001f)
{
glm::lowp_fvec1 lowp_v = glm::inversesqrt(glm::lowp_fvec1(f));
glm::lowp_fvec1 u(f);
glm::lowp_fvec1 lowp_v = glm::inversesqrt(u);
float defaultp_v = glm::inversesqrt(f);
ulp = glm::max(glm::float_distance(lowp_v.x, defaultp_v), ulp);