0.9.9 API documenation
builds
AstraOS
buildsystem
tbs_build
glm
glm-0.9.9.3
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
{
34
template
<
typename
genType>
35
GLM_FUNC_DECL genType
next_float
(genType x);
36
42
template
<
typename
genType>
43
GLM_FUNC_DECL genType
prev_float
(genType x);
44
50
template
<
typename
genType>
51
GLM_FUNC_DECL genType
next_float
(genType x,
int
ULPs);
52
58
template
<
typename
genType>
59
GLM_FUNC_DECL genType
prev_float
(genType x,
int
ULPs);
60
64
GLM_FUNC_DECL
int
float_distance
(
float
x,
float
y);
65
69
GLM_FUNC_DECL
int64
float_distance
(
double
x,
double
y);
70
72
}
//namespace glm
73
74
#include "scalar_ulp.inl"
glm::int64
detail::int64 int64
64 bit signed integer type.
Definition:
scalar_int_sized.hpp:67
glm::next_float
GLM_FUNC_DECL genType next_float(genType x)
Return the next ULP value(s) after the input value(s).
glm::float_distance
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::prev_float
GLM_FUNC_DECL genType prev_float(genType x)
Return the previous ULP value(s) before the input value(s).
Generated by
1.8.20