pcm/PcmPrng: add "constexpr"
This commit is contained in:
parent
1df426aa5c
commit
c071d6d9f6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user