OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
RNGXCI.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  *
4  * The IPPL Framework
5  *
6  * This program was prepared by PSI.
7  * All rights in the program are reserved by PSI.
8  * Neither PSI nor the author(s)
9  * makes any warranty, express or implied, or assumes any liability or
10  * responsibility for the use of this software
11  *
12  * Visit www.amas.web.psi for more details
13  *
14  ***************************************************************************/
15 
16 // -*- C++ -*-
17 /***************************************************************************
18  *
19  * The IPPL Framework
20  *
21  *
22  * Visit http://people.web.psi.ch/adelmann/ for more details
23  *
24  ***************************************************************************/
25 
26 // include files
27 #include "Utility/RNGXCI.h"
28 
29 // initialize static variables for RNGXCI
30 
31 const RNlong RNGXCI::RN_MULT = 19073486328125LL; // 5^19
32 const RNlong RNGXCI::RN_MOD = 281474976710656LL; // 2^48
33 const RNlong RNGXCI::RN_PERIOD = RNGXCI::RN_MOD/4; // period
34 // normalize to (0,1)
35 const double RNGXCI::RN_NORM = 1./281474976710656.;
36 // 48-bit mask
38 
39 
40 /***************************************************************************
41  * $RCSfile: RNGXCI.cpp,v $ $Author: adelmann $
42  * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $
43  * IPPL_VERSION_ID: $Id: RNGXCI.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $
44  ***************************************************************************/
static const double RN_NORM
Definition: RNGXCI.h:107
static const RNlong RN_MOD
Definition: RNGXCI.h:105
static const RNlong RN_PERIOD
Definition: RNGXCI.h:106
static const RNlong RN_MASK
Definition: RNGXCI.h:108
static const RNlong RN_MULT
Definition: RNGXCI.h:104
long long RNlong
Definition: RNGXCI.h:41