|  | 1.0.0 API documentation
    | 
 
 
 
Go to the documentation of this file.
   15 #include "../detail/setup.hpp" 
   16 #include "../detail/qualifier.hpp" 
   17 #include "../detail/_vectorize.hpp" 
   18 #include "../vector_relational.hpp" 
   19 #include "../common.hpp" 
   22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 
   23 #       pragma message("GLM: GLM_EXT_vector_integer extension included") 
   38         template<length_t L, 
typename T, qualifier Q>
 
   49         template<length_t L, 
typename T, qualifier Q>
 
   60         template<length_t L, 
typename T, qualifier Q>
 
   70         template<length_t L, 
typename T, qualifier Q>
 
   71         GLM_FUNC_DECL vec<L, bool, Q> 
isMultiple(vec<L, T, Q> 
const& v, T Multiple);
 
   80         template<length_t L, 
typename T, qualifier Q>
 
   81         GLM_FUNC_DECL vec<L, bool, Q> 
isMultiple(vec<L, T, Q> 
const& v, vec<L, T, Q> 
const& Multiple);
 
   93         template<length_t L, 
typename T, qualifier Q>
 
   94         GLM_FUNC_DECL vec<L, T, Q> 
nextMultiple(vec<L, T, Q> 
const& v, T Multiple);
 
  106         template<length_t L, 
typename T, qualifier Q>
 
  107         GLM_FUNC_DECL vec<L, T, Q> 
nextMultiple(vec<L, T, Q> 
const& v, vec<L, T, Q> 
const& Multiple);
 
  119         template<length_t L, 
typename T, qualifier Q>
 
  120         GLM_FUNC_DECL vec<L, T, Q> 
prevMultiple(vec<L, T, Q> 
const& v, T Multiple);
 
  132         template<length_t L, 
typename T, qualifier Q>
 
  133         GLM_FUNC_DECL vec<L, T, Q> 
prevMultiple(vec<L, T, Q> 
const& v, vec<L, T, Q> 
const& Multiple);
 
  143         template<length_t L, 
typename T, qualifier Q>
 
  144         GLM_FUNC_DECL vec<L, int, Q> 
findNSB(vec<L, T, Q> 
const& Source, vec<L, int, Q> SignificantBitCount);
 
  149 #include "vector_integer.inl" 
  
GLM_FUNC_DECL vec< L, T, Q > prevMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Lower multiple number of Source.
GLM_FUNC_DECL vec< L, T, Q > nextMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Higher multiple number of Source.
GLM_FUNC_DECL vec< L, bool, Q > isMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Return true if the 'Value' is a multiple of 'Multiple'.
GLM_FUNC_DECL vec< L, bool, Q > isPowerOfTwo(vec< L, T, Q > const &v)
Return true if the value is a power of two number.
GLM_FUNC_DECL vec< L, int, Q > findNSB(vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)
Returns the bit number of the Nth significant bit set to 1 in the binary representation of value.
GLM_FUNC_DECL vec< L, T, Q > nextPowerOfTwo(vec< L, T, Q > const &v)
Return the power of two number which value is just higher the input value, round up to a power of two...
GLM_FUNC_DECL vec< L, T, Q > prevPowerOfTwo(vec< L, T, Q > const &v)
Return the power of two number which value is just lower the input value, round down to a power of tw...