From c071d6d9f62682cd7831f8e23b6c360a00fbe779 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Dec 2013 09:03:32 +0100 Subject: pcm/PcmPrng: add "constexpr" --- src/pcm/PcmPrng.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pcm/PcmPrng.hxx') 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; -- cgit v1.2.3