Clutter Engine 0.0.1
Loading...
Searching...
No Matches
ulp.hpp
Go to the documentation of this file.
1
14
15#pragma once
16
17// Dependencies
18#include "../detail/setup.hpp"
19#include "../detail/qualifier.hpp"
20#include "../detail/_vectorize.hpp"
22
23#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24# pragma message("GLM: GLM_GTC_ulp extension included")
25#endif
26
27namespace 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>
139
146 template<length_t L, typename T, qualifier Q>
148
150}//namespace glm
151
152#include "ulp.inl"
detail::int64 int64
64 bit signed integer type.
Definition scalar_int_sized.hpp:67
Core features
Definition common.hpp:21
GLM_FUNC_DECL int float_distance(float x, float y)
Definition ulp.inl:85
GLM_FUNC_DECL genType next_float(genType x)
GLM_FUNC_DECL genType prev_float(genType x)
Definition qualifier.hpp:35