LLVM API Documentation
#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] |
|
Definition at line 93 of file bzlib_private.h. |
|
Definition at line 108 of file bzlib_private.h. Referenced by fallbackQSort3(), generateMTFValues(), mainGtU(), and mainQSort3(). |
|
Definition at line 98 of file bzlib_private.h. Referenced by BZ2_blockSort(), BZ2_hbMakeCodeLengths(), fallbackQSort3(), fallbackSort(), mainQSort3(), mainSort(), and sendMTFValues(). |
|
Value: { \ crcVar = ~(crcVar); \ } Definition at line 196 of file bzlib_private.h. Referenced by BZ2_compressBlock(). |
|
Definition at line 156 of file bzlib_private.h. Referenced by sendMTFValues(). |
|
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(). |
|
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(). |
|
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 unRLE_obuf_to_output_SMALL(). |
|
Definition at line 145 of file bzlib_private.h. Referenced by BZ2_compressBlock(), BZ2_decompress(), and bzopen_or_bzdopen(). |
|
Definition at line 142 of file bzlib_private.h. Referenced by BZ2_compressBlock(), and BZ2_decompress(). |
|
Definition at line 144 of file bzlib_private.h. Referenced by BZ2_compressBlock(), and BZ2_decompress(). |
|
Definition at line 143 of file bzlib_private.h. Referenced by BZ2_compressBlock(), and BZ2_decompress(). |
|
Value: { \ crcVar = 0xffffffffL; \ } Definition at line 191 of file bzlib_private.h. Referenced by prepare_new_block(). |
|
Definition at line 215 of file bzlib_private.h. Referenced by handle_compress(). |
|
Definition at line 214 of file bzlib_private.h. Referenced by handle_compress(). |
|
Definition at line 212 of file bzlib_private.h. |
|
Definition at line 213 of file bzlib_private.h. Referenced by copy_input_until_stop(), and handle_compress(). |
|
Definition at line 149 of file bzlib_private.h. Referenced by BZ2_hbMakeCodeLengths(). |
|
Definition at line 150 of file bzlib_private.h. Referenced by BZ2_hbCreateDecodeTables(). |
|
Definition at line 159 of file bzlib_private.h. |
|
Definition at line 155 of file bzlib_private.h. Referenced by BZ2_decompress(), and sendMTFValues(). |
|
Definition at line 157 of file bzlib_private.h. Referenced by sendMTFValues(). |
|
Definition at line 223 of file bzlib_private.h. Referenced by BZ2_blockSort(), and mainSort(). |
|
Definition at line 221 of file bzlib_private.h. |
|
Definition at line 220 of file bzlib_private.h. Referenced by mainSort(). |
|
Definition at line 222 of file bzlib_private.h. |
|
Value: Definition at line 167 of file bzlib_private.h. |
|
Value: s->rNToGo = 0; \ s->rTPos = 0 \ Definition at line 171 of file bzlib_private.h. |
|
Definition at line 175 of file bzlib_private.h. Referenced by unRLE_obuf_to_output_FAST(), and unRLE_obuf_to_output_SMALL(). |
|
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 unRLE_obuf_to_output_FAST(), and unRLE_obuf_to_output_SMALL(). |
|
Definition at line 152 of file bzlib_private.h. |
|
Definition at line 153 of file bzlib_private.h. Referenced by generateMTFValues(). |
|
Definition at line 218 of file bzlib_private.h. Referenced by handle_compress(). |
|
Definition at line 217 of file bzlib_private.h. Referenced by handle_compress(). |
|
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(). |
|
Definition at line 79 of file bzlib_private.h. |
|
Definition at line 338 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 339 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 340 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 341 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 332 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 333 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 334 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 335 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 336 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 337 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 365 of file bzlib_private.h. |
|
Definition at line 366 of file bzlib_private.h. |
|
Definition at line 367 of file bzlib_private.h. |
|
Definition at line 368 of file bzlib_private.h. |
|
Definition at line 351 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 352 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 353 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 360 of file bzlib_private.h. |
|
Definition at line 361 of file bzlib_private.h. |
|
Definition at line 362 of file bzlib_private.h. |
|
Definition at line 363 of file bzlib_private.h. |
|
Definition at line 364 of file bzlib_private.h. |
|
Definition at line 325 of file bzlib_private.h. |
|
Definition at line 328 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 329 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 330 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 331 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 346 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 347 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 354 of file bzlib_private.h. |
|
Definition at line 355 of file bzlib_private.h. |
|
Definition at line 356 of file bzlib_private.h. |
|
Definition at line 357 of file bzlib_private.h. |
|
Definition at line 358 of file bzlib_private.h. |
|
Definition at line 359 of file bzlib_private.h. |
|
Definition at line 343 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 344 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 345 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 326 of file bzlib_private.h. |
|
Definition at line 342 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 348 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 349 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 350 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 136 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 137 of file bzlib_private.h. |
|
Definition at line 90 of file bzlib_private.h. Referenced by BZ2_decompress(), BZ2_hbMakeCodeLengths(), NullPointerRules::CastToBool(), copy_input_until_stop(), copy_output_until_stop(), getSetCCValue(), handle_compress(), isempty_RL(), mainGtU(), mainSort(), myfeof(), Next(), OptimizeGlobalAddressOfMalloc(), prepare_new_block(), and sendMTFValues(). |
|
Definition at line 502 of file bzlib_private.h. |
|
Definition at line 494 of file bzlib_private.h. |
|
Definition at line 374 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Definition at line 375 of file bzlib_private.h. Referenced by BZ2_decompress(). |
|
Value: Definition at line 497 of file bzlib_private.h. |
|
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. |
|
|
Definition at line 110 of file bzlib_private.h. Referenced by BZ2_blockSort(), fallbackSort(), mainSort(), and sendMTFValues(). |
|
Definition at line 112 of file bzlib_private.h. Referenced by BZ2_compressBlock(), BZ2_decompress(), fallbackSort(), and sendMTFValues(). |
|
Definition at line 114 of file bzlib_private.h. Referenced by sendMTFValues(). |
|
Definition at line 116 of file bzlib_private.h. Referenced by BZ2_blockSort(), mainSort(), and sendMTFValues(). |
|
Definition at line 118 of file bzlib_private.h. Referenced by BZ2_compressBlock(), and mainSort(). |
|
Definition at line 120 of file bzlib_private.h. Referenced by sendMTFValues(). |
|
Definition at line 82 of file bzlib_private.h. |
|
Definition at line 81 of file bzlib_private.h. |
|
Definition at line 86 of file bzlib_private.h. |
|
Definition at line 84 of file bzlib_private.h. |
|
Definition at line 83 of file bzlib_private.h. |
|
Definition at line 87 of file bzlib_private.h. |
|
Definition at line 85 of file bzlib_private.h. |
|
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(). |
|
Definition at line 81 of file compress.c. References EState::bsBuff, and EState::bsLive. Referenced by BZ2_compressBlock(). |
|
Definition at line 86 of file bzlib.c. References BZ2_bzlibVersion. |
|
Referenced by handle_compress(). |
|
|
Referenced by sendMTFValues(). |
|
Referenced by BZ2_decompress(). |
|
Referenced by sendMTFValues(). |
|
|
|
Definition at line 71 of file crctable.c. |
|
Definition at line 66 of file randtable.c. |