From 804ccddf7e08b7bac5121ed2b6f8c7fb9e5f3ed6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Oct 2018 00:06:48 +0100 Subject: pcm/Clamp: convert to `constexpr` --- src/pcm/Clamp.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pcm/Clamp.hxx') diff --git a/src/pcm/Clamp.hxx b/src/pcm/Clamp.hxx index 2461ba2a9..6d94f3b7c 100644 --- a/src/pcm/Clamp.hxx +++ b/src/pcm/Clamp.hxx @@ -34,8 +34,7 @@ template struct SampleTraits; * and caps it if necessary. */ template> -gcc_const -static inline typename Traits::value_type +constexpr typename Traits::value_type PcmClamp(typename Traits::long_type x) noexcept { typedef typename Traits::value_type T; -- cgit v1.2.3