Added GLM_HAS_TRIVIAL_QUERIES define
This commit is contained in:
@@ -531,6 +531,10 @@
|
||||
(GLM_LANG & GLM_LANG_CXX11_FLAG) || \
|
||||
((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC49)))
|
||||
|
||||
#define GLM_HAS_TRIVIAL_QUERIES (\
|
||||
((GLM_LANG & GLM_LANG_CXX11_FLAG) && !(GLM_COMPILER & GLM_COMPILER_GCC)) || \
|
||||
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)))
|
||||
|
||||
// OpenMP
|
||||
#ifdef _OPENMP
|
||||
# if GLM_COMPILER & GLM_COMPILER_GCC
|
||||
|
||||
@@ -295,8 +295,8 @@ namespace detail
|
||||
if(isPowerOfTwo(value))
|
||||
return value;
|
||||
|
||||
genType const prev = highestBitValue(value);
|
||||
genType const next = prev << 1;
|
||||
genIUType const prev = highestBitValue(value);
|
||||
genIUType const next = prev << 1;
|
||||
return (next - value) < (value - prev) ? next : prev;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user