46 #include "../detail/setup.hpp"
47 #include "../detail/precision.hpp"
48 #include "../detail/type_int.hpp"
50 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
51 # pragma message("GLM: GLM_GTC_ulp extension included")
61 template <
typename genType>
62 GLM_FUNC_DECL genType
next_float(genType
const & x);
66 template <
typename genType>
67 GLM_FUNC_DECL genType
prev_float(genType
const & x);
71 template <
typename genType>
72 GLM_FUNC_DECL genType
next_float(genType
const & x,
uint const & Distance);
76 template <
typename genType>
77 GLM_FUNC_DECL genType
prev_float(genType
const & x,
uint const & Distance);
86 template<
typename T,
template<
typename>
class vecType>
87 GLM_FUNC_DECL vecType<uint>
float_distance(vecType<T>
const & x, vecType<T>
const & y);
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
unsigned int uint
Unsigned integer type.
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.
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).