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::powerOfTwoNearest
GLM_FUNC_DECL genType powerOfTwoNearest(genType const &value)
glm::mask
GLM_FUNC_DECL genIType mask(genIType const &count)
glm::int16
detail::int16 int16
Definition: type_int.hpp:89
glm::uint16
detail::uint16 uint16
Definition: type_int.hpp:94
glm::int8
detail::int8 int8
Definition: type_int.hpp:88
glm::uint32
detail::uint32 uint32
Definition: type_int.hpp:95
glm::powerOfTwoBelow
GLM_FUNC_DECL genType powerOfTwoBelow(genType const &value)
glm::fillBitfieldWithOne
GLM_FUNC_DECL genIUType fillBitfieldWithOne(genIUType const &Value, int const &FromBit, int const &ToBit)
glm::bitRotateLeft
GLM_FUNC_DECL genType bitRotateLeft(genType const &In, std::size_t Shift)
glm::uint8
detail::uint8 uint8
Definition: type_int.hpp:93
GLM_DEPRECATED
#define GLM_DEPRECATED
Definition: setup.hpp:791
glm::powerOfTwoAbove
GLM_FUNC_DECL genType powerOfTwoAbove(genType const &value)
glm::isPowerOfTwo
GLM_FUNC_DECL bool isPowerOfTwo(genType const &value)
glm::fillBitfieldWithZero
GLM_FUNC_DECL genIUType fillBitfieldWithZero(genIUType const &Value, int const &FromBit, int const &ToBit)
glm::bitRotateRight
GLM_FUNC_DECL genType bitRotateRight(genType const &In, std::size_t Shift)
glm
Definition: _literals.hpp:31
glm::highestBitValue
GLM_FUNC_DECL genType highestBitValue(genType const &value)
glm::uint64
detail::uint64 uint64
Definition: type_int.hpp:96
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728
int64
long long int64
glm::int32
detail::int32 int32
Definition: type_int.hpp:90
glm::bitRevert
GLM_DEPRECATED GLM_FUNC_DECL genType bitRevert(genType const &value)
glm::bitfieldInterleave
GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:06