ulp.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../detail/setup.hpp"
#include "../detail/precision.hpp"
#include "../detail/type_int.hpp"
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_ulp extension included")
#endif
namespace glm
{
template <typename genType>
GLM_FUNC_DECL genType next_float(genType const & x);
template <typename genType>
GLM_FUNC_DECL genType prev_float(genType const & x);
template <typename genType>
GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
template <typename genType>
GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
template <typename T>
GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
template<typename T, template<typename> class vecType>
GLM_FUNC_DECL vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
}// namespace glm
#include "ulp.inl"
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
glm::prev_float
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
glm::next_float
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
glm
Definition: _noise.hpp:11
glm::float_distance
GLM_FUNC_DECL vecType< uint > float_distance(vecType< T > const &x, vecType< T > const &y)
Return the distance in the number of ULP between 2 vectors.