aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-02 09:03:32 +0100
committerMax Kellermann <max@duempel.org>2013-12-02 11:21:32 +0100
commitc071d6d9f62682cd7831f8e23b6c360a00fbe779 (patch)
tree18c4ab4f4404b3d6d5729f96df66c33f68ee198a
parent1df426aa5c571d3d88ecb7bed6b8ed9b32c15e32 (diff)
downloadmpd-c071d6d9f62682cd7831f8e23b6c360a00fbe779.tar.gz
mpd-c071d6d9f62682cd7831f8e23b6c360a00fbe779.tar.xz
mpd-c071d6d9f62682cd7831f8e23b6c360a00fbe779.zip
pcm/PcmPrng: add "constexpr"
-rw-r--r--src/pcm/PcmPrng.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/PcmPrng.hxx b/src/pcm/PcmPrng.hxx
index 0c823250d..9b6ed7c9e 100644
--- a/src/pcm/PcmPrng.hxx
+++ b/src/pcm/PcmPrng.hxx
@@ -24,7 +24,7 @@
* A very simple linear congruential PRNG. It's good enough for PCM
* dithering.
*/
-static unsigned long
+constexpr static unsigned long
pcm_prng(unsigned long state)
{
return (state * 0x0019660dL + 0x3c6ef35fL) & 0xffffffffL;