18 #include "../detail/setup.hpp"
19 #include "../detail/qualifier.hpp"
20 #include "../detail/_vectorize.hpp"
21 #include "../ext/scalar_int_sized.hpp"
23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTC_ulp extension included")
34 template<
typename genType>
35 GLM_FUNC_DECL genType next_float(genType x);
42 template<
typename genType>
43 GLM_FUNC_DECL genType prev_float(genType x);
50 template<
typename genType>
51 GLM_FUNC_DECL genType next_float(genType x,
int ULPs);
58 template<
typename genType>
59 GLM_FUNC_DECL genType prev_float(genType x,
int ULPs);
64 GLM_FUNC_DECL
int float_distance(
float x,
float y);
69 GLM_FUNC_DECL
int64 float_distance(
double x,
double y);
78 template<length_t L,
typename T, qualifier Q>
79 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q>
const& x);
88 template<length_t L,
typename T, qualifier Q>
89 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q>
const& x,
int ULPs);
98 template<length_t L,
typename T, qualifier Q>
99 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q>
const& x, vec<L, int, Q>
const& ULPs);
108 template<length_t L,
typename T, qualifier Q>
109 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q>
const& x);
118 template<length_t L,
typename T, qualifier Q>
119 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q>
const& x,
int ULPs);
128 template<length_t L,
typename T, qualifier Q>
129 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q>
const& x, vec<L, int, Q>
const& ULPs);
137 template<length_t L,
typename T, qualifier Q>
138 GLM_FUNC_DECL vec<L, int, Q> float_distance(vec<L, float, Q>
const& x, vec<L, float, Q>
const& y);
146 template<length_t L,
typename T, qualifier Q>
147 GLM_FUNC_DECL vec<L, int64, Q> float_distance(vec<L, double, Q>
const& x, vec<L, double, Q>
const& y);
detail::int64 int64
64 bit signed integer type.