0.9.6: ulp.hpp Source File

| 0.9.6

- Main Page
- Modules
- Files

- File List

ulp.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependencies
46 #include "../detail/setup.hpp"
47 #include "../detail/precision.hpp"
48 #include "../detail/type_int.hpp"
49
50 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
51 # pragma message("GLM: GLM_GTC_ulp extension included")
52 #endif
53
54 namespace glm
55 {
58
61 template <typename genType>
62 GLM_FUNC_DECL genType next_float(genType const & x);
63
66 template <typename genType>
67 GLM_FUNC_DECL genType prev_float(genType const & x);
68
71 template <typename genType>
72 GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
73
76 template <typename genType>
77 GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
78
81 template <typename T>
82 GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
83
86 template<typename T, template<typename> class vecType>
87 GLM_FUNC_DECL vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
88
90 }// namespace glm
91
92 #include "ulp.inl"
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::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:306
glm
Definition: _noise.hpp:39
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.
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).