42 #include "../detail/setup.hpp"
43 #include "../detail/precision.hpp"
44 #include "../detail/type_int.hpp"
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTC_ulp extension included")
57 template <
typename genType>
58 GLM_FUNC_DECL genType
next_float(genType
const & x);
62 template <
typename genType>
63 GLM_FUNC_DECL genType
prev_float(genType
const & x);
67 template <
typename genType>
68 GLM_FUNC_DECL genType
next_float(genType
const & x,
uint const & Distance);
72 template <
typename genType>
73 GLM_FUNC_DECL genType
prev_float(genType
const & x,
uint const & Distance);
82 template<
typename T,
template<
typename>
class vecType>
83 GLM_FUNC_DECL vecType<uint>
float_distance(vecType<T>
const & x, vecType<T>
const & y);
unsigned int uint
Unsigned integer type.
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
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 prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).