43 #include "../detail/setup.hpp"
44 #include "../detail/precision.hpp"
45 #include "../detail/type_int.hpp"
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTC_ulp extension included")
58 template <
typename genType>
59 GLM_FUNC_DECL genType
next_float(genType
const & x);
63 template <
typename genType>
64 GLM_FUNC_DECL genType
prev_float(genType
const & x);
68 template <
typename genType>
69 GLM_FUNC_DECL genType
next_float(genType
const & x,
uint const & Distance);
73 template <
typename genType>
74 GLM_FUNC_DECL genType
prev_float(genType
const & x,
uint const & Distance);
83 template<
typename T,
template<
typename>
class vecType>
84 GLM_FUNC_DECL vecType<uint>
float_distance(vecType<T>
const & x, vecType<T>
const & y);
GLM_FUNC_DECL genType next_float(genType const &x)
Return the next ULP value(s) after the input value(s).
unsigned int uint
Unsigned integer type.
GLM_FUNC_DECL uint float_distance(T const &x, T const &y)
Return the distance in the number of ULP between 2 scalars.
GLM_FUNC_DECL genType prev_float(genType const &x)
Return the previous ULP value(s) before the input value(s).