Commit c071d6d9 authored by Max Kellermann's avatar Max Kellermann

pcm/PcmPrng: add "constexpr"

parent 1df426aa
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* A very simple linear congruential PRNG. It's good enough for PCM * A very simple linear congruential PRNG. It's good enough for PCM
* dithering. * dithering.
*/ */
static unsigned long constexpr static unsigned long
pcm_prng(unsigned long state) pcm_prng(unsigned long state)
{ {
return (state * 0x0019660dL + 0x3c6ef35fL) & 0xffffffffL; return (state * 0x0019660dL + 0x3c6ef35fL) & 0xffffffffL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment