ulp.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../detail/setup.hpp"
#include "../detail/qualifier.hpp"
#include "../detail/type_int.hpp"
#include "../detail/compute_vector_relational.hpp"
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_ulp extension included")
#endif
namespace glm
{
template<typename genType>
GLM_FUNC_DECL genType next_float(genType const& x);
template<typename genType>
GLM_FUNC_DECL genType prev_float(genType const& x);
template<typename genType>
GLM_FUNC_DECL genType next_float(genType const& x, uint const& Distance);
template<typename genType>
GLM_FUNC_DECL genType prev_float(genType const& x, uint const& Distance);
template<typename T>
GLM_FUNC_DECL uint float_distance(T const& x, T const& y);
template<typename T, qualifier Q>
GLM_FUNC_DECL vec<2, uint, Q> float_distance(vec<2, T, Q> const& x, vec<2, T, Q> const& y);
}// namespace glm
#include "ulp.inl"
glm::next_float
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
glm
Definition: common.hpp:20
glm::prev_float
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
glm::float_distance
GLM_FUNC_DECL vec< 2, uint, Q > float_distance(vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)
Return the distance in the number of ULP between 2 vectors.