input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void __cdecl sncpyc(char *dst, size_t len, char src) {
char srca[4];
size_t lena;
char *dsta;
dsta = dst;
lena = len;
srca[0] = src;
sncpyn(dst, len, srca, 1u);
} | void sncpyc(char *dst, size_t len, char src) { sncpyn(dst, len, &src, 1); } | sncpyc | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sncpyn(char *dst, size_t len, const char *src, size_t src_len) {
if (len >= src_len + 1)
sncpy(dst, src_len + 1, src);
else
sncpy(dst, len, src);
} | void sncpyn(char *dst, size_t len, const char *src, size_t src_len) {
if (len < src_len + 1)
sncpy(dst, len, src);
else
sncpy(dst, src_len + 1, src);
} | sncpyn | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
unsigned int __cdecl sort_symbols(unsigned int num_syms, const u32 *freqs,
u8 *lens, u32 *symout) {
u32 v4;
u32 v5;
u32 v6;
unsigned int v7;
unsigned int sym;
unsigned int syma;
unsigned int i;
unsigned int num_used_syms;
unsigned int num_counters;... | static unsigned sort_symbols(unsigned num_syms, const u32 freqs[restrict],
u8 lens[restrict], u32 symout[restrict]) {
unsigned sym;
unsigned i;
unsigned num_used_syms;
unsigned num_counters;
unsigned counters[GET_NUM_COUNTERS(DEFLATE_MAX_NUM_SYMS)];
num_counters = GET_NUM_COUNT... | sort_symbols | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sskip(int *p, const char *s, const char *sep) {
while (s[*p] && strchr(sep, s[*p]))
++*p;
} | void sskip(int *p, const char *s, const char *sep) {
while (s[*p] && strchr(sep, s[*p]) != 0)
++*p;
} | sskip | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
const char *__cdecl stoken(char *c, int *p, char *s, const char *sep,
const char *ignore) {
unsigned int begin;
unsigned int end;
begin = *p;
while (s[*p] && !strchr(sep, s[*p]))
++*p;
end = *p;
*c = s[*p];
if (s[*p])
s[(*p)++] = 0;
while (begin ... | const char *stoken(char *c, int *p, char *s, const char *sep,
const char *ignore) {
unsigned begin;
unsigned end;
begin = *p;
while (s[*p] && strchr(sep, s[*p]) == 0)
++*p;
end = *p;
*c = s[*p];
if (s[*p]) {
s[*p] = 0;
++*p;
}
while (begin < end && strchr(ignore, s[... | stoken | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void usage() {
long v0;
long v1;
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
long v20;
long v21;
lon... | void usage() {
version();
cout << "Usage: advmng [options] [FILES...]" << endl;
cout << endl;
cout << "Modes:" << endl;
cout << " " SWITCH_GETOPT_LONG("-l, --list ",
"-l ") " List the content of the files"
<< endl;
cout << " " SWITCH_GETOPT_LONG("-z... | usage | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
size_t __cdecl zopfli_min(size_t a, size_t b) {
size_t result;
result = a;
if (b <= a)
return b;
return result;
} | static size_t zopfli_min(size_t a, size_t b) { return a < b ? a : b; } | zopfli_min | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v5;
const char *v6;
int v7;
int v8;
int v9;
const char *v10;
int v11;
int v12;
int v13;
int v14;
size_t v15;
long v16;
int v17;
int v18;
long v19;
int v20;
long i;
FILE *v23;
int *v24;
char *v25;
... | int main(int argc, char *argv[]) {
int rc;
int i;
int len;
int prevlen;
char *infilename;
char *outfilename;
int infd = -1;
int outfd = -1;
int fileno;
int blkcount;
int curblkl;
int minblksz;
int maxblksz;
int outfilenum;
int outfilecount;
int files2copy;
BYTE labelrec[81];
AWSTAPE_... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/tapesplt | ida | O0 |
CLzRef *AllocRefs(UInt32 num, ISzAlloc *alloc) {
if ((4 * (unsigned long)num) >> 2 == num)
return alloc->Alloc(alloc, 4LL * num);
else
return 0;
} | static CLzRef *AllocRefs(UInt32 num, ISzAlloc *alloc) {
size_t sizeInBytes = (size_t)num * sizeof(CLzRef);
if (sizeInBytes / sizeof(CLzRef) != num)
return 0;
return (CLzRef *)alloc->Alloc(alloc, sizeInBytes);
} | AllocRefs | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
WRes AutoResetEvent_Create(CAutoResetEvent *p, int initialSignaled) {
return Event_Create(p, 0, initialSignaled);
} | WRes AutoResetEvent_Create(CAutoResetEvent *p, int initialSignaled) {
return Event_Create(p, FALSE, initialSignaled);
} | AutoResetEvent_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
WRes AutoResetEvent_CreateNotSignaled(CAutoResetEvent *p) {
return AutoResetEvent_Create(p, 0);
} | WRes AutoResetEvent_CreateNotSignaled(CAutoResetEvent *p) {
return AutoResetEvent_Create(p, 0);
} | AutoResetEvent_CreateNotSignaled | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Backward(CLzmaEnc *p, UInt32 *backRes, UInt32 cur) {
UInt32 cura;
UInt32 posMem;
UInt32 backMem;
UInt32 posPrev;
UInt32 backCur;
cura = cur;
posMem = p->opt[cur].posPrev;
backMem = p->opt[cur].backPrev;
p->optimumEndIndex = cur;
do {
if (p->opt[cura].prev1IsChar) {
p->opt[posMem].b... | static UInt32 Backward(CLzmaEnc *p, UInt32 *backRes, UInt32 cur) {
UInt32 posMem = p->opt[cur].posPrev;
UInt32 backMem = p->opt[cur].backPrev;
p->optimumEndIndex = cur;
do {
if (p->opt[cur].prev1IsChar) {
MakeAsChar(&p->opt[posMem]) p->opt[posMem].posPrev = posMem - 1;
if (p->opt[cur].prev2) {
... | Backward | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Bt2_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 lenLimit;
CLzRef curMatch;
UInt32 offset;
lenLimit = p->lenLimit;
if (lenLimit > 1) {
curMatch = p->hash[*(unsigned short *)p->buffer];
p->hash[*(unsigned short *)p->buffer] = p->pos;
offset = GetMatchesSpec1(lenLimit,... | static UInt32 Bt2_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 offset;
GET_MATCHES_HEADER(2)
HASH2_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
offset = 0;
GET_MATCHES_FOOTER(offset, 1)
} | Bt2_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Bt2_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
UInt32 lenLimit;
CLzRef curMatch;
do {
lenLimit = p->lenLimit;
if (lenLimit > 1) {
curMatch = p->hash[*(unsigned short *)p->buffer];
p->hash[*(unsigned short *)p->buffer] = p->pos;
SkipMatchesSpec(lenLimit, curMatch, p->pos, p->bu... | static void Bt2_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
SKIP_HEADER(2)
HASH2_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
SKIP_FOOTER
} while (--num != 0);
} | Bt2_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 lenLimit;
CLzRef curMatch;
UInt32 offset;
Byte *cur;
lenLimit = p->lenLimit;
if (lenLimit > 2) {
cur = p->buffer;
curMatch =
p->hash[(unsigned short)(((*cur << 8) | cur[2]) ^ p->crc[cur[1]])];
p->hash[(uns... | UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 offset;
GET_MATCHES_HEADER(3)
HASH_ZIP_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
offset = 0;
GET_MATCHES_FOOTER(offset, 2)
} | Bt3Zip_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
UInt32 lenLimit;
CLzRef curMatch;
Byte *cur;
do {
lenLimit = p->lenLimit;
if (lenLimit > 2) {
cur = p->buffer;
curMatch =
p->hash[(unsigned short)(((*cur << 8) | cur[2]) ^ p->crc[cur[1]])];
p->hash[(unsigned short)(... | void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
SKIP_HEADER(3)
HASH_ZIP_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
SKIP_FOOTER
} while (--num != 0);
} | Bt3Zip_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Bt3_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
CLzRef *v3;
UInt32 maxLen;
UInt32 offset;
UInt32 offseta;
UInt32 lenLimit;
UInt32 temp;
UInt32 hashValue;
UInt32 delta2;
CLzRef curMatch;
Byte *cur;
lenLimit = p->lenLimit;
if (lenLimit > 2) {
cur = p->buffer;
temp ... | static UInt32 Bt3_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 hash2Value, delta2, maxLen, offset;
GET_MATCHES_HEADER(3)
HASH3_CALC;
delta2 = p->pos - p->hash[hash2Value];
curMatch = p->hash[kFix3HashSize + hashValue];
p->hash[hash2Value] = p->hash[kFix3HashSize + hashValue] = p->p... | Bt3_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Bt3_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
CLzRef *v2;
UInt32 lenLimit;
UInt32 temp;
UInt32 hashValue;
CLzRef curMatch;
do {
lenLimit = p->lenLimit;
if (lenLimit > 2) {
temp = p->crc[*p->buffer] ^ p->buffer[1];
hashValue = (temp ^ (p->buffer[2] << 8)) & p->hashMask;
... | static void Bt3_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
UInt32 hash2Value;
SKIP_HEADER(3)
HASH3_CALC;
curMatch = p->hash[kFix3HashSize + hashValue];
p->hash[hash2Value] = p->hash[kFix3HashSize + hashValue] = p->pos;
SKIP_FOOTER
} while (--num != 0);
} | Bt3_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Bt4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
CLzRef *v3;
CLzRef *v4;
UInt32 delta2;
UInt32 maxLen;
UInt32 offset;
UInt32 offseta;
UInt32 lenLimit;
UInt32 temp;
UInt32 hash3Value;
UInt32 hashValue;
UInt32 delta3;
CLzRef curMatch;
Byte *cur;
lenLimit = p->lenLimit;
... | static UInt32 Bt4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 hash2Value, hash3Value, delta2, delta3, maxLen, offset;
GET_MATCHES_HEADER(4)
HASH4_CALC;
delta2 = p->pos - p->hash[hash2Value];
delta3 = p->pos - p->hash[kFix3HashSize + hash3Value];
curMatch = p->hash[kFix4HashSize + h... | Bt4_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Bt4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
CLzRef *v2;
UInt32 lenLimit;
UInt32 temp;
UInt32 hashValue;
CLzRef curMatch;
Byte *cur;
do {
lenLimit = p->lenLimit;
if (lenLimit > 3) {
cur = p->buffer;
temp = p->crc[*cur] ^ cur[1];
hashValue = ((32 * p->crc[cur[3]]) ^ t... | static void Bt4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
UInt32 hash2Value, hash3Value;
SKIP_HEADER(4)
HASH4_CALC;
curMatch = p->hash[kFix4HashSize + hashValue];
p->hash[hash2Value] = p->hash[kFix3HashSize + hash3Value] = p->pos;
p->hash[kFix4HashSize + hashValue] = p->pos;
SKI... | Bt4_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void BtFillBlock(CMatchFinderMt *p, UInt32 globalBlockIndex) {
UInt32 subValue;
if (!p->hashSync.needStart) {
pthread_mutex_lock(&p->hashSync.cs._mutex);
p->hashSync.csWasEntered = 1;
}
BtGetMatches(p, &p->btBuf[0x4000 * (globalBlockIndex & 0x3F)]);
if (p->pos > 0xFFFFBFFF) {
subValue = p->pos - ... | void BtFillBlock(CMatchFinderMt *p, UInt32 globalBlockIndex) {
CMtSync *sync = &p->hashSync;
if (!sync->needStart) {
CriticalSection_Enter(&sync->cs);
sync->csWasEntered = True;
}
BtGetMatches(p, p->btBuf +
(globalBlockIndex & kMtBtNumBlocksMask) * kMtBtBlockSize);
if (p->pos >... | BtFillBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void BtGetMatches(CMatchFinderMt *p, UInt32 *distances) {
UInt32 v2;
UInt32 v3;
UInt32 cutValue;
UInt32 cyclicBufferSize;
CLzRef *son;
Byte *buffer;
UInt32 *hashBuf;
UInt32 hashBufPos;
UInt32 *MatchesSpec1;
UInt32 numProcessed;
UInt32 curPos;
UInt32 size;
UInt32 lenLimit;
UInt32 pos;
UInt3... | void BtGetMatches(CMatchFinderMt *p, UInt32 *distances) {
UInt32 numProcessed = 0;
UInt32 curPos = 2;
UInt32 limit = kMtBtBlockSize - (p->matchMaxLen * 2);
distances[1] = p->hashNumAvail;
while (curPos < limit) {
if (p->hashBufPos == p->hashBufPosLimit) {
MatchFinderMt_GetNextBlock_Hash(p);
di... | BtGetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void BtThreadFunc(CMatchFinderMt *mt) {
UInt32 v1;
UInt32 blockIndex;
LABEL_1:
blockIndex = 0;
Event_Wait(&mt->btSync.canStart);
Event_Set(&mt->btSync.wasStarted);
while (!mt->btSync.exit) {
if (mt->btSync.stopWriting) {
mt->btSync.numProcessedBlocks = blockIndex;
MtSync_StopWriting(&mt->ha... | void BtThreadFunc(CMatchFinderMt *mt) {
CMtSync *p = &mt->btSync;
for (;;) {
UInt32 blockIndex = 0;
Event_Wait(&p->canStart);
Event_Set(&p->wasStarted);
for (;;) {
if (p->exit)
return;
if (p->stopWriting) {
p->numProcessedBlocks = blockIndex;
MtSync_StopWriting(&m... | BtThreadFunc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
unsigned int BtThreadFunc2(void *p) {
int i;
Byte allocaDummy[392];
unsigned long v4;
v4 = __readfsqword(0x28u);
for (i = 0; i <= 15; ++i)
allocaDummy[i] = i;
BtThreadFunc((CMatchFinderMt *)p);
return 0;
} | static unsigned MY_STD_CALL BtThreadFunc2(void *p) {
__maybe_unused Byte allocaDummy[0x180];
int i = 0;
for (i = 0; i < 16; i++)
allocaDummy[i] = (Byte)i;
BtThreadFunc((CMatchFinderMt *)p);
return 0;
} | BtThreadFunc2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes CheckErrors(CLzmaEnc *p) {
if (p->result)
return p->result;
if (p->rc.res)
p->result = 9;
if (p->matchFinderBase.result)
p->result = 8;
if (p->result)
p->finished = 1;
return p->result;
} | static SRes CheckErrors(CLzmaEnc *p) {
if (p->result != SZ_OK)
return p->result;
if (p->rc.res != SZ_OK)
p->result = SZ_ERROR_WRITE;
if (p->matchFinderBase.result != SZ_OK)
p->result = SZ_ERROR_READ;
if (p->result != SZ_OK)
p->finished = True;
return p->result;
} | CheckErrors | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 CrcCalc(const void *data, size_t size) {
int v2;
__180272_1_();
return ~v2;
} | UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size) {
return CrcUpdateT8(CRC_INIT_VAL, data, size, g_CrcTable) ^ 0xFFFFFFFF;
} | CrcCalc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void CrcGenerateTable() {
UInt32 i;
UInt32 r;
int j;
UInt32 r_0;
for (i = 0; i <= 0xFF; ++i) {
r = i;
for (j = 0; j <= 7; ++j)
r = (r >> 1) ^ -(r & 1) & 0xEDB88320;
g_CrcTable[i] = r;
}
while (i <= 0x7FF) {
r_0 = g_CrcTable[i - 256];
g_CrcTable[i++] = (r_0 >> 8) ^ g_CrcTable[(un... | void MY_FAST_CALL CrcGenerateTable() {
UInt32 i;
for (i = 0; i < 256; i++) {
UInt32 r = i;
int j;
for (j = 0; j < 8; j++)
r = (r >> 1) ^ (kCrcPoly & ~((r & 1) - 1));
g_CrcTable[i] = r;
}
#if CRC_NUM_TABLES > 1
for (; i < 256 * CRC_NUM_TABLES; i++) {
UInt32 r = g_CrcTable[i - 256];
... | CrcGenerateTable | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 CrcUpdate(UInt32 v, const void *data, size_t size) {
UInt32 result;
__180272_1_();
return result;
} | UInt32 MY_FAST_CALL CrcUpdate(UInt32 v, const void *data, size_t size) {
return CrcUpdateT8(v, data, size, g_CrcTable);
} | CrcUpdate | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void FillAlignPrices(CLzmaEnc *p) {
UInt32 i;
for (i = 0; i <= 0xF; ++i)
p->alignPrices[i] =
RcTree_ReverseGetPrice(p->posAlignEncoder, 4, i, p->ProbPrices);
p->alignPriceCount = 0;
} | static void FillAlignPrices(CLzmaEnc *p) {
UInt32 i;
for (i = 0; i < kAlignTableSize; i++)
p->alignPrices[i] = RcTree_ReverseGetPrice(p->posAlignEncoder,
kNumAlignBits, i, p->ProbPrices);
p->alignPriceCount = 0;
} | FillAlignPrices | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void FillDistancesPrices(CLzmaEnc *p) {
UInt32 i;
UInt32 lenToPosState;
UInt32 posSlot_0;
UInt32 posSlot_0a;
UInt32 i_0;
UInt32 posSlot;
UInt32 *posSlotPrices;
UInt32 *distancesPrices;
UInt32 tempPrices[130];
unsigned long v10;
v10 = __readfsqword(0x28u);
for (i = 4; i <= 0x7F; ++i) {
posSl... | static void FillDistancesPrices(CLzmaEnc *p) {
UInt32 tempPrices[kNumFullDistances];
UInt32 i, lenToPosState;
for (i = kStartPosModelIndex; i < kNumFullDistances; i++) {
UInt32 posSlot = GetPosSlot1(i);
UInt32 footerBits = ((posSlot >> 1) - 1);
UInt32 base = ((2 | (posSlot & 1)) << footerBits);
te... | FillDistancesPrices | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes Flush(CLzmaEnc *p, UInt32 nowPos) {
p->finished = 1;
if (p->writeEndMark)
WriteEndMarker(p, nowPos & p->pbMask);
RangeEnc_FlushData(&p->rc);
RangeEnc_FlushStream(&p->rc);
return CheckErrors(p);
} | static SRes Flush(CLzmaEnc *p, UInt32 nowPos) {
p->finished = True;
if (p->writeEndMark)
WriteEndMarker(p, nowPos & p->pbMask);
RangeEnc_FlushData(&p->rc);
RangeEnc_FlushStream(&p->rc);
return CheckErrors(p);
} | Flush | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 *GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son, UInt32 _cyclicBufferPos,
UInt32 _cyclicBufferSize, UInt32 cutValue,
UInt32 *distances, UInt32 maxLen) {
UInt32 v10;
UInt32 v12;
UInt32 v13;
... | UInt32 *GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son, UInt32 _cyclicBufferPos,
UInt32 _cyclicBufferSize, UInt32 cutValue,
UInt32 *distances, UInt32 maxLen) {
CLzRef *ptr0 = son + (_cyclicBufferPos << ... | GetMatchesSpec1 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 GetOptimum(CLzmaEnc *p, UInt32 position, UInt32 *backRes) {
UInt32 v4;
UInt32 PriceMatched;
UInt32 RepLen1Price;
UInt32 v7;
UInt32 v8;
UInt32 PureRepPrice;
bool v10;
UInt32 v11;
UInt32 v12;
UInt32 v13;
long v14;
const Byte *v15;
UInt32 v16;
UInt32 v17;
UInt32 v18;
UInt32 RepPrice;... | static UInt32 GetOptimum(CLzmaEnc *p, UInt32 position, UInt32 *backRes) {
UInt32 numAvail, mainLen, numPairs, repMaxIndex, i, posState, lenEnd, len,
cur;
UInt32 matchPrice, repMatchPrice, normalMatchPrice;
UInt32 reps[LZMA_NUM_REPS], repLens[LZMA_NUM_REPS];
UInt32 *matches;
const Byte *data;
Byte curB... | GetOptimum | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 GetOptimumFast(CLzmaEnc *p, UInt32 *backRes) {
UInt32 numPairs;
UInt32 numAvail;
UInt32 mainLen;
UInt32 mainDist;
UInt32 repIndex;
UInt32 repLen;
UInt32 i;
UInt32 len;
UInt32 len_0;
UInt32 newDistance;
UInt32 limit;
const Byte *data;
const UInt32 *matches;
const Byte *data2_0;
const... | static UInt32 GetOptimumFast(CLzmaEnc *p, UInt32 *backRes) {
UInt32 numAvail, mainLen, mainDist, numPairs, repIndex, repLen, i;
const Byte *data;
const UInt32 *matches;
if (p->additionalOffset == 0)
mainLen = ReadMatchDistances(p, &numPairs);
else {
mainLen = p->longestMatchLength;
numPairs = p->... | GetOptimumFast | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state,
UInt32 posState) {
long v4;
UInt32 pricea;
if (!repIndex)
return p->ProbPrices[(p->isRep0Long[state][posState] >> 4) ^ 0x7F] +
p->ProbPrices[p->isRepG0[state] >> 4];
pricea = p->ProbPrices[(p->isRepG0[state... | static UInt32 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state,
UInt32 posState) {
UInt32 price;
if (repIndex == 0) {
price = GET_PRICE_0(p->isRepG0[state]);
price += GET_PRICE_1(p->isRep0Long[state][posState]);
} else {
price = GET_PRICE_1(p->isRepG0[state]);
... | GetPureRepPrice | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 GetRepLen1Price(CLzmaEnc *p, UInt32 state, UInt32 posState) {
return p->ProbPrices[p->isRepG0[state] >> 4] +
p->ProbPrices[p->isRep0Long[state][posState] >> 4];
} | static UInt32 GetRepLen1Price(CLzmaEnc *p, UInt32 state, UInt32 posState) {
return GET_PRICE_0(p->isRepG0[state]) +
GET_PRICE_0(p->isRep0Long[state][posState]);
} | GetRepLen1Price | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len, UInt32 state,
UInt32 posState) {
int v5;
v5 = *(_DWORD *)&p->repLenEnc.p.high[544 * posState + 252 + 2 * len];
return v5 + GetPureRepPrice(p, repIndex, state, posState);
} | static UInt32 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len,
UInt32 state, UInt32 posState) {
return p->repLenEnc.prices[posState][len - LZMA_MATCH_LEN_MIN] +
GetPureRepPrice(p, repIndex, state, posState);
} | GetRepPrice | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void HashThreadFunc(CMatchFinderMt *mt) {
char v1;
UInt32 numProcessedBlocks;
unsigned int num;
int subValue;
CMatchFinder *mf;
UInt32 *heads;
Byte *beforePtr;
Byte *afterPtr;
LABEL_1:
numProcessedBlocks = 0;
Event_Wait(&mt->hashSync.canStart);
Event_Set(&mt->hashSync.wasStarted);
while (!mt->h... | )
DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask)
DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask)
DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask)
void HashThreadFunc(CMatchFinderMt *mt)
{
CMtSync *p = &mt->ha... | HashThreadFunc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
unsigned int HashThreadFunc2(void *p) {
HashThreadFunc((CMatchFinderMt *)p);
return 0;
} | static unsigned MY_STD_CALL HashThreadFunc2(void *p) {
HashThreadFunc((CMatchFinderMt *)p);
return 0;
} | HashThreadFunc2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 lenLimit;
CLzRef curMatch;
UInt32 offset;
Byte *cur;
lenLimit = p->lenLimit;
if (lenLimit > 2) {
cur = p->buffer;
curMatch =
p->hash[(unsigned short)(((*cur << 8) | cur[2]) ^ p->crc[cur[1]])];
p->hash[(uns... | UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 offset;
GET_MATCHES_HEADER(3)
HASH_ZIP_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
offset = (UInt32)(Hc_GetMatchesSpec(lenLimit, curMatch, MF_PARAMS(p),
distances, 2)... | Hc3Zip_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
UInt32 curMatch;
Byte *cur;
do {
if (p->lenLimit > 2) {
cur = p->buffer;
curMatch =
p->hash[(unsigned short)(((*cur << 8) | cur[2]) ^ p->crc[cur[1]])];
p->hash[(unsigned short)(((*cur << 8) | cur[2]) ^ p->crc[cur[1]])] =
... | void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
SKIP_HEADER(3)
HASH_ZIP_CALC;
curMatch = p->hash[hashValue];
p->hash[hashValue] = p->pos;
p->son[p->cyclicBufferPos] = curMatch;
MOVE_POS
} while (--num != 0);
} | Hc3Zip_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 Hc4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
CLzRef *v3;
CLzRef *v4;
UInt32 delta2;
UInt32 maxLen;
UInt32 offset;
UInt32 offseta;
UInt32 lenLimit;
UInt32 temp;
UInt32 hash3Value;
UInt32 hashValue;
UInt32 delta3;
CLzRef curMatch;
Byte *cur;
lenLimit = p->lenLimit;
... | static UInt32 Hc4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) {
UInt32 hash2Value, hash3Value, delta2, delta3, maxLen, offset;
GET_MATCHES_HEADER(4)
HASH4_CALC;
delta2 = p->pos - p->hash[hash2Value];
delta3 = p->pos - p->hash[kFix3HashSize + hash3Value];
curMatch = p->hash[kFix4HashSize + h... | Hc4_MatchFinder_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void Hc4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
CLzRef *v2;
CLzRef *v3;
UInt32 temp;
UInt32 hash3Value;
UInt32 hashValue;
UInt32 curMatch;
Byte *cur;
do {
if (p->lenLimit > 3) {
cur = p->buffer;
temp = p->crc[*cur] ^ cur[1];
hash3Value = (unsigned short)(temp ^ (p->buffer... | static void Hc4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) {
do {
UInt32 hash2Value, hash3Value;
SKIP_HEADER(4)
HASH4_CALC;
curMatch = p->hash[kFix4HashSize + hashValue];
p->hash[hash2Value] = p->hash[kFix3HashSize + hash3Value] =
p->hash[kFix4HashSize + hashValue] = p->pos;
p->son[... | Hc4_MatchFinder_Skip | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 *Hc_GetMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son, UInt32 _cyclicBufferPos,
UInt32 _cyclicBufferSize, UInt32 cutValue,
UInt32 *distances, UInt32 maxLen) {
UInt32 v10;
UInt32 v12;
UInt32... | static UInt32 *Hc_GetMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son,
UInt32 _cyclicBufferPos,
UInt32 _cyclicBufferSize, UInt32 cutValue,
UInt32 *dis... | Hc_GetMatchesSpec | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, UInt32 symbol, UInt32 posState) {
if (symbol > 7) {
RangeEnc_EncodeBit(rc, &p->choice, 1u);
if (symbol > 0xF) {
RangeEnc_EncodeBit(rc, &p->choice2, 1u);
RcTree_Encode(rc, p->high, 8, symbol - 16);
} else {
RangeEnc_EncodeBit(rc, &p->choice2, ... | static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, UInt32 symbol,
UInt32 posState) {
if (symbol < kLenNumLowSymbols) {
RangeEnc_EncodeBit(rc, &p->choice, 0);
RcTree_Encode(rc, p->low + (posState << kLenNumLowBits), kLenNumLowBits,
symbol);
} else {
RangeEnc_... | LenEnc_Encode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LenEnc_Encode2(CLenPriceEnc *p, CRangeEnc *rc, UInt32 symbol,
UInt32 posState, Bool updatePrice, UInt32 *ProbPrices) {
LenEnc_Encode(&p->p, rc, symbol, posState);
if (updatePrice) {
if (!--p->counters[posState])
LenPriceEnc_UpdateTable(p, posState, ProbPrices);
}
} | static void LenEnc_Encode2(CLenPriceEnc *p, CRangeEnc *rc, UInt32 symbol,
UInt32 posState, Bool updatePrice,
UInt32 *ProbPrices) {
LenEnc_Encode(&p->p, rc, symbol, posState);
if (updatePrice)
if (--p->counters[posState] == 0)
LenPriceEnc_UpdateTable(p,... | LenEnc_Encode2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LenEnc_SetPrices(CLenEnc *p, UInt32 posState, UInt32 numSymbols,
UInt32 *prices, UInt32 *ProbPrices) {
UInt32 i;
UInt32 a0;
UInt32 a1;
UInt32 b0;
UInt32 b1;
a0 = ProbPrices[p->choice >> 4];
a1 = ProbPrices[(p->choice >> 4) ^ 0x7F];
b0 = ProbPrices[p->choice2 >> 4] + a1;
b1 ... | static void LenEnc_SetPrices(CLenEnc *p, UInt32 posState, UInt32 numSymbols,
UInt32 *prices, UInt32 *ProbPrices) {
UInt32 a0 = GET_PRICE_0a(p->choice);
UInt32 a1 = GET_PRICE_1a(p->choice);
UInt32 b0 = a1 + GET_PRICE_0a(p->choice2);
UInt32 b1 = a1 + GET_PRICE_1a(p->choice2);
UInt32... | LenEnc_SetPrices | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LenPriceEnc_UpdateTable(CLenPriceEnc *p, UInt32 posState,
UInt32 *ProbPrices) {
LenEnc_SetPrices(&p->p, posState, p->tableSize, p->prices[posState],
ProbPrices);
p->counters[posState] = p->tableSize;
} | static void MY_FAST_CALL LenPriceEnc_UpdateTable(CLenPriceEnc *p,
UInt32 posState,
UInt32 *ProbPrices) {
LenEnc_SetPrices(&p->p, posState, p->tableSize, p->prices[posState],
ProbPrices);
p->counters[... | LenPriceEnc_UpdateTable | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LenPriceEnc_UpdateTables(CLenPriceEnc *p, UInt32 numPosStates,
UInt32 *ProbPrices) {
UInt32 posState;
for (posState = 0; posState < numPosStates; ++posState)
LenPriceEnc_UpdateTable(p, posState, ProbPrices);
} | static void LenPriceEnc_UpdateTables(CLenPriceEnc *p, UInt32 numPosStates,
UInt32 *ProbPrices) {
UInt32 posState;
for (posState = 0; posState < numPosStates; posState++)
LenPriceEnc_UpdateTable(p, posState, ProbPrices);
} | LenPriceEnc_UpdateTables | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LitEnc_Encode(CRangeEnc *p, UInt16 *probs, UInt32 symbol) {
UInt32 symbola;
symbola = symbol | 0x100;
do {
RangeEnc_EncodeBit(p, &probs[symbola >> 8], (symbola >> 7) & 1);
symbola *= 2;
} while (symbola <= 0xFFFF);
} | static void LitEnc_Encode(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol) {
symbol |= 0x100;
do {
RangeEnc_EncodeBit(p, probs + (symbol >> 8), (symbol >> 7) & 1);
symbol <<= 1;
} while (symbol < 0x10000);
} | LitEnc_Encode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LitEnc_EncodeMatched(CRangeEnc *p, UInt16 *probs, UInt32 symbol,
UInt32 matchByte) {
UInt32 symbola;
UInt32 offs;
offs = 256;
symbola = symbol | 0x100;
do {
matchByte *= 2;
RangeEnc_EncodeBit(p, &probs[offs + (offs & matchByte) + (symbola >> 8)],
... | static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 symbol,
UInt32 matchByte) {
UInt32 offs = 0x100;
symbol |= 0x100;
do {
matchByte <<= 1;
RangeEnc_EncodeBit(p, probs + (offs + (matchByte & offs) + (symbol >> 8)),
(symbol >> 7) &... | LitEnc_EncodeMatched | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 LitEnc_GetPrice(const UInt16 *probs, UInt32 symbol, UInt32 *ProbPrices) {
UInt32 symbola;
UInt32 price;
price = 0;
symbola = symbol | 0x100;
do {
price +=
ProbPrices[(int)(probs[symbola >> 8] ^ -((symbola >> 7) & 1) & 0x7FF) >>
4];
symbola *= 2;
} while (symbola <=... | static UInt32 LitEnc_GetPrice(const CLzmaProb *probs, UInt32 symbol,
UInt32 *ProbPrices) {
UInt32 price = 0;
symbol |= 0x100;
do {
price += GET_PRICEa(probs[symbol >> 8], (symbol >> 7) & 1);
symbol <<= 1;
} while (symbol < 0x10000);
return price;
} | LitEnc_GetPrice | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 LitEnc_GetPriceMatched(const UInt16 *probs, UInt32 symbol,
UInt32 matchByte, UInt32 *ProbPrices) {
UInt32 symbola;
UInt32 price;
UInt32 offs;
price = 0;
offs = 256;
symbola = symbol | 0x100;
do {
matchByte *= 2;
price +=
ProbPrices[(int)(probs[offs + (... | static UInt32 LitEnc_GetPriceMatched(const CLzmaProb *probs, UInt32 symbol,
UInt32 matchByte, UInt32 *ProbPrices) {
UInt32 price = 0;
UInt32 offs = 0x100;
symbol |= 0x100;
do {
matchByte <<= 1;
price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)],
... | LitEnc_GetPriceMatched | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) {
UInt32 blockSize;
blockSize = p->keepSizeAfter + p->keepSizeBefore + keepSizeReserv;
if (p->directInput) {
p->blockSize = blockSize;
return 1;
} else {
if (!p->bufferBase || blockSize != p->blockSize) {
LzInWindo... | static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv,
ISzAlloc *alloc) {
UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv;
if (p->directInput) {
p->blockSize = blockSize;
return 1;
}
if (p->bufferBase == 0 || p->blockSize != blockSize) ... | LzInWindow_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzInWindow_Free(CMatchFinder *p, ISzAlloc *alloc) {
if (!p->directInput) {
alloc->Free(alloc, p->bufferBase);
p->bufferBase = 0;
}
} | static void LzInWindow_Free(CMatchFinder *p, ISzAlloc *alloc) {
if (!p->directInput) {
alloc->Free(alloc, p->bufferBase);
p->bufferBase = 0;
}
} | LzInWindow_Free | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src,
size_t srcLen, unsigned char *outProps, size_t *outPropsSize,
int level, unsigned int dictSize, int lc, int lp, int pb,
int fb, int numThreads) {
CLzmaEncProps props;
unsigned long v19... | MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen,
const unsigned char *src, size_t srcLen,
unsigned char *outProps, size_t *outPropsSize, int level,
unsigned dictSize, int lc, int lp, int pb, int fb,
int numThreads) {... | LzmaCompress | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned int propsSize,
ISzAlloc *alloc) {
long v5;
int __result__;
int __result___0;
SizeT dicBufSize;
CLzmaProps propNew;
unsigned long v11;
v11 = __readfsqword(0x28u);
__result__ = LzmaProps_Decode(&propNew, props, propsSize... | SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize,
ISzAlloc *alloc) {
CLzmaProps propNew;
SizeT dicBufSize;
RINOK(LzmaProps_Decode(&propNew, props, propsSize));
RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc));
dicBufSize = propNew.dicSize;
if (p->dic == 0 || di... | LzmaDec_Allocate | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props,
unsigned int propsSize, ISzAlloc *alloc) {
long v5;
int __result__;
int __result___0;
CLzmaProps propNew;
unsigned long v10;
v10 = __readfsqword(0x28u);
__result__ = LzmaProps_Decode(&propNew, props, propsSize);
if (_... | SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize,
ISzAlloc *alloc) {
CLzmaProps propNew;
RINOK(LzmaProps_Decode(&propNew, props, propsSize));
RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc));
p->prop = propNew;
return SZ_OK;
} | LzmaDec_AllocateProbs | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew,
ISzAlloc *alloc) {
unsigned int numProbs;
numProbs = (768 << (LOBYTE(propNew->lc) + LOBYTE(propNew->lp))) + 1846;
if (p->probs && numProbs == p->numProbs)
return 0;
LzmaDec_FreeProbs(p, alloc);
p->probs = (UIn... | static SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew,
ISzAlloc *alloc) {
UInt32 numProbs = LzmaProps_GetNumProbs(propNew);
if (p->probs == 0 || numProbs != p->numProbs) {
LzmaDec_FreeProbs(p, alloc);
p->probs = (CLzmaProb *)alloc->Alloc(alloc, numProbs... | LzmaDec_AllocateProbs2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int LzmaDec_DecodeReal(CLzmaDec *p, SizeT limit, const Byte *bufLimit) {
const Byte *v3;
unsigned long v4;
int v5;
const Byte *v6;
unsigned long v7;
int v8;
const Byte *v9;
unsigned long v10;
const Byte *v11;
const Byte *v13;
const Byte *v14;
unsigned long v15;
int v16;
const Byte *v17;
co... | StopCompilingDueBUG
#endif
#define LZMA_DIC_MIN (1 << 12)
static int MY_FAST_CALL LzmaDec_DecodeReal(CLzmaDec *p, SizeT limit,
const Byte *bufLimit) {
CLzmaProb *probs = p->probs;
unsigned state = p->state;
UInt32 rep0 = p->reps[0], rep1 = p->reps[1], rep2 = p... | LzmaDec_DecodeReal | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int LzmaDec_DecodeReal2(CLzmaDec *p, SizeT limit, const Byte *bufLimit) {
UInt32 rem;
int __result__;
SizeT limit2;
do {
limit2 = limit;
if (!p->checkDicSize) {
rem = p->prop.dicSize - p->processedPos;
if (limit - p->dicPos > rem)
limit2 = p->dicPos + rem;
}
__result__ = Lzm... | static int MY_FAST_CALL LzmaDec_DecodeReal2(CLzmaDec *p, SizeT limit,
const Byte *bufLimit) {
do {
SizeT limit2 = limit;
if (p->checkDicSize == 0) {
UInt32 rem = p->prop.dicSize - p->processedPos;
if (limit - p->dicPos > rem)
limit2 = p->dicPos +... | LzmaDec_DecodeReal2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen,
const Byte *src, SizeT *srcLen,
ELzmaFinishMode finishMode, ELzmaStatus *status) {
ELzmaFinishMode curFinishMode;
SRes res;
SizeT inSizeCur;
SizeT outSize;
SizeT inSize;
SizeT outSizeCur;
Si... | SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen,
const Byte *src, SizeT *srcLen,
ELzmaFinishMode finishMode, ELzmaStatus *status) {
SizeT outSize = *destLen;
SizeT inSize = *srcLen;
*srcLen = *destLen = 0;
for (;;) {
SizeT inSizeCur = inSize... | LzmaDec_DecodeToBuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src,
SizeT *srcLen, ELzmaFinishMode finishMode,
ELzmaStatus *status) {
Byte *v6;
unsigned int tempBufSize;
unsigned int v9;
unsigned int v10;
int checkEndMarkNow;
unsigned int rem;
unsigned ... | SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src,
SizeT *srcLen, ELzmaFinishMode finishMode,
ELzmaStatus *status) {
SizeT inSize = *srcLen;
(*srcLen) = 0;
LzmaDec_WriteRem(p, dicLimit);
*status = LZMA_STATUS_NOT_SPECIFIED;
while (p->rema... | LzmaDec_DecodeToDic | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_Free(CLzmaDec *p, ISzAlloc *alloc) {
LzmaDec_FreeProbs(p, alloc);
LzmaDec_FreeDict(p, alloc);
} | void LzmaDec_Free(CLzmaDec *p, ISzAlloc *alloc) {
LzmaDec_FreeProbs(p, alloc);
LzmaDec_FreeDict(p, alloc);
} | LzmaDec_Free | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_FreeDict(CLzmaDec *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->dic);
p->dic = 0;
} | static void LzmaDec_FreeDict(CLzmaDec *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->dic);
p->dic = 0;
} | LzmaDec_FreeDict | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->probs);
p->probs = 0;
} | void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->probs);
p->probs = 0;
} | LzmaDec_FreeProbs | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_Init(CLzmaDec *p) {
p->dicPos = 0;
LzmaDec_InitDicAndState(p, 1, 1);
} | void LzmaDec_Init(CLzmaDec *p) {
p->dicPos = 0;
LzmaDec_InitDicAndState(p, True, True);
} | LzmaDec_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState) {
p->needFlush = 1;
p->remainLen = 0;
p->tempBufSize = 0;
if (initDic) {
p->processedPos = 0;
p->checkDicSize = 0;
p->needInitState = 1;
}
if (initState)
p->needInitState = 1;
} | void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState) {
p->needFlush = 1;
p->remainLen = 0;
p->tempBufSize = 0;
if (initDic) {
p->processedPos = 0;
p->checkDicSize = 0;
p->needInitState = 1;
}
if (initState)
p->needInitState = 1;
} | LzmaDec_InitDicAndState | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_InitRc(CLzmaDec *p, const Byte *data) {
p->code = _byteswap_ulong(*(_DWORD *)(data + 1));
p->range = -1;
p->needFlush = 0;
} | static void LzmaDec_InitRc(CLzmaDec *p, const Byte *data) {
p->code = ((UInt32)data[1] << 24) | ((UInt32)data[2] << 16) |
((UInt32)data[3] << 8) | ((UInt32)data[4]);
p->range = 0xFFFFFFFF;
p->needFlush = 0;
} | LzmaDec_InitRc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_InitStateReal(CLzmaDec *p) {
UInt32 i;
UInt32 numProbs;
UInt16 *probs;
numProbs = (768 << (LOBYTE(p->prop.lc) + LOBYTE(p->prop.lp))) + 1846;
probs = p->probs;
for (i = 0; i < numProbs; ++i)
probs[i] = 1024;
p->reps[3] = 1;
p->reps[2] = p->reps[3];
p->reps[1] = p->reps[2];
p->reps[0... | static void LzmaDec_InitStateReal(CLzmaDec *p) {
UInt32 numProbs =
Literal + ((UInt32)LZMA_LIT_SIZE << (p->prop.lc + p->prop.lp));
UInt32 i;
CLzmaProb *probs = p->probs;
for (i = 0; i < numProbs; i++)
probs[i] = kBitModelTotal >> 1;
p->reps[0] = p->reps[1] = p->reps[2] = p->reps[3] = 1;
p->state =... | LzmaDec_InitStateReal | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const Byte *buf, SizeT inSize) {
SizeT dicPos;
const Byte *v5;
SizeT dicBufSize;
const Byte *v7;
const Byte *v8;
const Byte *v9;
const Byte *v10;
const Byte *v11;
const Byte *v12;
const Byte *v13;
const Byte *v14;
const Byte *v15;
int v16;
const... | static ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const Byte *buf,
SizeT inSize) {
UInt32 range = p->range;
UInt32 code = p->code;
const Byte *bufLimit = buf + inSize;
CLzmaProb *probs = p->probs;
unsigned state = p->state;
ELzmaDummy res;
{
CLzmaProb *prob;
... | LzmaDec_TryDummy | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaDec_WriteRem(CLzmaDec *p, SizeT limit) {
SizeT v2;
UInt32 len;
UInt32 rep0;
unsigned long dicPos;
Byte *dic;
SizeT dicBufSize;
if (p->remainLen && p->remainLen <= 0x111) {
dic = p->dic;
dicPos = p->dicPos;
dicBufSize = p->dicBufSize;
len = p->remainLen;
rep0 = p->reps[0];
... | static void MY_FAST_CALL LzmaDec_WriteRem(CLzmaDec *p, SizeT limit) {
if (p->remainLen != 0 && p->remainLen < kMatchSpecLenStart) {
Byte *dic = p->dic;
SizeT dicPos = p->dicPos;
SizeT dicBufSize = p->dicBufSize;
unsigned len = p->remainLen;
UInt32 rep0 = p->reps[0];
if (limit - dicPos < len)
... | LzmaDec_WriteRem | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
const Byte *propData, unsigned int propSize,
ELzmaFinishMode finishMode, ELzmaStatus *status,
ISzAlloc *alloc) {
SRes res;
SRes resa;
SizeT inSize;
SizeT outSize;
CLzmaDec p;
unsigned ... | SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
const Byte *propData, unsigned propSize,
ELzmaFinishMode finishMode, ELzmaStatus *status,
ISzAlloc *alloc) {
CLzmaDec p;
SRes res;
SizeT inSize = *srcLen;
SizeT outSize = *destLen;
*srcL... | LzmaDecode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) {
long v1;
long v2;
long v3;
CLzmaEncProps props;
unsigned long v6;
v6 = __readfsqword(0x28u);
v1 = *(_QWORD *)&props2->lc;
*(_QWORD *)&props.level = *(_QWORD *)&props2->level;
*(_QWORD *)&props.lc = v1;
v2 = *(_QWORD *)&props2->fb;
*(_... | UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) {
CLzmaEncProps props = *props2;
LzmaEncProps_Normalize(&props);
return props.dictSize;
} | LzmaEncProps_GetDictSize | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEncProps_Init(CLzmaEncProps *p) {
p->level = 5;
p->mc = 0;
p->dictSize = p->mc;
p->numThreads = -1;
p->numHashBytes = p->numThreads;
p->btMode = p->numHashBytes;
p->fb = p->btMode;
p->algo = p->fb;
p->pb = p->algo;
p->lp = p->pb;
p->lc = p->lp;
p->writeEndMark = 0;
} | void LzmaEncProps_Init(CLzmaEncProps *p) {
p->level = 5;
p->dictSize = p->mc = 0;
p->lc = p->lp = p->pb = p->algo = p->fb = p->btMode = p->numHashBytes =
p->numThreads = -1;
p->writeEndMark = 0;
} | LzmaEncProps_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEncProps_Normalize(CLzmaEncProps *p) {
UInt32 v1;
int v2;
int v3;
int level;
level = p->level;
if (p->level < 0)
level = 5;
p->level = level;
if (!p->dictSize) {
if (level > 5) {
if (level == 6)
v1 = 0x2000000;
else
v1 = 0x4000000;
} else {
v1 = 1 ... | void LzmaEncProps_Normalize(CLzmaEncProps *p) {
int level = p->level;
if (level < 0)
level = 5;
p->level = level;
if (p->dictSize == 0)
p->dictSize = (level <= 5 ? (1 << (level * 2 + 14))
: (level == 6 ? (1 << 25) : (1 << 26)));
if (p->lc < 0)
p->lc = 3;
if (p->lp <... | LzmaEncProps_Normalize | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
Bool v5;
UInt32 beforeSize;
unsigned int lclp;
int __result__;
beforeSize = 4096;
if (!RangeEnc_Alloc((CRangeEnc *)((char *)&loc_3D950 + (_QWORD)p), alloc))
return 2;
v5 = p->multiThread &... | static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
UInt32 beforeSize = kNumOpts;
Bool btMode;
if (!RangeEnc_Alloc(&p->rc, alloc))
return SZ_ERROR_MEM;
btMode = (p->matchFinderBase.btMode != 0);
#ifndef _7ZIP_ST
p->mtMode = (p->mul... | LzmaEnc_Alloc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_AllocAndInit(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
UInt32 i;
int __result__;
for (i = 0; i <= 0x1E && *(_DWORD *)((char *)&loc_3D9B8 + (_QWORD)p) >
(unsigned int)(1 << i);
++i)
;
p->distTableSi... | static SRes LzmaEnc_AllocAndInit(CLzmaEnc *p, UInt32 keepWindowSize,
ISzAlloc *alloc, ISzAlloc *allocBig) {
UInt32 i;
for (i = 0; i < (UInt32)kDicLogSizeMaxCompress; i++)
if (p->dictSize <= ((UInt32)1 << i))
break;
p->distTableSize = i * 2;
p->finished = False;
p->r... | LzmaEnc_AllocAndInit | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, Bool useLimits, UInt32 maxPackSize,
UInt32 maxUnpackSize) {
UInt32 v5;
Byte curByte;
Byte curByte_0;
UInt32 pos;
UInt32 nowPos32;
UInt32 len;
UInt32 posSlot;
int __result__;
UInt32 startPos32;
UInt32 posState;
UInt32 i;
UInt32 foot... | static SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, Bool useLimits,
UInt32 maxPackSize, UInt32 maxUnpackSize) {
UInt32 nowPos32, startPos32;
if (p->needInit) {
p->matchFinder.Init(p->matchFinderObj);
p->needInit = 0;
}
if (p->finished)
return p->result;
RINOK(CheckError... | LzmaEnc_CodeOneBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit, Byte *dest,
size_t *destLen, UInt32 desiredPackSize,
UInt32 *unpackSize) {
SRes res;
UInt64 nowPos64;
CSeqOutStreamBuf outStream;
unsigned long v13;
v13 = __readfsqword(0x28u);
outStream.f... | SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit, Byte *dest,
size_t *destLen, UInt32 desiredPackSize,
UInt32 *unpackSize) {
CLzmaEnc *p = (CLzmaEnc *)pp;
UInt64 nowPos64;
SRes res;
CSeqOutStreamBuf outStream;
outStream.funcTable.Write = My... | LzmaEnc_CodeOneMemBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_Construct(CLzmaEnc *p) {
CLzmaEncProps props;
unsigned long v2;
v2 = __readfsqword(0x28u);
RangeEnc_Construct(&p->rc);
MatchFinder_Construct(&p->matchFinderBase);
MatchFinderMt_Construct(&p->matchFinderMt);
p->matchFinderMt.MatchFinder = &p->matchFinderBase;
LzmaEncProps_Init(&props);
Lz... | void LzmaEnc_Construct(CLzmaEnc *p) {
RangeEnc_Construct(&p->rc);
MatchFinder_Construct(&p->matchFinderBase);
#ifndef _7ZIP_ST
MatchFinderMt_Construct(&p->matchFinderMt);
p->matchFinderMt.MatchFinder = &p->matchFinderBase;
#endif
{
CLzmaEncProps props;
LzmaEncProps_Init(&props);
LzmaEnc_SetProps(... | LzmaEnc_Construct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
CLzmaEncHandle LzmaEnc_Create(ISzAlloc *alloc) {
CLzmaEnc *p;
p = (CLzmaEnc *)alloc->Alloc(alloc, 291032);
if (p)
LzmaEnc_Construct(p);
return p;
} | CLzmaEncHandle LzmaEnc_Create(ISzAlloc *alloc) {
void *p;
p = alloc->Alloc(alloc, sizeof(CLzmaEnc));
if (p != 0)
LzmaEnc_Construct((CLzmaEnc *)p);
return p;
} | LzmaEnc_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_Destroy(CLzmaEncHandle p, ISzAlloc *alloc, ISzAlloc *allocBig) {
LzmaEnc_Destruct((CLzmaEnc *)p, alloc, allocBig);
alloc->Free(alloc, p);
} | void LzmaEnc_Destroy(CLzmaEncHandle p, ISzAlloc *alloc, ISzAlloc *allocBig) {
LzmaEnc_Destruct((CLzmaEnc *)p, alloc, allocBig);
alloc->Free(alloc, p);
} | LzmaEnc_Destroy | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_Destruct(CLzmaEnc *p, ISzAlloc *alloc, ISzAlloc *allocBig) {
MatchFinderMt_Destruct(&p->matchFinderMt, allocBig);
MatchFinder_Free(&p->matchFinderBase, allocBig);
LzmaEnc_FreeLits(p, alloc);
RangeEnc_Free((CRangeEnc *)((char *)&loc_3D950 + (_QWORD)p), alloc);
} | void LzmaEnc_Destruct(CLzmaEnc *p, ISzAlloc *alloc, ISzAlloc *allocBig) {
#ifndef _7ZIP_ST
MatchFinderMt_Destruct(&p->matchFinderMt, allocBig);
#endif
MatchFinder_Free(&p->matchFinderBase, allocBig);
LzmaEnc_FreeLits(p, alloc);
RangeEnc_Free(&p->rc, alloc);
} | LzmaEnc_Destruct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_Encode(CLzmaEncHandle pp, ISeqOutStream *outStream,
ISeqInStream *inStream, ICompressProgress *progress,
ISzAlloc *alloc, ISzAlloc *allocBig) {
int __result__;
__result__ = LzmaEnc_Prepare(pp, outStream, inStream, alloc, allocBig);
if (__result__)
return _... | SRes LzmaEnc_Encode(CLzmaEncHandle pp, ISeqOutStream *outStream,
ISeqInStream *inStream, ICompressProgress *progress,
ISzAlloc *alloc, ISzAlloc *allocBig) {
RINOK(LzmaEnc_Prepare(pp, outStream, inStream, alloc, allocBig));
return LzmaEnc_Encode2((CLzmaEnc *)pp, progress);
} | LzmaEnc_Encode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_Encode2(CLzmaEnc *p, ICompressProgress *progress) {
SRes res;
int i;
Byte allocaDummy[776];
unsigned long v6;
v6 = __readfsqword(0x28u);
for (i = 0; i <= 15; ++i)
allocaDummy[i] = i;
while (1) {
res = LzmaEnc_CodeOneBlock(p, 0, 0, 0);
if (res || p->finished)
break;
if (... | static SRes LzmaEnc_Encode2(CLzmaEnc *p, ICompressProgress *progress) {
SRes res = SZ_OK;
#ifndef _7ZIP_ST
__maybe_unused Byte allocaDummy[0x300];
int i = 0;
for (i = 0; i < 16; i++)
allocaDummy[i] = (Byte)i;
#endif
for (;;) {
res = LzmaEnc_CodeOneBlock(p, False, 0, 0);
if (res != SZ_OK || p->fi... | LzmaEnc_Encode2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_FastPosInit(Byte *g_FastPos) {
int c;
int slotFast;
UInt32 j;
c = 2;
*g_FastPos = 0;
g_FastPos[1] = 1;
for (slotFast = 2; slotFast <= 25; ++slotFast) {
for (j = 0; j < 1 << ((slotFast >> 1) - 1); ++j)
g_FastPos[c++] = slotFast;
}
} | void LzmaEnc_FastPosInit(Byte *g_FastPos) {
int c = 2, slotFast;
g_FastPos[0] = 0;
g_FastPos[1] = 1;
for (slotFast = 2; slotFast < kNumLogBits * 2; slotFast++) {
UInt32 k = (1 << ((slotFast >> 1) - 1));
UInt32 j;
for (j = 0; j < k; j++, c++)
g_FastPos[c] = (Byte)slotFast;
}
} | LzmaEnc_FastPosInit | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_Finish(CLzmaEncHandle pp) {
if (*((_DWORD *)pp + 14))
MatchFinderMt_ReleaseStream((CMatchFinderMt *)((char *)pp + 64));
} | void LzmaEnc_Finish(CLzmaEncHandle pp) {
#ifndef _7ZIP_ST
CLzmaEnc *p = (CLzmaEnc *)pp;
if (p->mtMode)
MatchFinderMt_ReleaseStream(&p->matchFinderMt);
#else
pp = pp;
#endif
} | LzmaEnc_Finish | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_FreeLits(CLzmaEnc *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->litProbs);
alloc->Free(alloc, p->saveState.litProbs);
p->litProbs = 0;
p->saveState.litProbs = 0;
} | void LzmaEnc_FreeLits(CLzmaEnc *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->litProbs);
alloc->Free(alloc, p->saveState.litProbs);
p->litProbs = 0;
p->saveState.litProbs = 0;
} | LzmaEnc_FreeLits | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
const Byte *LzmaEnc_GetCurBuf(CLzmaEncHandle pp) {
return (const Byte *)((*((long (**)(_QWORD))pp + 3))(*((_QWORD *)pp + 6)) -
*((unsigned int *)pp + 52597));
} | const Byte *LzmaEnc_GetCurBuf(CLzmaEncHandle pp) {
const CLzmaEnc *p = (CLzmaEnc *)pp;
return p->matchFinder.GetPointerToCurrentPos(p->matchFinderObj) -
p->additionalOffset;
} | LzmaEnc_GetCurBuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 LzmaEnc_GetNumAvailableBytes(CLzmaEncHandle pp) {
return (*((UInt32(**)(_QWORD))pp + 2))(*((_QWORD *)pp + 6));
} | UInt32 LzmaEnc_GetNumAvailableBytes(CLzmaEncHandle pp) {
const CLzmaEnc *p = (CLzmaEnc *)pp;
return p->matchFinder.GetNumAvailableBytes(p->matchFinderObj);
} | LzmaEnc_GetNumAvailableBytes | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_Init(CLzmaEnc *p) {
UInt32 i;
UInt32 ia;
UInt32 ib;
UInt32 ic;
UInt32 id;
UInt32 ie;
UInt32 j;
UInt32 j_0;
UInt32 num;
p->state = 0;
for (i = 0; i <= 3; ++i)
p->reps[i] = 0;
RangeEnc_Init(&p->rc);
for (ia = 0; ia <= 0xB; ++ia) {
for (j = 0; j <= 0xF; ++j) {
p->isMat... | void LzmaEnc_Init(CLzmaEnc *p) {
UInt32 i;
p->state = 0;
for (i = 0; i < LZMA_NUM_REPS; i++)
p->reps[i] = 0;
RangeEnc_Init(&p->rc);
for (i = 0; i < kNumStates; i++) {
UInt32 j;
for (j = 0; j < LZMA_NUM_PB_STATES_MAX; j++) {
p->isMatch[i][j] = kProbInitValue;
p->isRep0Long[i][j] = kPr... | LzmaEnc_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_InitPriceTables(UInt32 *ProbPrices) {
UInt32 i;
UInt32 w;
UInt32 bitCount;
int j;
for (i = 8; i <= 0x7FF; i += 16) {
w = i;
bitCount = 0;
for (j = 0; j < 4; ++j) {
w *= w;
bitCount *= 2;
while (w > 0xFFFF) {
w >>= 1;
++bitCount;
}
}
Pro... | void LzmaEnc_InitPriceTables(UInt32 *ProbPrices) {
UInt32 i;
for (i = (1 << kNumMoveReducingBits) / 2; i < kBitModelTotal;
i += (1 << kNumMoveReducingBits)) {
const int kCyclesBits = kNumBitPriceShiftBits;
UInt32 w = i;
UInt32 bitCount = 0;
int j;
for (j = 0; j < kCyclesBits; j++) {
... | LzmaEnc_InitPriceTables | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_InitPrices(CLzmaEnc *p) {
if (!p->fastMode) {
FillDistancesPrices(p);
FillAlignPrices(p);
}
p->repLenEnc.tableSize = *(_DWORD *)((char *)&loc_335D0 + (_QWORD)p) - 1;
*(_DWORD *)((char *)&loc_390B8 + (_QWORD)p) = p->repLenEnc.tableSize;
LenPriceEnc_UpdateTables(&p->lenEnc,
... | void LzmaEnc_InitPrices(CLzmaEnc *p) {
if (!p->fastMode) {
FillDistancesPrices(p);
FillAlignPrices(p);
}
p->lenEnc.tableSize = p->repLenEnc.tableSize =
p->numFastBytes + 1 - LZMA_MATCH_LEN_MIN;
LenPriceEnc_UpdateTables(&p->lenEnc, 1 << p->pb, p->ProbPrices);
LenPriceEnc_UpdateTables(&p->repLenE... | LzmaEnc_InitPrices | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_MemEncode(CLzmaEncHandle pp, Byte *dest, SizeT *destLen,
const Byte *src, SizeT srcLen, int writeEndMark,
ICompressProgress *progress, ISzAlloc *alloc,
ISzAlloc *allocBig) {
SRes res;
CSeqOutStreamBuf outStream;
unsigned long v16;
... | SRes LzmaEnc_MemEncode(CLzmaEncHandle pp, Byte *dest, SizeT *destLen,
const Byte *src, SizeT srcLen, int writeEndMark,
ICompressProgress *progress, ISzAlloc *alloc,
ISzAlloc *allocBig) {
SRes res;
CLzmaEnc *p = (CLzmaEnc *)pp;
CSeqOutStreamBuf ... | LzmaEnc_MemEncode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen,
UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
LzmaEnc_SetInputBuf((CLzmaEnc *)pp, src, srcLen);
*((_DWORD *)pp + 63088) = 1;
return LzmaEnc_AllocAndInit((CLzmaEnc *)pp, keepWin... | SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen,
UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
CLzmaEnc *p = (CLzmaEnc *)pp;
LzmaEnc_SetInputBuf(p, src, srcLen);
p->needInit = 1;
return LzmaEnc_AllocAndInit(p, keepWindowSi... | LzmaEnc_MemPrepare | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_Prepare(CLzmaEncHandle pp, ISeqOutStream *outStream,
ISeqInStream *inStream, ISzAlloc *alloc,
ISzAlloc *allocBig) {
*((_QWORD *)pp + 204) = inStream;
*((_DWORD *)pp + 63088) = 1;
*((_QWORD *)pp + 31536) = outStream;
return LzmaEnc_AllocAndInit((CLzmaEnc *)p... | static SRes LzmaEnc_Prepare(CLzmaEncHandle pp, ISeqOutStream *outStream,
ISeqInStream *inStream, ISzAlloc *alloc,
ISzAlloc *allocBig) {
CLzmaEnc *p = (CLzmaEnc *)pp;
p->matchFinderBase.stream = inStream;
p->needInit = 1;
p->rc.outStream = outStream;
retu... | LzmaEnc_Prepare | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_PrepareForLzma2(CLzmaEncHandle pp, ISeqInStream *inStream,
UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
*((_QWORD *)pp + 204) = inStream;
*((_DWORD *)pp + 63088) = 1;
return LzmaEnc_AllocAndInit((CLzmaEnc *)pp, keepWindowSize,... | SRes LzmaEnc_PrepareForLzma2(CLzmaEncHandle pp, ISeqInStream *inStream,
UInt32 keepWindowSize, ISzAlloc *alloc,
ISzAlloc *allocBig) {
CLzmaEnc *p = (CLzmaEnc *)pp;
p->matchFinderBase.stream = inStream;
p->needInit = 1;
return LzmaEnc_AllocAndInit(p, keep... | LzmaEnc_PrepareForLzma2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_RestoreState(CLzmaEncHandle pp) {
long v1;
int i;
int ia;
const CSaveState *p;
p = (const CSaveState *)((char *)pp + 252360);
memcpy((char *)pp + 215220, (char *)pp + 254004, 0x4848u);
memcpy((char *)pp + 233724, (char *)pp + 272508, 0x4848u);
*((_DWORD *)pp + 52602) = *((_DWORD *)pp + 727... | void LzmaEnc_RestoreState(CLzmaEncHandle pp) {
CLzmaEnc *dest = (CLzmaEnc *)pp;
const CSaveState *p = &dest->saveState;
int i;
dest->lenEnc = p->lenEnc;
dest->repLenEnc = p->repLenEnc;
dest->state = p->state;
for (i = 0; i < kNumStates; i++) {
memcpy(dest->isMatch[i], p->isMatch[i], sizeof(p->isMatch... | LzmaEnc_RestoreState | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void LzmaEnc_SaveState(CLzmaEncHandle pp) {
long v1;
int i;
int ia;
CSaveState *dest;
dest = (CSaveState *)((char *)pp + 252360);
memcpy((char *)pp + 254004, (char *)&loc_348B4 + (_QWORD)pp, 0x4848u);
memcpy((char *)pp + 272508, (char *)pp + 233724, 0x4848u);
*((_DWORD *)pp + 72757) = *((_DWORD *)pp + ... | void LzmaEnc_SaveState(CLzmaEncHandle pp) {
CLzmaEnc *p = (CLzmaEnc *)pp;
CSaveState *dest = &p->saveState;
int i;
dest->lenEnc = p->lenEnc;
dest->repLenEnc = p->repLenEnc;
dest->state = p->state;
for (i = 0; i < kNumStates; i++) {
memcpy(dest->isMatch[i], p->isMatch[i], sizeof(p->isMatch[i]));
m... | LzmaEnc_SaveState | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.