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")
37 template<
typename genType>
45 template<
typename genType>
53 template<
typename genType>
61 template<
typename genType>
81 template<length_t L,
typename T, qualifier Q>
82 GLM_FUNC_DECL vec<L, T, Q>
next_float(vec<L, T, Q>
const& x);
91 template<length_t L,
typename T, qualifier Q>
92 GLM_FUNC_DECL vec<L, T, Q>
next_float(vec<L, T, Q>
const& x,
int ULPs);
101 template<length_t L,
typename T, qualifier Q>
102 GLM_FUNC_DECL vec<L, T, Q>
next_float(vec<L, T, Q>
const& x, vec<L, int, Q>
const& ULPs);
111 template<length_t L,
typename T, qualifier Q>
112 GLM_FUNC_DECL vec<L, T, Q>
prev_float(vec<L, T, Q>
const& x);
121 template<length_t L,
typename T, qualifier Q>
122 GLM_FUNC_DECL vec<L, T, Q>
prev_float(vec<L, T, Q>
const& x,
int ULPs);
131 template<length_t L,
typename T, qualifier Q>
132 GLM_FUNC_DECL vec<L, T, Q>
prev_float(vec<L, T, Q>
const& x, vec<L, int, Q>
const& ULPs);
140 template<length_t L,
typename T, qualifier Q>
141 GLM_FUNC_DECL vec<L, int, Q>
float_distance(vec<L, float, Q>
const& x, vec<L, float, Q>
const& y);
149 template<length_t L,
typename T, qualifier Q>
150 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.
GLM_FUNC_DECL genType next_float(genType x)
Return the next ULP value(s) after 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.
GLM_FUNC_DECL genType prev_float(genType x)
Return the previous ULP value(s) before the input value(s).