Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -31,14 +31,15 @@
// ------------------------------------------------------------
#include "G4UniformRandPool.hh"
#include "G4AutoDelete.hh"
#include "G4Threading.hh"
#include "globals.hh"
#include <algorithm>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <stdlib.h>
// Not aligned memory
//
@@ -46,7 +47,7 @@ void create_pool(G4double*& buffer, G4int ps) { buffer = new G4double[ps]; }
void destroy_pool(G4double*& buffer) { delete[] buffer; }
#if defined(WIN32)
#if defined(WIN32) || defined(__MINGW32__)
// No bother with WIN
void create_pool_align(G4double*& buffer, G4int ps) { create_pool(buffer, ps); }
void destroy_pool_align(G4double*& buffer) { destroy_pool(buffer); }
@@ -73,10 +74,7 @@ void create_pool_align(G4double*& buffer, G4int ps)
void destroy_pool_align(G4double*& buffer) { free(buffer); }
#endif
G4UniformRandPool::G4UniformRandPool()
: size(G4UNIFORMRANDPOOL_DEFAULT_POOLSIZE)
, buffer(nullptr)
, currentIdx(0)
G4UniformRandPool::G4UniformRandPool()
{
if(sizeof(G4double) * CHAR_BIT == 64)
{
@@ -91,8 +89,6 @@ G4UniformRandPool::G4UniformRandPool()
G4UniformRandPool::G4UniformRandPool(G4int siz)
: size(siz)
, buffer(nullptr)
, currentIdx(0)
{
if(sizeof(G4double) * CHAR_BIT == 64)
{