diff --git a/ClockReceiver/ClockReceiver.hpp b/ClockReceiver/ClockReceiver.hpp index c1a9b587d..ecfccec27 100644 --- a/ClockReceiver/ClockReceiver.hpp +++ b/ClockReceiver/ClockReceiver.hpp @@ -54,8 +54,8 @@ */ template class WrappedInt { public: - constexpr WrappedInt(int l) : length_(l) {} - constexpr WrappedInt() : length_(0) {} + forceinline constexpr WrappedInt(int l) : length_(l) {} + forceinline constexpr WrappedInt() : length_(0) {} forceinline T &operator =(const T &rhs) { length_ = rhs.length_; @@ -165,19 +165,19 @@ template class WrappedInt { /// Describes an integer number of whole cycles: pairs of clock signal transitions. class Cycles: public WrappedInt { public: - constexpr Cycles(int l) : WrappedInt(l) {} - constexpr Cycles() : WrappedInt() {} - constexpr Cycles(const Cycles &cycles) : WrappedInt(cycles.length_) {} + forceinline constexpr Cycles(int l) : WrappedInt(l) {} + forceinline constexpr Cycles() : WrappedInt() {} + forceinline constexpr Cycles(const Cycles &cycles) : WrappedInt(cycles.length_) {} }; /// Describes an integer number of half cycles: single clock signal transitions. class HalfCycles: public WrappedInt { public: - constexpr HalfCycles(int l) : WrappedInt(l) {} - constexpr HalfCycles() : WrappedInt() {} + forceinline constexpr HalfCycles(int l) : WrappedInt(l) {} + forceinline constexpr HalfCycles() : WrappedInt() {} - constexpr HalfCycles(const Cycles cycles) : WrappedInt(cycles.as_int() * 2) {} - constexpr HalfCycles(const HalfCycles &half_cycles) : WrappedInt(half_cycles.length_) {} + forceinline constexpr HalfCycles(const Cycles cycles) : WrappedInt(cycles.as_int() * 2) {} + forceinline constexpr HalfCycles(const HalfCycles &half_cycles) : WrappedInt(half_cycles.length_) {} /// @returns The number of whole cycles completely covered by this span of half cycles. forceinline constexpr Cycles cycles() const {