0.9.6
ulp.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependencies
42 #include "../detail/setup.hpp"
43 #include "../detail/precision.hpp"
44 #include "../detail/type_int.hpp"
45 
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTC_ulp extension included")
48 #endif
49 
50 namespace glm
51 {
54 
57  template <typename genType>
58  GLM_FUNC_DECL genType next_float(genType const & x);
59 
62  template <typename genType>
63  GLM_FUNC_DECL genType prev_float(genType const & x);
64 
67  template <typename genType>
68  GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
69 
72  template <typename genType>
73  GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
74 
77  template <typename T>
78  GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
79 
82  template<typename T, template<typename> class vecType>
83  GLM_FUNC_DECL vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
84 
86 }// namespace glm
87 
88 #include "ulp.inl"
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:302
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
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_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
Definition: _noise.hpp:31