bit.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependencies
42 #include "../detail/type_int.hpp"
43 #include "../detail/setup.hpp"
44 #include <cstddef>
45 
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_bit extension included")
48 #endif
49 
50 namespace glm
51 {
54 
57  template <typename genIType>
58  GLM_FUNC_DECL genIType mask(genIType const & count);
59 
62  template <typename genType>
63  GLM_FUNC_DECL genType highestBitValue(genType const & value);
64 
67  template <typename genType>
68  GLM_FUNC_DECL bool isPowerOfTwo(genType const & value);
69 
72  template <typename genType>
73  GLM_FUNC_DECL genType powerOfTwoAbove(genType const & value);
74 
77  template <typename genType>
78  GLM_FUNC_DECL genType powerOfTwoBelow(genType const & value);
79 
82  template <typename genType>
83  GLM_FUNC_DECL genType powerOfTwoNearest(genType const & value);
84 
87  template <typename genType>
88  GLM_DEPRECATED GLM_FUNC_DECL genType bitRevert(genType const & value);
89 
92  template <typename genType>
93  GLM_FUNC_DECL genType bitRotateRight(genType const & In, std::size_t Shift);
94 
97  template <typename genType>
98  GLM_FUNC_DECL genType bitRotateLeft(genType const & In, std::size_t Shift);
99 
102  template <typename genIUType>
104  genIUType const & Value,
105  int const & FromBit,
106  int const & ToBit);
107 
110  template <typename genIUType>
112  genIUType const & Value,
113  int const & FromBit,
114  int const & ToBit);
115 
122 
129 
136 
143 
150 
157 
164 
171 
178 
185 
192 
199 
206 
213 
220 
227 
229 } //namespace glm
230 
231 #include "bit.inl"
GLM_FUNC_DECL genIType mask(genIType const &count)
detail::uint8 uint8
Definition: type_int.hpp:93
detail::uint32 uint32
Definition: type_int.hpp:95
detail::int8 int8
Definition: type_int.hpp:88
GLM_FUNC_DECL genType bitRotateLeft(genType const &In, std::size_t Shift)
#define GLM_DEPRECATED
Definition: setup.hpp:791
GLM_FUNC_DECL genType powerOfTwoBelow(genType const &value)
GLM_FUNC_DECL genIUType fillBitfieldWithOne(genIUType const &Value, int const &FromBit, int const &ToBit)
GLM_FUNC_DECL bool isPowerOfTwo(genType const &value)
detail::int16 int16
Definition: type_int.hpp:89
GLM_FUNC_DECL genType bitRotateRight(genType const &In, std::size_t Shift)
detail::uint16 uint16
Definition: type_int.hpp:94
GLM_FUNC_DECL genType powerOfTwoAbove(genType const &value)
GLM_FUNC_DECL genIUType fillBitfieldWithZero(genIUType const &Value, int const &FromBit, int const &ToBit)
GLM_FUNC_DECL genType highestBitValue(genType const &value)
detail::uint64 uint64
Definition: type_int.hpp:96
detail::int32 int32
Definition: type_int.hpp:90
GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y)
detail::int64 int64
Definition: type_int.hpp:91
#define GLM_FUNC_DECL
Definition: setup.hpp:728
GLM_DEPRECATED GLM_FUNC_DECL genType bitRevert(genType const &value)
GLM_FUNC_DECL genType powerOfTwoNearest(genType const &value)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:41:30