Skip to content

Commit

Permalink
fix RNG error for SSE MMC on windows - long is 32bit on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jul 16, 2019
1 parent c242112 commit 72ce3a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xorshift128p_rand.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@

#define __device__ static inline

typedef unsigned long RandType;
typedef unsigned long long RandType;
typedef unsigned int uint;

#ifdef _WIN32
typedef unsigned long long ulong;
#endif

#define MCX_RNG_NAME "xorshift128+ RNG"
#define RAND_BUF_LEN 2 //register arrays
Expand Down

0 comments on commit 72ce3a2

Please sign in to comment.