Added EXT_vector_integer test

This commit is contained in:
Christophe
2019-07-12 15:44:17 +02:00
parent 27b622e968
commit 3288df2f89
2 changed files with 220 additions and 71 deletions

View File

@@ -6,7 +6,7 @@ namespace glm
GLM_FUNC_QUALIFIER vec<L, bool, Q> isPowerOfTwo(vec<L, T, Q> const& Value)
{
vec<L, T, Q> const Result(abs(Value));
return equal(Result & (Result - 1), vec<L, T, Q>(0));
return equal(Result & (Result - vec<L, T, Q>(1)), vec<L, T, Q>(0));
}
template<length_t L, typename T, qualifier Q>