scalar_ulp.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../ext/scalar_int_sized.hpp"
#include "../common.hpp"
#include "../detail/qualifier.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_scalar_ulp extension included")
#endif
namespace glm
{
template<typename genType>
GLM_FUNC_DECL genType nextFloat(genType x);
template<typename genType>
GLM_FUNC_DECL genType prevFloat(genType x);
template<typename genType>
GLM_FUNC_DECL genType nextFloat(genType x, int ULPs);
template<typename genType>
GLM_FUNC_DECL genType prevFloat(genType x, int ULPs);
GLM_FUNC_DECL int floatDistance(float x, float y);
GLM_FUNC_DECL int64 floatDistance(double x, double y);
}//namespace glm
#include "scalar_ulp.inl"
glm::nextFloat
GLM_FUNC_DECL genType nextFloat(genType x, int ULPs)
Return the value(s) ULP distance after the input value(s).
glm::floatDistance
GLM_FUNC_DECL int64 floatDistance(double x, double y)
Return the distance in the number of ULP between 2 double-precision floating-point scalars.
glm::int64
detail::int64 int64
64 bit signed integer type.
Definition: scalar_int_sized.hpp:67
glm::prevFloat
GLM_FUNC_DECL genType prevFloat(genType x, int ULPs)
Return the value(s) ULP distance before the input value(s).