Hey all, was debugging a new node im making and some discussion on IRC
lead me to find this:
http://en.cppreference.com/w/cpp/language/types
Note that unsigned long, and long are truly DIFFERENT sizes on Win64
vs Linux64/FreeBSD64/OSX64
Not sure if anyone else ran into a problem like this, but I
I recently came across a similar issue when working on random number
generation for particles. I copied part of the code in
BLI_rand.h/rand.c, which uses the common linear congruential generator
[1]. In order to create random numbers over the full 32-bit integer
range, the internal state variable m
Oops, forgot the link:
[1]
http://en.wikipedia.org/wiki/Linear_congruential_generator
On Wed, Oct 26, 2011 at 11:33 AM, Lukas Tönne
wrote:
> I recently came across a similar issue when working on random number
> generation for particles. I copied part of the code in
> BLI_rand.h/rand.c, which us
MEM_sys_types.h can be used for this, it has int64_t and uint64_t.
On Wed, Oct 26, 2011 at 11:33 AM, Lukas Tönne
wrote:
> I recently came across a similar issue when working on random number
> generation for particles. I copied part of the code in
> BLI_rand.h/rand.c, which uses the common linear