diff options
Diffstat (limited to 'gowin/archdefs.h')
-rw-r--r-- | gowin/archdefs.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gowin/archdefs.h b/gowin/archdefs.h index 2efe1437..67ac6521 100644 --- a/gowin/archdefs.h +++ b/gowin/archdefs.h @@ -26,33 +26,6 @@ NEXTPNR_NAMESPACE_BEGIN typedef float delay_t; -struct DelayInfo -{ - delay_t minRaise = 0; - delay_t minFall = 0; - delay_t maxRaise = 0; - delay_t maxFall = 0; - - delay_t minRaiseDelay() const { return minRaise; } - delay_t maxRaiseDelay() const { return maxRaise; } - - delay_t minFallDelay() const { return minFall; } - delay_t maxFallDelay() const { return maxFall; } - - delay_t minDelay() const { return std::min(minFall, minRaise); } - delay_t maxDelay() const { return std::max(maxFall, maxRaise); } - - DelayInfo operator+(const DelayInfo &other) const - { - DelayInfo ret; - ret.minRaise = this->minRaise + other.minRaise; - ret.maxRaise = this->maxRaise + other.maxRaise; - ret.minFall = this->minFall + other.minFall; - ret.maxFall = this->maxFall + other.maxFall; - return ret; - } -}; - #ifndef Q_MOC_RUN enum ConstIds { |