ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | huft |
Macros | |
#define | WSIZE 0x8000 /* window size--must be a power of two, and at least */ |
#define | NEXTBYTE csz__ReadByte() |
#define | FPRINTF fprintf |
#define | FLUSH(n) csz__WriteData(n) /* return value not used */ |
#define | Trace(x) |
#define | CHECK_EOF |
#define | NEEDBITS(n) {while(k<(n)){if(ibufcnt-- <= 0)return 1;b|=((ulg) *ibufptr++)<<k;k+=8;}} |
#define | DUMPBITS(n) {b>>=(n);k-=(n);} |
#define | BMAX 16 /* maximum bit length of any code (16 for explode) */ |
#define | N_MAX 288 /* maximum number of codes in any set */ |
#define | NEEDBITS_free_tl(n) {while(k<(n)){if(ibufcnt-- <= 0){csz__huft_free(tl);return 1;} b|=((ulg) *ibufptr++)<<k;k+=8;}} |
Typedefs | |
typedef char | boolean |
typedef unsigned char | uch |
typedef unsigned short | ush |
typedef unsigned long | ulg |
Functions | |
int | csz__huft_build (unsigned *, unsigned, unsigned, ush *, ush *, struct huft **, int *) |
int | csz__huft_free (struct huft *) |
int | csz__Inflate_codes (struct huft *, struct huft *, int, int) |
int | csz__Inflate_stored (void) |
int | csz__Inflate_fixed (void) |
int | csz__Inflate_dynamic (void) |
int | csz__Inflate_block (int *) |
int | csz__Inflate (void) |
int | csz__Inflate_free (void) |
static void | csz__WriteData (int) |
void | csz__Init_Inflate (long a_ibufcnt, unsigned char *a_ibufptr, long a_obufcnt, unsigned char *a_obufptr) |
unsigned char * | csz__obufptr () |
Variables | |
static uch | csz__slide [32768] |
static unsigned | wp |
static unsigned | border [] |
static ush | cplens [] |
static ush | cplext [] |
static ush | cpdist [] |
static ush | cpdext [] |
static ush | mask [] |
static ulg | bb |
static unsigned | bk |
static uch * | ibufptr |
static uch * | obufptr |
static long | ibufcnt |
static long | obufcnt |
static int | lbits = 9 |
static int | dbits = 6 |
static unsigned | hufts |
struct huft * | csz__fixed_tl = (struct huft *)NULL |
struct huft * | csz__fixed_td |
int | csz__fixed_bl |
int | csz__fixed_bd |
Definition at line 403 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 403 of file csz_inflate.cc
Referenced by csz__huft_build().
#define CHECK_EOF |
Definition at line 349 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 349 of file csz_inflate.cc
Definition at line 362 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 362 of file csz_inflate.cc
Referenced by csz__Inflate_block(), csz__Inflate_codes(), csz__Inflate_dynamic(), and csz__Inflate_stored().
#define FLUSH | ( | n | ) | csz__WriteData(n) /* return value not used */ |
Definition at line 226 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 226 of file csz_inflate.cc
Referenced by csz__Inflate(), csz__Inflate_codes(), and csz__Inflate_stored().
#define FPRINTF fprintf |
Definition at line 222 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 222 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic().
Definition at line 404 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 404 of file csz_inflate.cc
Referenced by csz__huft_build().
Definition at line 359 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 359 of file csz_inflate.cc
Referenced by csz__Inflate_block(), csz__Inflate_codes(), csz__Inflate_dynamic(), and csz__Inflate_stored().
#define NEEDBITS_free_tl | ( | n | ) | {while(k<(n)){if(ibufcnt-- <= 0){csz__huft_free(tl);return 1;} b|=((ulg) *ibufptr++)<<k;k+=8;}} |
Referenced by csz__Inflate_dynamic().
#define NEXTBYTE csz__ReadByte() |
Definition at line 218 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 218 of file csz_inflate.cc
#define Trace | ( | x | ) |
Definition at line 235 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 235 of file csz_inflate.cc
Referenced by csz__Inflate(), csz__Inflate_dynamic(), csz__Inflate_fixed(), csz__Inflate_stored(), and inflate().
#define WSIZE 0x8000 /* window size--must be a power of two, and at least */ |
Definition at line 214 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 214 of file csz_inflate.cc
Referenced by csz__Inflate_codes(), and csz__Inflate_stored().
typedef char boolean |
Definition at line 208 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 208 of file csz_inflate.cc
typedef unsigned char uch |
Definition at line 209 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 209 of file csz_inflate.cc
typedef unsigned long ulg |
Definition at line 211 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 211 of file csz_inflate.cc
typedef unsigned short ush |
Definition at line 210 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 210 of file csz_inflate.cc
int csz__huft_build | ( | unsigned * | b, |
unsigned | n, | ||
unsigned | s, | ||
ush * | d, | ||
ush * | e, | ||
struct huft ** | t, | ||
int * | m | ||
) |
Definition at line 410 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 410 of file csz_inflate.cc
References a, b, huft::b, BMAX, c, csz__huft_free(), huft::e, f, Acts::UnitConstants::g, Acts::UnitConstants::h, hufts, k, n, huft::n, N_MAX, r, huft::t, Acts::UnitConstants::u, v, huft::v, w, x, y, and z.
Referenced by csz__Inflate_dynamic(), and csz__Inflate_fixed().
Definition at line 609 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 609 of file csz_inflate.cc
Referenced by csz__huft_build(), csz__Inflate_dynamic(), csz__Inflate_fixed(), and csz__Inflate_free().
Definition at line 1076 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1076 of file csz_inflate.cc
References bb, bk, csz__Inflate_block(), e, FLUSH, Acts::UnitConstants::h, hufts, r, Trace, and wp.
Definition at line 1028 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1028 of file csz_inflate.cc
References b, bb, bk, csz__Inflate_dynamic(), csz__Inflate_fixed(), csz__Inflate_stored(), DUMPBITS, int(), k, NEEDBITS, and t.
Referenced by csz__Inflate().
Definition at line 638 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 638 of file csz_inflate.cc
References b, huft::b, bb, bk, csz__slide, d, DUMPBITS, e, FLUSH, if(), k, mask, n, huft::n, NEEDBITS, t, huft::t, huft::v, w, wp, and WSIZE.
Referenced by csz__Inflate_fixed().
Definition at line 854 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 854 of file csz_inflate.cc
References b, bb, bk, border, cpdext, cpdist, cplens, cplext, csz__huft_build(), csz__huft_free(), dbits, DUMPBITS, FPRINTF, k, lbits, m, mask, n, huft::n, NEEDBITS, NEEDBITS_free_tl, Trace, and huft::v.
Referenced by csz__Inflate_block().
Definition at line 806 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 806 of file csz_inflate.cc
References cpdext, cpdist, cplens, cplext, csz__fixed_bd, csz__fixed_bl, csz__huft_build(), csz__huft_free(), csz__Inflate_codes(), and Trace.
Referenced by csz__Inflate_block().
Definition at line 1111 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1111 of file csz_inflate.cc
References csz__huft_free().
Definition at line 748 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 748 of file csz_inflate.cc
References b, bb, bk, csz__slide, DUMPBITS, FLUSH, k, n, NEEDBITS, Trace, w, wp, and WSIZE.
Referenced by csz__Inflate_block().
void csz__Init_Inflate | ( | long | a_ibufcnt, |
unsigned char * | a_ibufptr, | ||
long | a_obufcnt, | ||
unsigned char * | a_obufptr | ||
) |
Definition at line 1123 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1123 of file csz_inflate.cc
unsigned char* csz__obufptr | ( | ) |
Definition at line 1131 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1131 of file csz_inflate.cc
References obufptr.
Definition at line 1149 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 1149 of file csz_inflate.cc
References csz__slide, n, obufcnt, and obufptr.
|
static |
Definition at line 344 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 344 of file csz_inflate.cc
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), G4VLEPTSModel::BuildMeanFreePathTable(), G4DNADingfelderChargeIncreaseModel::CrossSectionPerVolume(), csz__Inflate(), csz__Inflate_block(), csz__Inflate_codes(), csz__Inflate_dynamic(), csz__Inflate_stored(), fgp1(), fgp2(), fgp3(), G4JTPolynomialSolver::FindRoots(), flap(), flap1(), flap2(), G4RandomPointInEllipse(), gauss1(), gauss2(), gauss3(), gauss4(), G4NeutrinoElectronNcXsc::GetElementCrossSection(), G4NeutrinoElectronCcXsc::GetElementCrossSection(), G4MuNeutrinoNucleusTotXsc::GetIsoCrossSection(), G4EllipticalCone::GetPointOnSurface(), hijcsc(), hijels(), hijing(), hijsft(), octree_inner(), profile(), pygau2(), pygaus(), pygrvd(), pygrvl(), pygrvm(), pysghf(), G4JTPolynomialSolver::Quadratic(), G4JTPolynomialSolver::QuadraticSyntheticDivision(), quench(), G4DNACPA100IonisationModel::RandomizeEjectedElectronEnergyFromCompositionSampling(), HepGeom::Reflect3D::Reflect3D(), G4HadronElastic::SampleInvariantT(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4ChargeExchange::SampleT(), and HelixHough::vote_z().
|
static |
Definition at line 345 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 345 of file csz_inflate.cc
Referenced by G4Abla::bipol(), bk(), csz__Inflate(), csz__Inflate_block(), csz__Inflate_codes(), csz__Inflate_dynamic(), csz__Inflate_stored(), G4Abla::densniv(), G4Abla::direct(), omg0(), pygrvv(), and pygrvw().
|
static |
Definition at line 298 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 298 of file csz_inflate.cc
Referenced by G4eplusTo3GammaOKVIModel::ComputeF(), G4eplusTo3GammaOKVIModel::ComputeF0(), csz__Inflate_dynamic(), G4Poisson(), G4ModifiedTsai::SampleCosTheta(), and G4eplusTo3GammaOKVIModel::SampleSecondaries().
|
static |
Definition at line 311 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 311 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic(), and csz__Inflate_fixed().
|
static |
Definition at line 307 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 307 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic(), and csz__Inflate_fixed().
|
static |
Definition at line 300 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 300 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic(), and csz__Inflate_fixed().
|
static |
Definition at line 304 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 304 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic(), and csz__Inflate_fixed().
int csz__fixed_bd |
Definition at line 804 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 804 of file csz_inflate.cc
Referenced by csz__Inflate_fixed().
int csz__fixed_bl |
Definition at line 804 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 804 of file csz_inflate.cc
Referenced by csz__Inflate_fixed().
struct huft* csz__fixed_td |
Definition at line 803 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 803 of file csz_inflate.cc
Definition at line 802 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 802 of file csz_inflate.cc
|
static |
Definition at line 293 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 293 of file csz_inflate.cc
Referenced by csz__Inflate_codes(), csz__Inflate_stored(), and csz__WriteData().
|
static |
Definition at line 399 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 399 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic().
|
static |
Definition at line 407 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 407 of file csz_inflate.cc
Referenced by csz__huft_build(), and csz__Inflate().
|
static |
Definition at line 347 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 347 of file csz_inflate.cc
Referenced by csz__Init_Inflate().
|
static |
Definition at line 346 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 346 of file csz_inflate.cc
Referenced by csz__Init_Inflate().
|
static |
Definition at line 398 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 398 of file csz_inflate.cc
Referenced by csz__Inflate_dynamic().
|
static |
Definition at line 317 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 317 of file csz_inflate.cc
Referenced by csz__Inflate_codes(), csz__Inflate_dynamic(), Acts::HierarchicalGeometryContainer< value_t >::equalWithinMask(), G4Voxelizer::GetCandidatesVoxelArray(), CLHEP::HepJamesRandom::HepJamesRandom(), inflate_table(), lookup(), Acts::HierarchicalGeometryContainer< value_t >::makeLeadingLevelsMask(), CLHEP::MTwistEngine::MTwistEngine(), G4ViewParameters::ParseGeometry(), oncsSub_idmvtxv0::print_stuff(), oncsSub_idmvtxv1::print_stuff(), oncsSub_idmvtxv2::print_stuff(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), simpleRandom::rnd(), Acts::GeometryID::setBits(), and storeAtts().
|
static |
Definition at line 347 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 347 of file csz_inflate.cc
Referenced by csz__Init_Inflate(), and csz__WriteData().
|
static |
Definition at line 346 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 346 of file csz_inflate.cc
Referenced by csz__Init_Inflate(), csz__obufptr(), and csz__WriteData().
|
static |
Definition at line 294 of file csz_inflate.cc.
View newest version in sPHENIX GitHub at line 294 of file csz_inflate.cc
Referenced by attrad(), G4RPGAntiProtonInelastic::Cascade(), G4RPGAntiNeutronInelastic::Cascade(), G4RPGKZeroInelastic::Cascade(), G4RPGKPlusInelastic::Cascade(), csz__Inflate(), csz__Inflate_codes(), csz__Inflate_stored(), hijhrd(), hijsft(), and G4Region::SetWorld().