pcm/Prng: make pcm_prng() inline
This commit is contained in:
parent
86e72ffefb
commit
5aae560683
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user