cpp-common/bt2c/data-len.hpp: `static inline` → `inline`
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 May 2024 15:50:31 +0000 (11:50 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I8f6a6d49d24ad312c2fdead6667bc41494f1321d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12766

src/cpp-common/bt2c/data-len.hpp

index 72167e0825a45d1a434ded099b725f36bd0f6511..4a533055da094ad26e6ed33461866a101e6e2eaf 100644 (file)
@@ -150,17 +150,17 @@ private:
     unsigned long long _mLenBits = 0;
 };
 
-static inline DataLen operator+(const DataLen lenA, const DataLen lenB) noexcept
+inline DataLen operator+(const DataLen lenA, const DataLen lenB) noexcept
 {
     return DataLen::fromBits(safeAdd(*lenA, *lenB));
 }
 
-static inline DataLen operator-(const DataLen lenA, const DataLen lenB) noexcept
+inline DataLen operator-(const DataLen lenA, const DataLen lenB) noexcept
 {
     return DataLen::fromBits(safeSub(*lenA, *lenB));
 }
 
-static inline DataLen operator*(const DataLen len, const unsigned long long mul) noexcept
+inline DataLen operator*(const DataLen len, const unsigned long long mul) noexcept
 {
     return DataLen::fromBits(safeMul(*len, mul));
 }
@@ -176,44 +176,42 @@ static inline DataLen operator*(const DataLen len, const unsigned long long mul)
 namespace literals {
 namespace datalen {
 
-/* The spaces between `operator""` and the suffixes is to please g++ 4.8. */
-
-static inline DataLen operator"" _bits(const unsigned long long val) noexcept
+inline DataLen operator"" _bits(const unsigned long long val) noexcept
 {
     return DataLen::fromBits(val);
 }
 
-static inline DataLen operator"" _KiBits(const unsigned long long val) noexcept
+inline DataLen operator"" _KiBits(const unsigned long long val) noexcept
 {
     return DataLen::fromBits(safeMul(val, 1024ULL));
 }
 
-static inline DataLen operator"" _MiBits(const unsigned long long val) noexcept
+inline DataLen operator"" _MiBits(const unsigned long long val) noexcept
 {
     return DataLen::fromBits(safeMul(val, 1024ULL * 1024));
 }
 
-static inline DataLen operator"" _GiBits(const unsigned long long val) noexcept
+inline DataLen operator"" _GiBits(const unsigned long long val) noexcept
 {
     return DataLen::fromBits(safeMul(val, 1024ULL * 1024 * 1024));
 }
 
-static inline DataLen operator"" _bytes(const unsigned long long val) noexcept
+inline DataLen operator"" _bytes(const unsigned long long val) noexcept
 {
     return DataLen::fromBytes(val);
 }
 
-static inline DataLen operator"" _KiBytes(const unsigned long long val) noexcept
+inline DataLen operator"" _KiBytes(const unsigned long long val) noexcept
 {
     return DataLen::fromBytes(safeMul(val, 1024ULL));
 }
 
-static inline DataLen operator"" _MiBytes(const unsigned long long val) noexcept
+inline DataLen operator"" _MiBytes(const unsigned long long val) noexcept
 {
     return DataLen::fromBytes(safeMul(val, 1024ULL * 1024));
 }
 
-static inline DataLen operator"" _GiBytes(const unsigned long long val) noexcept
+inline DataLen operator"" _GiBytes(const unsigned long long val) noexcept
 {
     return DataLen::fromBytes(safeMul(val, 1024ULL * 1024 * 1024));
 }
This page took 0.025677 seconds and 4 git commands to generate.