1.0.0 API documentation
E:
Github
g-truc
glm
glm
ext
scalar_ulp.hpp
Go to the documentation of this file.
1
16
#pragma once
17
18
// Dependencies
19
#include "../ext/scalar_int_sized.hpp"
20
#include "../common.hpp"
21
#include "../detail/qualifier.hpp"
22
23
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24
# pragma message("GLM: GLM_EXT_scalar_ulp extension included")
25
#endif
26
27
namespace
glm
28
{
31
37
template
<
typename
genType>
38
GLM_FUNC_DECL genType
nextFloat
(genType x);
39
45
template
<
typename
genType>
46
GLM_FUNC_DECL genType
prevFloat
(genType x);
47
53
template
<
typename
genType>
54
GLM_FUNC_DECL genType
nextFloat
(genType x,
int
ULPs);
55
61
template
<
typename
genType>
62
GLM_FUNC_DECL genType
prevFloat
(genType x,
int
ULPs);
63
67
GLM_FUNC_DECL
int
floatDistance
(
float
x,
float
y);
68
72
GLM_FUNC_DECL
int64
floatDistance
(
double
x,
double
y);
73
75
}
//namespace glm
76
77
#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).
Generated by
1.8.18