17 #include "../detail/setup.hpp"
18 #include "../detail/precision.hpp"
19 #include "../detail/type_int.hpp"
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTC_ulp extension included")
32 template <
typename genType>
33 GLM_FUNC_DECL genType
next_float(genType
const & x);
37 template <
typename genType>
38 GLM_FUNC_DECL genType
prev_float(genType
const & x);
42 template <
typename genType>
43 GLM_FUNC_DECL genType
next_float(genType
const & x,
uint const & Distance);
47 template <
typename genType>
48 GLM_FUNC_DECL genType
prev_float(genType
const & x,
uint const & Distance);
57 template<
typename T,
template<
typename>
class vecType>
58 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 prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
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.