Import Geant4 11.1.0 source tree
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user