Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -28,16 +28,16 @@
#ifndef G4QUICKRAND_HH
#define G4QUICKRAND_HH
#include <cstdint>
#include "G4Types.hh"
#include <cstdint>
inline G4double G4QuickRand()
{
static const G4double f = 1. / 4294967296.; // 2^-32
static const G4double f = 1. / 4294967296.; // 2^-32
// Algorithm "xor" from p.4 of G.Marsaglia, "Xorshift RNGs"
static G4ThreadLocal uint32_t y = 2463534242;
uint32_t x = y;
uint32_t x = y;
x ^= x << 13;
x ^= x >> 17;
x ^= x << 5;
@@ -45,4 +45,4 @@ inline G4double G4QuickRand()
return x * f;
}
#endif // G4QUICKRAND_HH
#endif // G4QUICKRAND_HH