| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

ulp.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependencies
17 #include "../detail/setup.hpp"
18 #include "../detail/precision.hpp"
19 #include "../detail/type_int.hpp"
20
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTC_ulp extension included")
23 #endif
24
25 namespace glm
26 {
29
32 template <typename genType>
33 GLM_FUNC_DECL genType next_float(genType const & x);
34
37 template <typename genType>
38 GLM_FUNC_DECL genType prev_float(genType const & x);
39
42 template <typename genType>
43 GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
44
47 template <typename genType>
48 GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
49
52 template <typename T>
53 GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
54
57 template<typename T, template<typename> class vecType>
58 GLM_FUNC_DECL vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
59
61 }// namespace glm
62
63 #include "ulp.inl"
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
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::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: _noise.hpp:11
glm::float_distance
GLM_FUNC_DECL vecType< uint > float_distance(vecType< T > const &x, vecType< T > const &y)
Return the distance in the number of ULP between 2 vectors.