gtc/integer.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../detail/setup.hpp"
#include "../detail/precision.hpp"
#include "../detail/func_common.hpp"
#include "../detail/func_integer.hpp"
#include "../detail/func_exponential.hpp"
#include <limits>
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_integer extension included")
#endif
namespace glm
{
template <typename genIUType>
GLM_FUNC_DECL genIUType log2(genIUType x);
template <typename genIUType>
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y);
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_DECL vecType<T, P> mod(vecType<T, P> const & x, T y);
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_DECL vecType<T, P> mod(vecType<T, P> const & x, vecType<T, P> const & y);
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_DECL vecType<int, P> iround(vecType<T, P> const & x);
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_DECL vecType<uint, P> uround(vecType<T, P> const & x);
} //namespace glm
#include "integer.inl"
glm::uround
GLM_FUNC_DECL vecType< uint, P > uround(vecType< T, P > const &x)
Returns a value equal to the nearest integer to x.
glm::log2
GLM_FUNC_DECL genIUType log2(genIUType x)
Returns the log2 of x for integer values.
glm::mod
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y)
Modulus.
glm::iround
GLM_FUNC_DECL vecType< int, P > iround(vecType< T, P > const &x)
Returns a value equal to the nearest integer to x.
glm
Definition: _noise.hpp:11