Commit b8019839 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Mods for Windows

parent 0d19a61c
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
#include "rng.h" #include "rng.h"
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
inline ulong32 ULONG32(slong x) { return (ulong32(x)); }
inline ulong32 ULONG32(ulong32 x) { return (ulong32(x)); }
inline ulong32 ULONG32(double x) { return (ulong32(x)); }
static const double PI = 3.1415926535897932; static const double PI = 3.1415926535897932;
//________________________________________________________________________ //________________________________________________________________________
......
// ORIGIN: // ORIGIN:
// http://sites.google.com/site/jivsoft/Home/a-c---random-number-generator-class // http://sites.google.com/site/jivsoft/Home/a-c---random-number-generator-class
#ifndef RNG_H #ifndef _RNG_OPENMM_H_
#define RNG_H #define _RNG_OPENMM_H_
// __________________________________________________________________________ // __________________________________________________________________________
// rng.h - a Random Number Generator Class // rng.h - a Random Number Generator Class
...@@ -94,11 +94,6 @@ typedef int32_t sint; ...@@ -94,11 +94,6 @@ typedef int32_t sint;
typedef uint32_t uint; typedef uint32_t uint;
typedef int32_t slong; typedef int32_t slong;
typedef uint32_t ulong32; typedef uint32_t ulong32;
#ifndef _MSC_VER
inline ulong32 ULONG32(slong x) { return (ulong32(x)); }
inline ulong32 ULONG32(ulong32 x) { return (ulong32(x)); }
inline ulong32 ULONG32(double x) { return (ulong32(x)); }
#endif
inline slong UL32toSL32(ulong32 x) { return (slong(x)); } inline slong UL32toSL32(ulong32 x) { return (slong(x)); }
class RNG class RNG
...@@ -229,6 +224,5 @@ class RNG ...@@ -229,6 +224,5 @@ class RNG
}; // class RNG }; // class RNG
#undef UINT32_MAX #undef UINT32_MAX
#endif // RNG_H #endif // RNG_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment