/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
namespace
{
-class ThreeFry2x64Test : public ::testing::TestWithParam<std::vector<gmx_uint64_t> >
+class ThreeFry2x64Test : public ::testing::TestWithParam<std::vector<uint64_t> >
{
};
{
gmx::test::TestReferenceData data;
gmx::test::TestReferenceChecker checker(data.rootChecker());
- const std::vector<gmx_uint64_t> input = GetParam();
- std::vector<gmx_uint64_t> result;
+ const std::vector<uint64_t> input = GetParam();
+ std::vector<uint64_t> result;
gmx::ThreeFry2x64<0> rng(input[2], input[3]);
rng.restart(input[0], input[1]);
{
gmx::test::TestReferenceData data;
gmx::test::TestReferenceChecker checker(data.rootChecker());
- const std::vector<gmx_uint64_t> input = GetParam();
- std::vector<gmx_uint64_t> result;
+ const std::vector<uint64_t> input = GetParam();
+ std::vector<uint64_t> result;
gmx::ThreeFry2x64Fast<0> rng(input[2], input[3]);
rng.restart(input[0], input[1]);
{
gmx::test::TestReferenceData data;
gmx::test::TestReferenceChecker checker(data.rootChecker());
- const std::vector<gmx_uint64_t> input = GetParam();
- std::vector<gmx_uint64_t> result;
+ const std::vector<uint64_t> input = GetParam();
+ std::vector<uint64_t> result;
gmx::ThreeFry2x64General<40, 0> rng(input[2], input[3]);
rng.restart(input[0], input[1]);
* The 2x64 flavors of ThreeFry64 will use the first four values, while
* the 4x64 version uses all eight.
*/
-const std::vector<gmx_uint64_t> bitsZero {{
- 0, 0, 0, 0
- }};
+const std::vector<uint64_t> bitsZero {{
+ 0, 0, 0, 0
+ }};
/*! \brief Constant array of integers with all bits set to one.
* The 2x64 flavors of ThreeFry64 will use the first four values, while
* the 4x64 version uses all eight.
*/
-const std::vector<gmx_uint64_t> bitsOne {{
- 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL,
- 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL
- }};
+const std::vector<uint64_t> bitsOne {{
+ 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL,
+ 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL
+ }};
/*! \brief Constant array of integers with bitpattern from Pi.
*
* The 2x64 flavors of ThreeFry64 will use the first four values, while
* the 4x64 version uses all eight.
*/
-const std::vector<gmx_uint64_t> bitsPi {{
- 0x243f6a8885a308d3ULL, 0x13198a2e03707344ULL,
- 0xa4093822299f31d0ULL, 0x082efa98ec4e6c89ULL
- }};
+const std::vector<uint64_t> bitsPi {{
+ 0x243f6a8885a308d3ULL, 0x13198a2e03707344ULL,
+ 0xa4093822299f31d0ULL, 0x082efa98ec4e6c89ULL
+ }};
// Test the known ansers for the ThreeFry random function when the argument
// is (1) all zero, (2) all ones, (3) the bits of pi, for a bunch of different flavors of ThreeFry.
// 66 bits of internal counter means the first four increments (giving 2*4=8 results)
// correspond to incrementing word 0, and then we should carry over to word 1.
gmx::ThreeFry2x64<66> rngA(123456, gmx::RandomDomain::Other);
- std::vector<gmx_uint64_t> result;
+ std::vector<uint64_t> result;
for (int i = 0; i < 16; i++)
{