diff options
-rw-r--r-- | Hilbert/BigBitVec.hpp | 4 | ||||
-rw-r--r-- | Hilbert/FixBitVec.hpp | 3 | ||||
-rw-r--r-- | Hilbert/Operations.hpp | 4 | ||||
-rw-r--r-- | test/test_fsb.cpp | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/Hilbert/BigBitVec.hpp b/Hilbert/BigBitVec.hpp index 80a92fb..5700b2e 100644 --- a/Hilbert/BigBitVec.hpp +++ b/Hilbert/BigBitVec.hpp @@ -29,6 +29,8 @@ #define FBVS_NEEDED(b) ((BBV_MAX(b,1)+FBV_BITS-1)/FBV_BITS) #define BBV_MODSPLIT(r,b,k) { b=(k); r=b/FBV_BITS; b-=r*FBV_BITS; } +namespace Hilbert { + class CBigBitVec { public: @@ -792,4 +794,6 @@ private: int m_iRacks; }; +} // namespace Hilbert + #endif diff --git a/Hilbert/FixBitVec.hpp b/Hilbert/FixBitVec.hpp index 06c3523..24f932d 100644 --- a/Hilbert/FixBitVec.hpp +++ b/Hilbert/FixBitVec.hpp @@ -24,6 +24,8 @@ #include <inttypes.h> #include <cassert> +namespace Hilbert { + // This must be an unsigned integer that is either // 32 or 64 bits. Otherwise, there are places in the // code that simply will not work. @@ -414,5 +416,6 @@ private: FBV_UINT m_uiRack; }; +} // namespace Hilbert #endif diff --git a/Hilbert/Operations.hpp b/Hilbert/Operations.hpp index 9f9cd0b..1413518 100644 --- a/Hilbert/Operations.hpp +++ b/Hilbert/Operations.hpp @@ -24,6 +24,8 @@ #include <cstddef> #include <type_traits> +namespace Hilbert { + /// IntegralIndex<T> only exists if T is integral template <typename T> using IntegralIndex = std::enable_if_t<std::is_integral<T>::value, int>; @@ -85,4 +87,6 @@ ffs<unsigned long long>(const unsigned long long field) return __builtin_ffsll(field); } +} // namespace Hilbert + #endif diff --git a/test/test_fsb.cpp b/test/test_fsb.cpp index f8299f0..f6388f7 100644 --- a/test/test_fsb.cpp +++ b/test/test_fsb.cpp @@ -23,6 +23,8 @@ #include <cassert> #include <string> +using namespace Hilbert; + template <typename T> int test_fsb(const int size) |