0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

removed unnecessary lambdas

This commit is contained in:
Victor Zarubkin 2016-11-20 14:11:46 +03:00
parent 752f0c08a8
commit 21a7898572

View File

@ -106,9 +106,9 @@ const uint64_t ADDITIONAL_OFFSET = 50000000ULL; // Additional 50 ms before first
//////////////////////////////////////////////////////////////////////////
auto const sign = [](int _value) { return _value < 0 ? -1 : 1; };
auto const absmin = [](int _a, int _b) { return abs(_a) < abs(_b) ? _a : _b; };
auto const clamp = [](qreal _minValue, qreal _value, qreal _maxValue) { return _value < _minValue ? _minValue : (_value > _maxValue ? _maxValue : _value); };
inline int sign(int _value) { return _value < 0 ? -1 : 1; }
inline int absmin(int _a, int _b) { return abs(_a) < abs(_b) ? _a : _b; }
inline qreal clamp(qreal _minValue, qreal _value, qreal _maxValue) { return _value < _minValue ? _minValue : (_value > _maxValue ? _maxValue : _value); }
//////////////////////////////////////////////////////////////////////////