pcg-c-basic
pcg-c-basic copied to clipboard
PCG — Minimal C Implementation
I had also sent you (the author) an email a while ago about the same issue. The original code has a chain of shift -> xor -> shift, while the...
Thanks a lot for this wonderfully simple code! I just had a question and that is, is there an equally simple way to generate a 64-bit stream?
Since PCG is oriented towards speed, I thought I'd mention that as far as performance goes, not being able to inline the core functions like `pcg32_random_r` has a significant impact...
`return (xorshifted >> rot) | (xorshifted
I just release Haxe language implementation using PCG minimal C Implementation here https://github.com/flashultra/hxprng . At the moment I use Apache 2.0 license , but is it possible to release source...
Per https://github.com/imneme/pcg-cpp/pull/3#issuecomment-84388917 - corresponding PR's for the other repositories will be done shortly.
The **README** says that the code is written in a _'C89 style'_, but there's a lot of issues when trying to compile with _'-std=c89 -pedantic'_ in gcc. Also, 64-bits integer...
uint32_t pcg32_random_r(pcg32_random_t* rng); I got an error message C4146 when I compiled this function with vs 2013. the problem is the minus op applied to unsigned type variable rot(in the...
That variant requires only one division instead of two in the usual case of small `bound`. Even in the worst case of `bound = 2^31+1` average number of divisions will...
Full MISRA C compliance of the C minimal library would be great, but even improving compliance is good. Unfortunately I can't make a pull request right now, but below are...