diff options
author | Chris Robinson <[email protected]> | 2023-05-05 13:37:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-05 13:50:16 -0700 |
commit | bfe766cd574985465fe1a9f4cffa388ca9ca1f9b (patch) | |
tree | 7752588dfa87ae2616fd84437697f4458d4d5293 /common/alnumeric.h | |
parent | 09b153b85c9f6c75a6361ab2ecb0ed81e8920ff3 (diff) |
Use some more standard functions
Diffstat (limited to 'common/alnumeric.h')
-rw-r--r-- | common/alnumeric.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/alnumeric.h b/common/alnumeric.h index d6919e40..8220d3e5 100644 --- a/common/alnumeric.h +++ b/common/alnumeric.h @@ -283,12 +283,6 @@ inline float fast_roundf(float f) noexcept } -template<typename T> -constexpr const T& clamp(const T& value, const T& min_value, const T& max_value) noexcept -{ - return std::min(std::max(value, min_value), max_value); -} - // Converts level (mB) to gain. inline float level_mb_to_gain(float x) { |