summaryrefslogtreecommitdiff
path: root/src/ints
diff options
context:
space:
mode:
Diffstat (limited to 'src/ints')
-rw-r--r--src/ints/cmp.cpp5
-rw-r--r--src/ints/cmp.hpp4
-rw-r--r--src/ints/cmp_test.cpp3
-rw-r--r--src/ints/fwd.hpp4
-rw-r--r--src/ints/little.cpp5
-rw-r--r--src/ints/little.hpp4
-rw-r--r--src/ints/udl.cpp5
-rw-r--r--src/ints/udl.hpp4
-rw-r--r--src/ints/udl_test.cpp3
-rw-r--r--src/ints/wrap.cpp5
-rw-r--r--src/ints/wrap.hpp4
11 files changed, 46 insertions, 0 deletions
diff --git a/src/ints/cmp.cpp b/src/ints/cmp.cpp
index 60a8fad..94ff0e3 100644
--- a/src/ints/cmp.cpp
+++ b/src/ints/cmp.cpp
@@ -19,3 +19,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../poison.hpp"
+
+
+namespace tmwa
+{
+} // namespace tmwa
diff --git a/src/ints/cmp.hpp b/src/ints/cmp.hpp
index de6a5f2..8839899 100644
--- a/src/ints/cmp.hpp
+++ b/src/ints/cmp.hpp
@@ -23,6 +23,9 @@
# include <limits>
+
+namespace tmwa
+{
namespace ints
{
# pragma GCC diagnostic push
@@ -64,5 +67,6 @@ namespace ints
} // namespace ints
using ints::saturate;
+} // namespace tmwa
#endif // TMWA_INTS_CMP_HPP
diff --git a/src/ints/cmp_test.cpp b/src/ints/cmp_test.cpp
index bcff87d..be99544 100644
--- a/src/ints/cmp_test.cpp
+++ b/src/ints/cmp_test.cpp
@@ -25,6 +25,8 @@
#include "../poison.hpp"
+namespace tmwa
+{
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
// Google Test is *really* slow to compile this file
@@ -1462,3 +1464,4 @@ TEST(ints, satu64)
EXPECT_EQ(maybe_cast<uint64_t>(+0xfffffffffffffffeULL), saturate<uint64_t>(maybe_cast<uint64_t>(+0xfffffffffffffffeULL)));
EXPECT_EQ(maybe_cast<uint64_t>(+0xffffffffffffffffULL), saturate<uint64_t>(maybe_cast<uint64_t>(+0xffffffffffffffffULL)));
}
+} // namespace tmwa
diff --git a/src/ints/fwd.hpp b/src/ints/fwd.hpp
index 7685da5..650e859 100644
--- a/src/ints/fwd.hpp
+++ b/src/ints/fwd.hpp
@@ -21,6 +21,10 @@
# include "../sanity.hpp"
+
+namespace tmwa
+{
// meh, add more when I feel like it
+} // namespace tmwa
#endif // TMWA_INTS_FWD_HPP
diff --git a/src/ints/little.cpp b/src/ints/little.cpp
index 2f81954..0ae5bf7 100644
--- a/src/ints/little.cpp
+++ b/src/ints/little.cpp
@@ -19,3 +19,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../poison.hpp"
+
+
+namespace tmwa
+{
+} // namespace tmwa
diff --git a/src/ints/little.hpp b/src/ints/little.hpp
index 9dd32c2..62bd729 100644
--- a/src/ints/little.hpp
+++ b/src/ints/little.hpp
@@ -25,6 +25,9 @@
# include <cstdint>
+
+namespace tmwa
+{
// We implement our own actual swapping, because glibc emits assembly
// instead of letting the *compiler* do what it does best.
# if __BYTE_ORDER != __BIG_ENDIAN && __BYTE_ORDER != __LITTLE_ENDIAN
@@ -135,5 +138,6 @@ using ints::Byte;
using ints::Little16;
using ints::Little32;
using ints::Little64;
+} // namespace tmwa
#endif // TMWA_INTS_LITTLE_HPP
diff --git a/src/ints/udl.cpp b/src/ints/udl.cpp
index 87dac9c..3988903 100644
--- a/src/ints/udl.cpp
+++ b/src/ints/udl.cpp
@@ -19,3 +19,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../poison.hpp"
+
+
+namespace tmwa
+{
+} // namespace tmwa
diff --git a/src/ints/udl.hpp b/src/ints/udl.hpp
index caed16b..8d18766 100644
--- a/src/ints/udl.hpp
+++ b/src/ints/udl.hpp
@@ -25,6 +25,9 @@
# include <type_traits>
+
+namespace tmwa
+{
namespace ints
{
namespace
@@ -222,5 +225,6 @@ using ints::operator "" _n8;
using ints::operator "" _n16;
using ints::operator "" _n32;
using ints::operator "" _n64;
+} // namespace tmwa
#endif // TMWA_INTS_UDL_HPP
diff --git a/src/ints/udl_test.cpp b/src/ints/udl_test.cpp
index 3fe01f5..b3ad30d 100644
--- a/src/ints/udl_test.cpp
+++ b/src/ints/udl_test.cpp
@@ -25,6 +25,8 @@
#include "../poison.hpp"
+namespace tmwa
+{
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#pragma GCC diagnostic push
@@ -783,3 +785,4 @@ TEST(ints, udl64)
EXPECT_EQ(+0X7FFFFFFFFFFFFFFE_p64, maybe_cast<int64_t>(0X7FFFFFFFFFFFFFFE));
EXPECT_EQ(+0X7FFFFFFFFFFFFFFF_p64, maybe_cast<int64_t>(0X7FFFFFFFFFFFFFFF));
}
+} // namespace tmwa
diff --git a/src/ints/wrap.cpp b/src/ints/wrap.cpp
index a80bd9f..84d4b33 100644
--- a/src/ints/wrap.cpp
+++ b/src/ints/wrap.cpp
@@ -19,3 +19,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../poison.hpp"
+
+
+namespace tmwa
+{
+} // namespace tmwa
diff --git a/src/ints/wrap.hpp b/src/ints/wrap.hpp
index 71f2673..2573de5 100644
--- a/src/ints/wrap.hpp
+++ b/src/ints/wrap.hpp
@@ -25,6 +25,9 @@
# include <type_traits>
+
+namespace tmwa
+{
namespace ints
{
namespace wrapped
@@ -105,5 +108,6 @@ namespace ints
using ints::wrapped::Wrapped;
using ints::wrapped::unwrap;
using ints::wrapped::wrap;
+} // namespace tmwa
#endif // TMWA_INTS_WRAP_HPP