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>
42 template<
typename genType>
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);
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);
Core features
Definition: common.hpp:20
GLM_FUNC_DECL genType prev_float(genType x)
Return the previous ULP value(s) before the input value(s).
GLM_FUNC_DECL int float_distance(float x, float y)
Return the distance in the number of ULP between 2 single-precision floating-point scalars...
Definition: ulp.inl:85
GLM_FUNC_DECL genType next_float(genType x)
Return the next ULP value(s) after the input value(s).
detail::int64 int64
64 bit signed integer type.
Definition: scalar_int_sized.hpp:67