LLVM API Documentation

bzlib_private.h File Reference

#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "bzlib.h"

Include dependency graph for bzlib_private.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EState
struct  DState

Defines

#define BZ_VERSION   "1.0.2, 30-Dec-2001"
#define True   ((Bool)1)
#define False   ((Bool)0)
#define __inline__
#define AssertH(cond, errcode)   { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }
#define AssertD(cond, msg)
#define VPrintf0(zf)   fprintf(stderr,zf)
#define VPrintf1(zf, za1)   fprintf(stderr,zf,za1)
#define VPrintf2(zf, za1, za2)   fprintf(stderr,zf,za1,za2)
#define VPrintf3(zf, za1, za2, za3)   fprintf(stderr,zf,za1,za2,za3)
#define VPrintf4(zf, za1, za2, za3, za4)   fprintf(stderr,zf,za1,za2,za3,za4)
#define VPrintf5(zf, za1, za2, za3, za4, za5)   fprintf(stderr,zf,za1,za2,za3,za4,za5)
#define BZALLOC(nnn)   (strm->bzalloc)(strm->opaque,(nnn),1)
#define BZFREE(ppp)   (strm->bzfree)(strm->opaque,(ppp))
#define BZ_HDR_B   0x42
#define BZ_HDR_Z   0x5a
#define BZ_HDR_h   0x68
#define BZ_HDR_0   0x30
#define BZ_MAX_ALPHA_SIZE   258
#define BZ_MAX_CODE_LEN   23
#define BZ_RUNA   0
#define BZ_RUNB   1
#define BZ_N_GROUPS   6
#define BZ_G_SIZE   50
#define BZ_N_ITERS   4
#define BZ_MAX_SELECTORS   (2 + (900000 / BZ_G_SIZE))
#define BZ_RAND_DECLS
#define BZ_RAND_INIT_MASK
#define BZ_RAND_MASK   ((s->rNToGo == 1) ? 1 : 0)
#define BZ_RAND_UPD_MASK
#define BZ_INITIALISE_CRC(crcVar)
#define BZ_FINALISE_CRC(crcVar)
#define BZ_UPDATE_CRC(crcVar, cha)
#define BZ_M_IDLE   1
#define BZ_M_RUNNING   2
#define BZ_M_FLUSHING   3
#define BZ_M_FINISHING   4
#define BZ_S_OUTPUT   1
#define BZ_S_INPUT   2
#define BZ_N_RADIX   2
#define BZ_N_QSORT   12
#define BZ_N_SHELL   18
#define BZ_N_OVERSHOOT   (BZ_N_RADIX + BZ_N_QSORT + BZ_N_SHELL + 2)
#define BZ_X_IDLE   1
#define BZ_X_OUTPUT   2
#define BZ_X_MAGIC_1   10
#define BZ_X_MAGIC_2   11
#define BZ_X_MAGIC_3   12
#define BZ_X_MAGIC_4   13
#define BZ_X_BLKHDR_1   14
#define BZ_X_BLKHDR_2   15
#define BZ_X_BLKHDR_3   16
#define BZ_X_BLKHDR_4   17
#define BZ_X_BLKHDR_5   18
#define BZ_X_BLKHDR_6   19
#define BZ_X_BCRC_1   20
#define BZ_X_BCRC_2   21
#define BZ_X_BCRC_3   22
#define BZ_X_BCRC_4   23
#define BZ_X_RANDBIT   24
#define BZ_X_ORIGPTR_1   25
#define BZ_X_ORIGPTR_2   26
#define BZ_X_ORIGPTR_3   27
#define BZ_X_MAPPING_1   28
#define BZ_X_MAPPING_2   29
#define BZ_X_SELECTOR_1   30
#define BZ_X_SELECTOR_2   31
#define BZ_X_SELECTOR_3   32
#define BZ_X_CODING_1   33
#define BZ_X_CODING_2   34
#define BZ_X_CODING_3   35
#define BZ_X_MTF_1   36
#define BZ_X_MTF_2   37
#define BZ_X_MTF_3   38
#define BZ_X_MTF_4   39
#define BZ_X_MTF_5   40
#define BZ_X_MTF_6   41
#define BZ_X_ENDHDR_2   42
#define BZ_X_ENDHDR_3   43
#define BZ_X_ENDHDR_4   44
#define BZ_X_ENDHDR_5   45
#define BZ_X_ENDHDR_6   46
#define BZ_X_CCRC_1   47
#define BZ_X_CCRC_2   48
#define BZ_X_CCRC_3   49
#define BZ_X_CCRC_4   50
#define MTFA_SIZE   4096
#define MTFL_SIZE   16
#define BZ_GET_FAST(cccc)
#define BZ_GET_FAST_C(cccc)
#define SET_LL4(i, n)
#define GET_LL4(i)   ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF)
#define SET_LL(i, n)
#define GET_LL(i)   (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16))
#define BZ_GET_SMALL(cccc)

Typedefs

typedef char Char
typedef unsigned char Bool
typedef unsigned char UChar
typedef int Int32
typedef unsigned int UInt32
typedef short Int16
typedef unsigned short UInt16

Functions

void BZ2_bz__AssertH__fail (int errcode)
void BZ2_blockSort (EState *)
void BZ2_compressBlock (EState *, Bool)
void BZ2_bsInitWrite (EState *)
void BZ2_hbAssignCodes (Int32 *, UChar *, Int32, Int32, Int32)
void BZ2_hbMakeCodeLengths (UChar *, Int32 *, Int32, Int32)
Int32 BZ2_indexIntoF (Int32, Int32 *)
Int32 BZ2_decompress (DState *)
void BZ2_hbCreateDecodeTables (Int32 *, Int32 *, Int32 *, UChar *, Int32, Int32, Int32)

Variables

Int32 BZ2_rNums [512]
UInt32 BZ2_crc32Table [256]


Define Documentation

#define __inline__

Definition at line 93 of file bzlib_private.h.

#define AssertD ( cond,
msg   ) 

Definition at line 108 of file bzlib_private.h.

Referenced by fallbackQSort3(), generateMTFValues(), mainGtU(), and mainQSort3().

#define AssertH ( cond,
errcode   )     { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }

Definition at line 98 of file bzlib_private.h.

Referenced by BZ2_blockSort(), BZ2_bzDecompress(), BZ2_hbMakeCodeLengths(), fallbackQSort3(), fallbackSort(), mainQSort3(), mainSort(), and sendMTFValues().

#define BZ_FINALISE_CRC ( crcVar   ) 

Value:

{                                              \
   crcVar = ~(crcVar);                         \
}

Definition at line 196 of file bzlib_private.h.

Referenced by BZ2_bzDecompress(), and BZ2_compressBlock().

#define BZ_G_SIZE   50

Definition at line 156 of file bzlib_private.h.

#define BZ_GET_FAST ( cccc   ) 

Value:

s->tPos = s->tt[s->tPos];                 \
    cccc = (UChar)(s->tPos & 0xff);           \
    s->tPos >>= 8;

Definition at line 478 of file bzlib_private.h.

Referenced by unRLE_obuf_to_output_FAST().

#define BZ_GET_FAST_C ( cccc   ) 

Value:

c_tPos = c_tt[c_tPos];                    \
    cccc = (UChar)(c_tPos & 0xff);            \
    c_tPos >>= 8;

Definition at line 483 of file bzlib_private.h.

Referenced by unRLE_obuf_to_output_FAST().

#define BZ_GET_SMALL ( cccc   ) 

Value:

cccc = BZ2_indexIntoF ( s->tPos, s->cftab );    \
      s->tPos = GET_LL(s->tPos);

Definition at line 505 of file bzlib_private.h.

Referenced by BZ2_decompress(), and unRLE_obuf_to_output_SMALL().

#define BZ_HDR_0   0x30

Definition at line 145 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), BZ2_decompress(), and bzopen_or_bzdopen().

#define BZ_HDR_B   0x42

Definition at line 142 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), and BZ2_decompress().

#define BZ_HDR_h   0x68

Definition at line 144 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), and BZ2_decompress().

#define BZ_HDR_Z   0x5a

Definition at line 143 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), and BZ2_decompress().

#define BZ_INITIALISE_CRC ( crcVar   ) 

Value:

{                                              \
   crcVar = 0xffffffffL;                       \
}

Definition at line 191 of file bzlib_private.h.

Referenced by BZ2_decompress(), and prepare_new_block().

#define BZ_M_FINISHING   4

Definition at line 215 of file bzlib_private.h.

Referenced by BZ2_bzCompress(), and handle_compress().

#define BZ_M_FLUSHING   3

Definition at line 214 of file bzlib_private.h.

Referenced by BZ2_bzCompress(), and handle_compress().

#define BZ_M_IDLE   1

Definition at line 212 of file bzlib_private.h.

Referenced by BZ2_bzCompress().

#define BZ_M_RUNNING   2

Definition at line 213 of file bzlib_private.h.

Referenced by BZ2_bzCompress(), BZ2_bzCompressInit(), copy_input_until_stop(), and handle_compress().

#define BZ_MAX_ALPHA_SIZE   258

Definition at line 149 of file bzlib_private.h.

Referenced by BZ2_hbMakeCodeLengths().

#define BZ_MAX_CODE_LEN   23

Definition at line 150 of file bzlib_private.h.

Referenced by BZ2_hbCreateDecodeTables().

#define BZ_MAX_SELECTORS   (2 + (900000 / BZ_G_SIZE))

Definition at line 159 of file bzlib_private.h.

#define BZ_N_GROUPS   6

Definition at line 155 of file bzlib_private.h.

Referenced by BZ2_decompress(), and sendMTFValues().

#define BZ_N_ITERS   4

Definition at line 157 of file bzlib_private.h.

#define BZ_N_OVERSHOOT   (BZ_N_RADIX + BZ_N_QSORT + BZ_N_SHELL + 2)

Definition at line 223 of file bzlib_private.h.

Referenced by BZ2_blockSort(), BZ2_bzCompressInit(), and mainSort().

#define BZ_N_QSORT   12

Definition at line 221 of file bzlib_private.h.

#define BZ_N_RADIX   2

Definition at line 220 of file bzlib_private.h.

Referenced by mainSort().

#define BZ_N_SHELL   18

Definition at line 222 of file bzlib_private.h.

#define BZ_RAND_DECLS

Value:

Int32 rNToGo;                               \
   Int32 rTPos                                 \

Definition at line 167 of file bzlib_private.h.

#define BZ_RAND_INIT_MASK

Value:

s->rNToGo = 0;                              \
   s->rTPos  = 0                               \

Definition at line 171 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_RAND_MASK   ((s->rNToGo == 1) ? 1 : 0)

Definition at line 175 of file bzlib_private.h.

Referenced by BZ2_decompress(), unRLE_obuf_to_output_FAST(), and unRLE_obuf_to_output_SMALL().

#define BZ_RAND_UPD_MASK

Value:

if (s->rNToGo == 0) {                       \
      s->rNToGo = BZ2_rNums[s->rTPos];         \
      s->rTPos++;                              \
      if (s->rTPos == 512) s->rTPos = 0;       \
   }                                           \
   s->rNToGo--;

Definition at line 177 of file bzlib_private.h.

Referenced by BZ2_decompress(), unRLE_obuf_to_output_FAST(), and unRLE_obuf_to_output_SMALL().

#define BZ_RUNA   0

Definition at line 152 of file bzlib_private.h.

Referenced by BZ2_decompress(), and generateMTFValues().

#define BZ_RUNB   1

Definition at line 153 of file bzlib_private.h.

Referenced by BZ2_decompress(), and generateMTFValues().

#define BZ_S_INPUT   2

Definition at line 218 of file bzlib_private.h.

Referenced by BZ2_bzCompressInit(), and handle_compress().

#define BZ_S_OUTPUT   1

Definition at line 217 of file bzlib_private.h.

Referenced by handle_compress().

#define BZ_UPDATE_CRC ( crcVar,
cha   ) 

Value:

{                                              \
   crcVar = (crcVar << 8) ^                    \
            BZ2_crc32Table[(crcVar >> 24) ^    \
                           ((UChar)cha)];      \
}

Definition at line 201 of file bzlib_private.h.

Referenced by add_pair_to_block(), unRLE_obuf_to_output_FAST(), and unRLE_obuf_to_output_SMALL().

#define BZ_VERSION   "1.0.2, 30-Dec-2001"

Definition at line 79 of file bzlib_private.h.

Referenced by BZ2_bzlibVersion().

#define BZ_X_BCRC_1   20

Definition at line 338 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BCRC_2   21

Definition at line 339 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BCRC_3   22

Definition at line 340 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BCRC_4   23

Definition at line 341 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BLKHDR_1   14

Definition at line 332 of file bzlib_private.h.

Referenced by BZ2_bzDecompress(), and BZ2_decompress().

#define BZ_X_BLKHDR_2   15

Definition at line 333 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BLKHDR_3   16

Definition at line 334 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BLKHDR_4   17

Definition at line 335 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BLKHDR_5   18

Definition at line 336 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_BLKHDR_6   19

Definition at line 337 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_CCRC_1   47

Definition at line 365 of file bzlib_private.h.

#define BZ_X_CCRC_2   48

Definition at line 366 of file bzlib_private.h.

#define BZ_X_CCRC_3   49

Definition at line 367 of file bzlib_private.h.

#define BZ_X_CCRC_4   50

Definition at line 368 of file bzlib_private.h.

#define BZ_X_CODING_1   33

Definition at line 351 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_CODING_2   34

Definition at line 352 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_CODING_3   35

Definition at line 353 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_ENDHDR_2   42

Definition at line 360 of file bzlib_private.h.

#define BZ_X_ENDHDR_3   43

Definition at line 361 of file bzlib_private.h.

#define BZ_X_ENDHDR_4   44

Definition at line 362 of file bzlib_private.h.

#define BZ_X_ENDHDR_5   45

Definition at line 363 of file bzlib_private.h.

#define BZ_X_ENDHDR_6   46

Definition at line 364 of file bzlib_private.h.

#define BZ_X_IDLE   1

Definition at line 325 of file bzlib_private.h.

Referenced by BZ2_bzDecompress().

#define BZ_X_MAGIC_1   10

Definition at line 328 of file bzlib_private.h.

Referenced by BZ2_bzDecompress(), BZ2_bzDecompressInit(), and BZ2_decompress().

#define BZ_X_MAGIC_2   11

Definition at line 329 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MAGIC_3   12

Definition at line 330 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MAGIC_4   13

Definition at line 331 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MAPPING_1   28

Definition at line 346 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MAPPING_2   29

Definition at line 347 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_1   36

Definition at line 354 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_2   37

Definition at line 355 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_3   38

Definition at line 356 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_4   39

Definition at line 357 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_5   40

Definition at line 358 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_MTF_6   41

Definition at line 359 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_ORIGPTR_1   25

Definition at line 343 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_ORIGPTR_2   26

Definition at line 344 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_ORIGPTR_3   27

Definition at line 345 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_OUTPUT   2

Definition at line 326 of file bzlib_private.h.

Referenced by BZ2_bzDecompress(), and BZ2_decompress().

#define BZ_X_RANDBIT   24

Definition at line 342 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_SELECTOR_1   30

Definition at line 348 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_SELECTOR_2   31

Definition at line 349 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZ_X_SELECTOR_3   32

Definition at line 350 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define BZALLOC ( nnn   )     (strm->bzalloc)(strm->opaque,(nnn),1)

Definition at line 136 of file bzlib_private.h.

Referenced by BZ2_bzCompressInit(), BZ2_bzDecompressInit(), and BZ2_decompress().

#define BZFREE ( ppp   )     (strm->bzfree)(strm->opaque,(ppp))

Definition at line 137 of file bzlib_private.h.

Referenced by BZ2_bzCompressEnd(), BZ2_bzCompressInit(), and BZ2_bzDecompressEnd().

#define False   ((Bool)0)

Definition at line 90 of file bzlib_private.h.

Referenced by BZ2_bzReadOpen(), BZ2_bzWriteOpen(), BZ2_decompress(), BZ2_hbMakeCodeLengths(), NullPointerRules::CastToBool(), copy_input_until_stop(), copy_output_until_stop(), llvm::SelectionDAG::getSelectCC(), getSetCCValue(), handle_compress(), isempty_RL(), IsTrivialUnswitchCondition(), mainGtU(), mainSort(), myfeof(), Next(), OptimizeGlobalAddressOfMalloc(), prepare_new_block(), and ShrinkGlobalToBoolean().

#define GET_LL (  )     (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16))

Definition at line 502 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define GET_LL4 (  )     ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF)

Definition at line 494 of file bzlib_private.h.

#define MTFA_SIZE   4096

Definition at line 374 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define MTFL_SIZE   16

Definition at line 375 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define SET_LL ( i,
 ) 

Value:

{ s->ll16[i] = (UInt16)(n & 0x0000ffff);  \
     SET_LL4(i, n >> 16);                    \
   }

Definition at line 497 of file bzlib_private.h.

Referenced by BZ2_decompress().

#define SET_LL4 ( i,
 ) 

Value:

{ if (((i) & 0x1) == 0)                                    \
        s->ll4[(i) >> 1] = (s->ll4[(i) >> 1] & 0xf0) | (n); else    \
        s->ll4[(i) >> 1] = (s->ll4[(i) >> 1] & 0x0f) | ((n) << 4);  \
   }

Definition at line 488 of file bzlib_private.h.

#define True   ((Bool)1)

Definition at line 89 of file bzlib_private.h.

Referenced by add_pair_to_block(), BZ2_bzDecompress(), BZ2_bzRead(), BZ2_bzReadOpen(), BZ2_bzWrite(), BZ2_bzWriteClose64(), BZ2_bzWriteOpen(), BZ2_decompress(), BZ2_hbMakeCodeLengths(), copy_input_until_stop(), copy_output_until_stop(), EmitPreheaderBranchOnCondition(), NullPointerRules::EqualTo(), EmptyRules::EqualTo(), evaluateRelation(), generateMTFValues(), llvm::SelectionDAG::getSelectCC(), getSetCCValue(), handle_compress(), isempty_RL(), IsTrivialUnswitchCondition(), mainQSort3(), mainSimpleSort(), mainSort(), myfeof(), Next(), OptimizeGlobalAddressOfMalloc(), SCCPSolver::ResolveBranchesIn(), unRLE_obuf_to_output_FAST(), unRLE_obuf_to_output_SMALL(), llvm::SelectionDAGLowering::visitBr(), llvm::SelectionDAGLowering::visitSwitchCase(), and WriteConstantInt().

#define VPrintf0 ( zf   )     fprintf(stderr,zf)

Definition at line 110 of file bzlib_private.h.

Referenced by BZ2_blockSort(), BZ2_bzDecompress(), BZ2_decompress(), fallbackSort(), and mainSort().

#define VPrintf1 ( zf,
za1   )     fprintf(stderr,zf,za1)

Definition at line 112 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), BZ2_decompress(), and fallbackSort().

#define VPrintf2 ( zf,
za1,
za2   )     fprintf(stderr,zf,za1,za2)

Definition at line 114 of file bzlib_private.h.

Referenced by BZ2_bzDecompress().

#define VPrintf3 ( zf,
za1,
za2,
za3   )     fprintf(stderr,zf,za1,za2,za3)

Definition at line 116 of file bzlib_private.h.

Referenced by BZ2_blockSort(), mainSort(), and sendMTFValues().

#define VPrintf4 ( zf,
za1,
za2,
za3,
za4   )     fprintf(stderr,zf,za1,za2,za3,za4)

Definition at line 118 of file bzlib_private.h.

Referenced by BZ2_compressBlock(), and mainSort().

#define VPrintf5 ( zf,
za1,
za2,
za3,
za4,
za5   )     fprintf(stderr,zf,za1,za2,za3,za4,za5)

Definition at line 120 of file bzlib_private.h.

Referenced by sendMTFValues().


Typedef Documentation

typedef unsigned char Bool

Definition at line 82 of file bzlib_private.h.

typedef char Char

Definition at line 81 of file bzlib_private.h.

typedef short Int16

Definition at line 86 of file bzlib_private.h.

typedef int Int32

Definition at line 84 of file bzlib_private.h.

typedef unsigned char UChar

Definition at line 83 of file bzlib_private.h.

typedef unsigned short UInt16

Definition at line 87 of file bzlib_private.h.

typedef unsigned int UInt32

Definition at line 85 of file bzlib_private.h.


Function Documentation

void BZ2_blockSort ( EState  ) 

Definition at line 1078 of file blocksort.c.

References EState::arr1, EState::arr2, AssertH, EState::block, BZ_N_OVERSHOOT, fallbackSort(), EState::ftab, mainSort(), EState::nblock, EState::origPtr, EState::ptr, EState::verbosity, VPrintf0, VPrintf3, and EState::workFactor.

Referenced by BZ2_compressBlock().

void BZ2_bsInitWrite ( EState  ) 

Definition at line 81 of file compress.c.

References EState::bsBuff, and EState::bsLive.

Referenced by BZ2_compressBlock().

void BZ2_bz__AssertH__fail ( int  errcode  ) 

Definition at line 86 of file bzlib.c.

References BZ2_bzlibVersion().

void BZ2_compressBlock ( EState ,
Bool   
)

Definition at line 644 of file compress.c.

References EState::arr2, EState::blockCRC, EState::blockNo, EState::blockSize100k, bsFinishWrite(), bsPutUChar(), bsPutUInt32(), bsW(), BZ2_blockSort(), BZ2_bsInitWrite(), BZ_FINALISE_CRC, BZ_HDR_0, BZ_HDR_B, BZ_HDR_h, BZ_HDR_Z, EState::combinedCRC, generateMTFValues(), EState::nblock, EState::numZ, EState::origPtr, sendMTFValues(), EState::verbosity, VPrintf1, VPrintf4, and EState::zbits.

Referenced by handle_compress().

Int32 BZ2_decompress ( DState  ) 

Definition at line 146 of file decompress.c.

References DState::blockRandomised, DState::blockSize100k, BZ2_hbCreateDecodeTables(), BZ_DATA_ERROR, BZ_DATA_ERROR_MAGIC, BZ_GET_SMALL, BZ_HDR_0, BZ_HDR_B, BZ_HDR_h, BZ_HDR_Z, BZ_INITIALISE_CRC, BZ_MEM_ERROR, BZ_N_GROUPS, BZ_OK, BZ_RAND_INIT_MASK, BZ_RAND_MASK, BZ_RAND_UPD_MASK, BZ_RUNA, BZ_RUNB, BZ_X_BCRC_1, BZ_X_BCRC_2, BZ_X_BCRC_3, BZ_X_BCRC_4, BZ_X_BLKHDR_1, BZ_X_BLKHDR_2, BZ_X_BLKHDR_3, BZ_X_BLKHDR_4, BZ_X_BLKHDR_5, BZ_X_BLKHDR_6, BZ_X_CODING_1, BZ_X_CODING_2, BZ_X_CODING_3, BZ_X_MAGIC_1, BZ_X_MAGIC_2, BZ_X_MAGIC_3, BZ_X_MAGIC_4, BZ_X_MAPPING_1, BZ_X_MAPPING_2, BZ_X_MTF_1, BZ_X_MTF_2, BZ_X_MTF_3, BZ_X_MTF_4, BZ_X_MTF_5, BZ_X_MTF_6, BZ_X_ORIGPTR_1, BZ_X_ORIGPTR_2, BZ_X_ORIGPTR_3, BZ_X_OUTPUT, BZ_X_RANDBIT, BZ_X_SELECTOR_1, BZ_X_SELECTOR_2, BZ_X_SELECTOR_3, BZALLOC, DState::calculatedBlockCRC, DState::cftab, DState::cftabCopy, DState::currBlockNo, False, GET_BIT, GET_BITS, GET_LL, GET_MTF_VAL, GET_UCHAR, DState::inUse, DState::inUse16, DState::k0, DState::ll16, DState::ll4, makeMaps_d(), DState::mtfa, MTFA_SIZE, DState::mtfbase, MTFL_SIZE, DState::nblock_used, DState::origPtr, RETURN, DState::save_alphaSize, DState::save_curr, DState::save_EOB, DState::save_es, DState::save_gBase, DState::save_gLimit, DState::save_gMinlen, DState::save_gPerm, DState::save_groupNo, DState::save_groupPos, DState::save_gSel, DState::save_i, DState::save_j, DState::save_N, DState::save_nblock, DState::save_nblockMAX, DState::save_nextSym, DState::save_nGroups, DState::save_nSelectors, DState::save_t, DState::save_zj, DState::save_zn, DState::save_zt, DState::save_zvec, DState::seqToUnseq, SET_LL, DState::smallDecompress, DState::state, DState::state_out_ch, DState::state_out_len, DState::storedBlockCRC, DState::strm, DState::tPos, True, DState::tt, DState::unzftab, DState::verbosity, VPrintf0, and VPrintf1.

Referenced by BZ2_bzDecompress().

void BZ2_hbAssignCodes ( Int32 ,
UChar ,
Int32  ,
Int32  ,
Int32   
)

Definition at line 175 of file huffman.c.

void BZ2_hbCreateDecodeTables ( Int32 ,
Int32 ,
Int32 ,
UChar ,
Int32  ,
Int32  ,
Int32   
)

Definition at line 193 of file huffman.c.

References BZ_MAX_CODE_LEN.

Referenced by BZ2_decompress().

void BZ2_hbMakeCodeLengths ( UChar ,
Int32 ,
Int32  ,
Int32   
)

Definition at line 103 of file huffman.c.

References ADDWEIGHTS, AssertH, BZ_MAX_ALPHA_SIZE, DOWNHEAP, False, True, and UPHEAP.

Int32 BZ2_indexIntoF ( Int32  ,
Int32  
)

Definition at line 720 of file bzlib.c.


Variable Documentation

UInt32 BZ2_crc32Table[256]

Definition at line 71 of file crctable.c.

Int32 BZ2_rNums[512]

Definition at line 66 of file randtable.c.