75 G4int errcode = posix_memalign( (
void**) &buffer ,
80 G4Exception(
"G4UniformRandPool::create_pool_align()",
82 "Cannot allocate aligned buffer");
109 : size(siz),
buffer(0), currentIdx(0)
111 if (
sizeof(
G4double)*CHAR_BIT==64 )
125 if (
sizeof(
G4double)*CHAR_BIT==64 )
137 if ( newSize !=
size )
149 assert(howmany>0 && howmany <=
size);
153 G4Random::getTheEngine()->flatArray(howmany,
buffer);
159 assert(rnds!=0 && howmany>0);
189 for ( ; cycle < maxcycles ; ++cycle )
236 return rndpool->GetOne();
246 rndpool->GetMany(rnds,(
unsigned int)howmany);
static constexpr double ps
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)