pcm/Prng: make pcm_prng() inline

This commit is contained in:
Max Kellermann 2013-12-22 16:11:18 +01:00
parent 86e72ffefb
commit 5aae560683

View File

@ -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.
*/ */
constexpr static unsigned long constexpr static inline unsigned long
pcm_prng(unsigned long state) pcm_prng(unsigned long state)
{ {
return (state * 0x0019660dL + 0x3c6ef35fL) & 0xffffffffL; return (state * 0x0019660dL + 0x3c6ef35fL) & 0xffffffffL;