0.9.9 API documentation: ulp.hpp Source File

| 0.9.9 API documentation

- Main Page
- Modules
- Files

- File List

ulp.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 // Dependencies
18 #include "../detail/setup.hpp"
19 #include "../detail/qualifier.hpp"
20 #include "../detail/_vectorize.hpp"
21 #include "../ext/scalar_int_sized.hpp"
22
23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTC_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
78 template<length_t L, typename T, qualifier Q>
79 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x);
80
88 template<length_t L, typename T, qualifier Q>
89 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x, int ULPs);
90
98 template<length_t L, typename T, qualifier Q>
99 GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
100
108 template<length_t L, typename T, qualifier Q>
109 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x);
110
118 template<length_t L, typename T, qualifier Q>
119 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x, int ULPs);
120
128 template<length_t L, typename T, qualifier Q>
129 GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
130
137 template<length_t L, typename T, qualifier Q>
138 GLM_FUNC_DECL vec<L, int, Q> float_distance(vec<L, float, Q> const& x, vec<L, float, Q> const& y);
139
146 template<length_t L, typename T, qualifier Q>
147 GLM_FUNC_DECL vec<L, int64, Q> float_distance(vec<L, double, Q> const& x, vec<L, double, Q> const& y);
148
150 }//namespace glm
151
152 #include "ulp.inl"
glm::int64
detail::int64 int64
64 bit signed integer type.
Definition: scalar_int_sized.hpp:67
glm
Definition: common.hpp:20