Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
b8019839
Commit
b8019839
authored
Nov 18, 2009
by
Mark Friedrichs
Browse files
Mods for Windows
parent
0d19a61c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
platforms/cuda/src/kernels/rng.cpp
platforms/cuda/src/kernels/rng.cpp
+5
-1
platforms/cuda/src/kernels/rng.h
platforms/cuda/src/kernels/rng.h
+2
-8
No files found.
platforms/cuda/src/kernels/rng.cpp
View file @
b8019839
...
@@ -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
;
//________________________________________________________________________
//________________________________________________________________________
...
...
platforms/cuda/src/kernels/rng.h
View file @
b8019839
// 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment