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 LzmaEnc_SetInputBuf(CLzmaEnc *p, const Byte *src, SizeT srcLen) {
p->matchFinderBase.directInput = 1;
p->matchFinderBase.bufferBase = (Byte *)src;
p->matchFinderBase.directInputRem = srcLen;
} | static void LzmaEnc_SetInputBuf(CLzmaEnc *p, const Byte *src, SizeT srcLen) {
p->matchFinderBase.directInput = 1;
p->matchFinderBase.bufferBase = (Byte *)src;
p->matchFinderBase.directInputRem = srcLen;
} | LzmaEnc_SetInputBuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_SetProps(CLzmaEncHandle pp, const CLzmaEncProps *props2) {
long v2;
long v3;
long v4;
unsigned int fb;
UInt32 numHashBytes;
CLzmaEncProps props;
unsigned long v9;
v9 = __readfsqword(0x28u);
v2 = *(_QWORD *)&props2->lc;
*(_QWORD *)&props.level = *(_QWORD *)&props2->level;
*(_QWORD *)&... | SRes LzmaEnc_SetProps(CLzmaEncHandle pp, const CLzmaEncProps *props2) {
CLzmaEnc *p = (CLzmaEnc *)pp;
CLzmaEncProps props = *props2;
LzmaEncProps_Normalize(&props);
if (props.lc > LZMA_LC_MAX || props.lp > LZMA_LP_MAX ||
props.pb > LZMA_PB_MAX ||
props.dictSize > ((UInt32)1 << kDicLogSizeMaxCompres... | LzmaEnc_SetProps | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEnc_WriteProperties(CLzmaEncHandle pp, Byte *props, SizeT *size) {
int i;
int ia;
UInt32 dictSize;
dictSize = *(_DWORD *)((char *)&loc_3D9B8 + (_QWORD)pp);
if (*size <= 4)
return 5;
*size = 5;
*props =
*((_DWORD *)pp + 53389) +
9 * (5 * *((_BYTE *)&loc_3423C + (_QWORD)pp) + *((_B... | SRes LzmaEnc_WriteProperties(CLzmaEncHandle pp, Byte *props, SizeT *size) {
CLzmaEnc *p = (CLzmaEnc *)pp;
int i;
UInt32 dictSize = p->dictSize;
if (*size < LZMA_PROPS_SIZE)
return SZ_ERROR_PARAM;
*size = LZMA_PROPS_SIZE;
props[0] = (Byte)((p->pb * 5 + p->lp) * 9 + p->lc);
for (i = 11; i <= 30; i++) {... | LzmaEnc_WriteProperties | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen,
const CLzmaEncProps *props, Byte *propsEncoded,
SizeT *propsSize, int writeEndMark, ICompressProgress *progress,
ISzAlloc *alloc, ISzAlloc *allocBig) {
SRes res;
CLzmaEnc *p;
p = (CLzmaEnc *... | SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen,
const CLzmaEncProps *props, Byte *propsEncoded,
SizeT *propsSize, int writeEndMark, ICompressProgress *progress,
ISzAlloc *alloc, ISzAlloc *allocBig) {
CLzmaEnc *p = (CLzmaEnc *)LzmaEnc_Create(al... | LzmaEncode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned int size) {
Byte d;
Byte da;
unsigned int dicSize;
if (size <= 4)
return 4;
dicSize = (data[3] << 16) | *(unsigned short *)(data + 1) | (data[4] << 24);
if (dicSize <= 0xFFF)
dicSize = 4096;
p->dicSize = dicSize;
d = *data;
if (*... | SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size) {
UInt32 dicSize;
Byte d;
if (size < LZMA_PROPS_SIZE)
return SZ_ERROR_UNSUPPORTED;
else
dicSize = data[1] | ((UInt32)data[2] << 8) | ((UInt32)data[3] << 16) |
((UInt32)data[4] << 24);
if (dicSize < LZMA_DIC_MIN)
... | LzmaProps_Decode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int LzmaUncompress(unsigned char *dest, size_t *destLen,
const unsigned char *src, size_t *srcLen,
const unsigned char *props, size_t propsSize) {
ELzmaStatus status;
unsigned long v8;
v8 = __readfsqword(0x28u);
return LzmaDecode(dest, destLen, src, srcLen, props, propsSiz... | MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen,
const unsigned char *src, size_t *srcLen,
const unsigned char *props, size_t propsSize) {
ELzmaStatus status;
return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize,
... | LzmaUncompress | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
WRes ManualResetEvent_Create(CManualResetEvent *p, int initialSignaled) {
return Event_Create(p, 1, initialSignaled);
} | WRes ManualResetEvent_Create(CManualResetEvent *p, int initialSignaled) {
return Event_Create(p, TRUE, initialSignaled);
} | ManualResetEvent_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
WRes ManualResetEvent_CreateNotSignaled(CManualResetEvent *p) {
return ManualResetEvent_Create(p, 0);
} | WRes ManualResetEvent_CreateNotSignaled(CManualResetEvent *p) {
return ManualResetEvent_Create(p, 0);
} | ManualResetEvent_CreateNotSignaled | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 MatchFinderMt2_GetMatches(CMatchFinderMt *p, UInt32 *distances) {
UInt32 *v2;
UInt32 *v3;
UInt32 *v4;
UInt32 i;
UInt32 len;
UInt32 *btBuf;
v2 = &p->btBuf[p->btBufPos];
btBuf = v2 + 1;
len = *v2;
p->btBufPos += *v2 + 1;
--p->btNumAvailBytes;
for (i = 0; i < len; i += 2) {
*distances =... | UInt32 MatchFinderMt2_GetMatches(CMatchFinderMt *p, UInt32 *distances) {
const UInt32 *btBuf = p->btBuf + p->btBufPos;
UInt32 len = *btBuf++;
p->btBufPos += 1 + len;
p->btNumAvailBytes--;
{
UInt32 i;
for (i = 0; i < len; i += 2) {
*distances++ = *btBuf++;
*distances++ = *btBuf++;
}
}... | MatchFinderMt2_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_Construct(CMatchFinderMt *p) {
p->hashBuf = 0;
MtSync_Construct(&p->hashSync);
MtSync_Construct(&p->btSync);
} | void MatchFinderMt_Construct(CMatchFinderMt *p) {
p->hashBuf = 0;
MtSync_Construct(&p->hashSync);
MtSync_Construct(&p->btSync);
} | MatchFinderMt_Construct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize,
UInt32 keepAddBufferBefore, UInt32 matchMaxLen,
UInt32 keepAddBufferAfter, ISzAlloc *alloc) {
int __result__;
int __result___0;
CMatchFinder *mf;
mf = p->MatchFinder;
p->historySize = historyS... | SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize,
UInt32 keepAddBufferBefore, UInt32 matchMaxLen,
UInt32 keepAddBufferAfter, ISzAlloc *alloc) {
CMatchFinder *mf = p->MatchFinder;
p->historySize = historySize;
if (kMtBtBlockSize <= matchMaxLen * 4)... | MatchFinderMt_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_Destruct(CMatchFinderMt *p, ISzAlloc *alloc) {
MtSync_Destruct(&p->hashSync);
MtSync_Destruct(&p->btSync);
MatchFinderMt_FreeMem(p, alloc);
} | void MatchFinderMt_Destruct(CMatchFinderMt *p, ISzAlloc *alloc) {
MtSync_Destruct(&p->hashSync);
MtSync_Destruct(&p->btSync);
MatchFinderMt_FreeMem(p, alloc);
} | MatchFinderMt_Destruct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_FreeMem(CMatchFinderMt *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->hashBuf);
p->hashBuf = 0;
} | void MatchFinderMt_FreeMem(CMatchFinderMt *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->hashBuf);
p->hashBuf = 0;
} | MatchFinderMt_FreeMem | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
Byte MatchFinderMt_GetIndexByte(CMatchFinderMt *p, Int32 index) {
return p->pointerToCurPos[index];
} | Byte MatchFinderMt_GetIndexByte(CMatchFinderMt *p, Int32 index) {
return p->pointerToCurPos[index];
} | MatchFinderMt_GetIndexByte | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 MatchFinderMt_GetMatches(CMatchFinderMt *p, UInt32 *distances) {
UInt32 *v2;
UInt32 btNumAvailBytes;
_DWORD *v4;
_DWORD *v5;
UInt32 len;
const UInt32 *btBuf;
UInt32 *distances2;
v2 = &p->btBuf[p->btBufPos];
btBuf = v2 + 1;
len = *v2;
p->btBufPos += *v2 + 1;
if (len) {
--p->btNumAvail... | UInt32 MatchFinderMt_GetMatches(CMatchFinderMt *p, UInt32 *distances) {
const UInt32 *btBuf = p->btBuf + p->btBufPos;
UInt32 len = *btBuf++;
p->btBufPos += 1 + len;
if (len == 0) {
if (p->btNumAvailBytes-- >= 4)
len =
(UInt32)(p->MixMatchesFunc(p, p->lzPos - p->historySize, distances) -
... | MatchFinderMt_GetMatches | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_GetNextBlock_Bt(CMatchFinderMt *p) {
UInt32 *btBuf;
UInt32 btBufPos;
UInt32 *v3;
UInt32 v4;
MtSync_GetNextBlock(&p->btSync);
p->btBufPos = (((unsigned char)p->btSync.numProcessedBlocks - 1) & 0x3F)
<< 14;
p->btBufPosLimit = p->btBufPos;
btBuf = p->btBuf;
btBufPos = ... | void MatchFinderMt_GetNextBlock_Bt(CMatchFinderMt *p) {
UInt32 blockIndex;
MtSync_GetNextBlock(&p->btSync);
blockIndex = ((p->btSync.numProcessedBlocks - 1) & kMtBtNumBlocksMask);
p->btBufPosLimit = p->btBufPos = blockIndex * kMtBtBlockSize;
p->btBufPosLimit += p->btBuf[p->btBufPos++];
p->btNumAvailBytes = ... | MatchFinderMt_GetNextBlock_Bt | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_GetNextBlock_Hash(CMatchFinderMt *p) {
UInt32 *hashBuf;
UInt32 hashBufPos;
UInt32 *v3;
UInt32 v4;
MtSync_GetNextBlock(&p->hashSync);
p->hashBufPos = (((unsigned char)p->hashSync.numProcessedBlocks - 1) & 7)
<< 13;
p->hashBufPosLimit = p->hashBufPos;
hashBuf = p->has... | void MatchFinderMt_GetNextBlock_Hash(CMatchFinderMt *p) {
MtSync_GetNextBlock(&p->hashSync);
p->hashBufPosLimit = p->hashBufPos =
((p->hashSync.numProcessedBlocks - 1) & kMtHashNumBlocksMask) *
kMtHashBlockSize;
p->hashBufPosLimit += p->hashBuf[p->hashBufPos++];
p->hashNumAvail = p->hashBuf[p->hashB... | MatchFinderMt_GetNextBlock_Hash | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 MatchFinderMt_GetNumAvailableBytes(CMatchFinderMt *p) {
if (p->btBufPos == p->btBufPosLimit)
MatchFinderMt_GetNextBlock_Bt(p);
return p->btNumAvailBytes;
} | UInt32 MatchFinderMt_GetNumAvailableBytes(CMatchFinderMt *p) {
GET_NEXT_BLOCK_IF_REQUIRED;
return p->btNumAvailBytes;
} | MatchFinderMt_GetNumAvailableBytes | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
const Byte *MatchFinderMt_GetPointerToCurrentPos(CMatchFinderMt *p) {
return p->pointerToCurPos;
} | const Byte *MatchFinderMt_GetPointerToCurrentPos(CMatchFinderMt *p) {
return p->pointerToCurPos;
} | MatchFinderMt_GetPointerToCurrentPos | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_Init(CMatchFinderMt *p) {
CMatchFinder *mf;
mf = p->MatchFinder;
p->btBufPosLimit = 0;
p->btBufPos = p->btBufPosLimit;
p->hashBufPosLimit = 0;
p->hashBufPos = p->hashBufPosLimit;
MatchFinder_Init(mf);
p->pointerToCurPos = MatchFinder_GetPointerToCurrentPos(mf);
p->btNumAvailBytes =... | void MatchFinderMt_Init(CMatchFinderMt *p) {
CMatchFinder *mf = p->MatchFinder;
p->btBufPos = p->btBufPosLimit = 0;
p->hashBufPos = p->hashBufPosLimit = 0;
MatchFinder_Init(mf);
p->pointerToCurPos = MatchFinder_GetPointerToCurrentPos(mf);
p->btNumAvailBytes = 0;
p->lzPos = p->historySize + 1;
p->hash =... | MatchFinderMt_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_Normalize(CMatchFinderMt *p) {
MatchFinder_Normalize3(p->lzPos - p->historySize - 1, p->hash,
p->fixedHashSize);
p->lzPos = p->historySize + 1;
} | void MatchFinderMt_Normalize(CMatchFinderMt *p) {
MatchFinder_Normalize3(p->lzPos - p->historySize - 1, p->hash,
p->fixedHashSize);
p->lzPos = p->historySize + 1;
} | MatchFinderMt_Normalize | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinderMt_ReleaseStream(CMatchFinderMt *p) {
MtSync_StopWriting(&p->btSync);
} | void MatchFinderMt_ReleaseStream(CMatchFinderMt *p) {
MtSync_StopWriting(&p->btSync);
} | MatchFinderMt_ReleaseStream | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_CheckAndMoveAndRead(CMatchFinder *p) {
if (MatchFinder_NeedMove(p))
MatchFinder_MoveBlock(p);
MatchFinder_ReadBlock(p);
} | static void MatchFinder_CheckAndMoveAndRead(CMatchFinder *p) {
if (MatchFinder_NeedMove(p))
MatchFinder_MoveBlock(p);
MatchFinder_ReadBlock(p);
} | MatchFinder_CheckAndMoveAndRead | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_CheckLimits(CMatchFinder *p) {
if (p->pos == -1)
MatchFinder_Normalize(p);
if (!p->streamEndWasReached && p->keepSizeAfter == p->streamPos - p->pos)
MatchFinder_CheckAndMoveAndRead(p);
if (p->cyclicBufferPos == p->cyclicBufferSize)
p->cyclicBufferPos = 0;
MatchFinder_SetLimits(p);
} | static void MatchFinder_CheckLimits(CMatchFinder *p) {
if (p->pos == kMaxValForNormalize)
MatchFinder_Normalize(p);
if (!p->streamEndWasReached && p->keepSizeAfter == p->streamPos - p->pos)
MatchFinder_CheckAndMoveAndRead(p);
if (p->cyclicBufferPos == p->cyclicBufferSize)
p->cyclicBufferPos = 0;
Mat... | MatchFinder_CheckLimits | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_Construct(CMatchFinder *p) {
UInt32 i;
UInt32 r;
int j;
p->bufferBase = 0;
p->directInput = 0;
p->hash = 0;
MatchFinder_SetDefaultSettings(p);
for (i = 0; i <= 0xFF; ++i) {
r = i;
for (j = 0; j <= 7; ++j)
r = (r >> 1) ^ -(r & 1) & 0xEDB88320;
p->crc[i] = r;
}
} | void MatchFinder_Construct(CMatchFinder *p) {
UInt32 i;
p->bufferBase = 0;
p->directInput = 0;
p->hash = 0;
MatchFinder_SetDefaultSettings(p);
for (i = 0; i < 256; i++) {
UInt32 r = i;
int j;
for (j = 0; j < 8; j++)
r = (r >> 1) ^ (kCrcPoly & ~((r & 1) - 1));
p->crc[i] = r;
}
} | MatchFinder_Construct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int MatchFinder_Create(CMatchFinder *p, UInt32 historySize,
UInt32 keepAddBufferBefore, UInt32 matchMaxLen,
UInt32 keepAddBufferAfter, ISzAlloc *alloc) {
UInt32 v6;
UInt32 sizeReserv;
unsigned int hs;
UInt32 hsb;
UInt32 hsa;
UInt32 hsc;
UInt32 newCyclicBufferS... | int MatchFinder_Create(CMatchFinder *p, UInt32 historySize,
UInt32 keepAddBufferBefore, UInt32 matchMaxLen,
UInt32 keepAddBufferAfter, ISzAlloc *alloc) {
UInt32 sizeReserv;
if (historySize > kMaxHistorySize) {
MatchFinder_Free(p, alloc);
return 0;
}
sizeRese... | MatchFinder_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_CreateVTable(CMatchFinder *p, IMatchFinder *vTable) {
vTable->Init = (Mf_Init_Func)MatchFinder_Init;
vTable->GetIndexByte = (Mf_GetIndexByte_Func)MatchFinder_GetIndexByte;
vTable->GetNumAvailableBytes =
(Mf_GetNumAvailableBytes_Func)MatchFinder_GetNumAvailableBytes;
vTable->GetPointerToCu... | void MatchFinder_CreateVTable(CMatchFinder *p, IMatchFinder *vTable) {
vTable->Init = (Mf_Init_Func)MatchFinder_Init;
vTable->GetIndexByte = (Mf_GetIndexByte_Func)MatchFinder_GetIndexByte;
vTable->GetNumAvailableBytes =
(Mf_GetNumAvailableBytes_Func)MatchFinder_GetNumAvailableBytes;
vTable->GetPointerToCu... | MatchFinder_CreateVTable | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_Free(CMatchFinder *p, ISzAlloc *alloc) {
MatchFinder_FreeThisClassMemory(p, alloc);
LzInWindow_Free(p, alloc);
} | void MatchFinder_Free(CMatchFinder *p, ISzAlloc *alloc) {
MatchFinder_FreeThisClassMemory(p, alloc);
LzInWindow_Free(p, alloc);
} | MatchFinder_Free | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_FreeThisClassMemory(CMatchFinder *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->hash);
p->hash = 0;
} | static void MatchFinder_FreeThisClassMemory(CMatchFinder *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->hash);
p->hash = 0;
} | MatchFinder_FreeThisClassMemory | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 index) {
return p->buffer[index];
} | Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 index) {
return p->buffer[index];
} | MatchFinder_GetIndexByte | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) {
return p->streamPos - p->pos;
} | UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) {
return p->streamPos - p->pos;
} | MatchFinder_GetNumAvailableBytes | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; } | Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; } | MatchFinder_GetPointerToCurrentPos | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 MatchFinder_GetSubValue(CMatchFinder *p) {
return (p->pos - p->historySize - 1) & 0xFFFFFC00;
} | static UInt32 MatchFinder_GetSubValue(CMatchFinder *p) {
return (p->pos - p->historySize - 1) & kNormalizeMask;
} | MatchFinder_GetSubValue | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_Init(CMatchFinder *p) {
UInt32 i;
for (i = 0; i < p->hashSizeSum; ++i)
p->hash[i] = 0;
p->cyclicBufferPos = 0;
p->buffer = p->bufferBase;
p->streamPos = p->cyclicBufferSize;
p->pos = p->streamPos;
p->result = 0;
p->streamEndWasReached = 0;
MatchFinder_ReadBlock(p);
MatchFinder_... | void MatchFinder_Init(CMatchFinder *p) {
UInt32 i;
for (i = 0; i < p->hashSizeSum; i++)
p->hash[i] = kEmptyHashValue;
p->cyclicBufferPos = 0;
p->buffer = p->bufferBase;
p->pos = p->streamPos = p->cyclicBufferSize;
p->result = SZ_OK;
p->streamEndWasReached = 0;
MatchFinder_ReadBlock(p);
MatchFinder... | MatchFinder_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_MoveBlock(CMatchFinder *p) {
memmove(p->bufferBase, &p->buffer[-p->keepSizeBefore],
p->streamPos - p->pos + p->keepSizeBefore);
p->buffer = &p->bufferBase[p->keepSizeBefore];
} | void MatchFinder_MoveBlock(CMatchFinder *p) {
memmove(p->bufferBase, p->buffer - p->keepSizeBefore,
(size_t)(p->streamPos - p->pos + p->keepSizeBefore));
p->buffer = p->bufferBase + p->keepSizeBefore;
} | MatchFinder_MoveBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_MovePos(CMatchFinder *p) {
++p->cyclicBufferPos;
++p->buffer;
if (++p->pos == p->posLimit)
MatchFinder_CheckLimits(p);
} | static void MatchFinder_MovePos(CMatchFinder *p) { MOVE_POS; } | MatchFinder_MovePos | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int MatchFinder_NeedMove(CMatchFinder *p) {
return !p->directInput &&
(Byte *)(&p->bufferBase[(unsigned long)p->blockSize] - p->buffer) <=
(Byte *)p->keepSizeAfter;
} | int MatchFinder_NeedMove(CMatchFinder *p) {
if (p->directInput)
return 0;
return ((size_t)(p->bufferBase + p->blockSize - p->buffer) <=
p->keepSizeAfter);
} | MatchFinder_NeedMove | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_Normalize(CMatchFinder *p) {
UInt32 subValue;
subValue = MatchFinder_GetSubValue(p);
MatchFinder_Normalize3(subValue, p->hash, p->numSons + p->hashSizeSum);
MatchFinder_ReduceOffsets(p, subValue);
} | static void MatchFinder_Normalize(CMatchFinder *p) {
UInt32 subValue = MatchFinder_GetSubValue(p);
MatchFinder_Normalize3(subValue, p->hash, p->hashSizeSum + p->numSons);
MatchFinder_ReduceOffsets(p, subValue);
} | MatchFinder_Normalize | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, UInt32 numItems) {
UInt32 i;
UInt32 value;
UInt32 valuea;
for (i = 0; i < numItems; ++i) {
value = items[i];
if (value > subValue)
valuea = value - subValue;
else
valuea = 0;
items[i] = valuea;
}
} | void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, UInt32 numItems) {
UInt32 i;
for (i = 0; i < numItems; i++) {
UInt32 value = items[i];
if (value <= subValue)
value = kEmptyHashValue;
else
value -= subValue;
items[i] = value;
}
} | MatchFinder_Normalize3 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_ReadBlock(CMatchFinder *p) {
UInt32 curSize;
size_t size;
Byte *dest;
unsigned long v4;
v4 = __readfsqword(0x28u);
if (!p->streamEndWasReached && !p->result) {
if (p->directInput) {
curSize = ~p->streamPos;
if (curSize > p->directInputRem)
curSize = p->directInputRe... | static void MatchFinder_ReadBlock(CMatchFinder *p) {
if (p->streamEndWasReached || p->result != SZ_OK)
return;
if (p->directInput) {
UInt32 curSize = 0xFFFFFFFF - p->streamPos;
if (curSize > p->directInputRem)
curSize = (UInt32)p->directInputRem;
p->directInputRem -= curSize;
p->streamPos ... | MatchFinder_ReadBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_ReadIfRequired(CMatchFinder *p) {
if (!p->streamEndWasReached && p->keepSizeAfter >= p->streamPos - p->pos)
MatchFinder_ReadBlock(p);
} | void MatchFinder_ReadIfRequired(CMatchFinder *p) {
if (p->streamEndWasReached)
return;
if (p->keepSizeAfter >= p->streamPos - p->pos)
MatchFinder_ReadBlock(p);
} | MatchFinder_ReadIfRequired | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) {
p->posLimit -= subValue;
p->pos -= subValue;
p->streamPos -= subValue;
} | void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) {
p->posLimit -= subValue;
p->pos -= subValue;
p->streamPos -= subValue;
} | MatchFinder_ReduceOffsets | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_SetDefaultSettings(CMatchFinder *p) {
p->cutValue = 32;
p->btMode = 1;
p->numHashBytes = 4;
p->bigHash = 0;
} | static void MatchFinder_SetDefaultSettings(CMatchFinder *p) {
p->cutValue = 32;
p->btMode = 1;
p->numHashBytes = 4;
p->bigHash = 0;
} | MatchFinder_SetDefaultSettings | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MatchFinder_SetLimits(CMatchFinder *p) {
UInt32 limit;
UInt32 limit2;
UInt32 limit2a;
UInt32 lenLimit;
limit = ~p->pos;
if (p->cyclicBufferSize - p->cyclicBufferPos < limit)
limit = p->cyclicBufferSize - p->cyclicBufferPos;
limit2 = p->streamPos - p->pos;
if (limit2 > p->keepSizeAfter)
lim... | static void MatchFinder_SetLimits(CMatchFinder *p) {
UInt32 limit = kMaxValForNormalize - p->pos;
UInt32 limit2 = p->cyclicBufferSize - p->cyclicBufferPos;
if (limit2 < limit)
limit = limit2;
limit2 = p->streamPos - p->pos;
if (limit2 <= p->keepSizeAfter) {
if (limit2 > 0)
limit2 = 1;
} else
... | MatchFinder_SetLimits | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 *MixMatches2(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) {
UInt32 *distancesa;
UInt32 lzPos;
UInt32 curMatch2;
UInt32 *hash;
const Byte *cur;
distancesa = distances;
hash = p->hash;
cur = p->pointerToCurPos;
lzPos = p->lzPos;
curMatch2 = hash[((unsigned short)p->crc[*cur] ^ cur... | UInt32 *MixMatches2(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) {
UInt32 hash2Value, curMatch2;
UInt32 *hash = p->hash;
const Byte *cur = p->pointerToCurPos;
UInt32 lzPos = p->lzPos;
MT_HASH2_CALC
curMatch2 = hash[hash2Value];
hash[hash2Value] = lzPos;
if (curMatch2 >= matchMinPos)
i... | MixMatches2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 *MixMatches3(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) {
UInt32 *v3;
_DWORD *v5;
UInt32 *distancesa;
UInt32 lzPos;
UInt32 temp;
UInt32 hash3Value;
UInt32 curMatch2;
UInt32 curMatch3;
UInt32 *hash;
const Byte *cur;
distancesa = distances;
hash = p->hash;
cur = p->pointer... | UInt32 *MixMatches3(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) {
UInt32 hash2Value, hash3Value, curMatch2, curMatch3;
UInt32 *hash = p->hash;
const Byte *cur = p->pointerToCurPos;
UInt32 lzPos = p->lzPos;
MT_HASH3_CALC
curMatch2 = hash[hash2Value];
curMatch3 = hash[kFix3HashSize + hash3Val... | MixMatches3 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MovePos(CLzmaEnc *p, UInt32 num) {
if (num) {
p->additionalOffset += num;
p->matchFinder.Skip(p->matchFinderObj, num);
}
} | static void MovePos(CLzmaEnc *p, UInt32 num) {
#ifdef SHOW_STAT
ttt += num;
printf("\n MovePos %d", num);
#endif
if (num != 0) {
p->additionalOffset += num;
p->matchFinder.Skip(p->matchFinderObj, num);
}
} | MovePos | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MtSync_Construct(CMtSync *p) {
p->wasCreated = 0;
p->csWasInitialized = 0;
p->csWasEntered = 0;
p->thread._created = 0;
p->canStart._created = 0;
p->wasStarted._created = 0;
p->wasStopped._created = 0;
p->freeSemaphore._created = 0;
p->filledSemaphore._created = 0;
} | void MtSync_Construct(CMtSync *p) {
p->wasCreated = False;
p->csWasInitialized = False;
p->csWasEntered = False;
Thread_Construct(&p->thread);
Event_Construct(&p->canStart);
Event_Construct(&p->wasStarted);
Event_Construct(&p->wasStopped);
Semaphore_Construct(&p->freeSemaphore);
Semaphore_Construct(&p... | MtSync_Construct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes MtSync_Create(CMtSync *p, unsigned int (*startAddress)(void *), void *obj,
UInt32 numBlocks) {
SRes res;
res = MtSync_Create2(p, startAddress, obj, numBlocks);
if (res)
MtSync_Destruct(p);
return res;
} | static SRes MtSync_Create(CMtSync *p,
unsigned(MY_STD_CALL *startAddress)(void *),
void *obj, UInt32 numBlocks) {
SRes res = MtSync_Create2(p, startAddress, obj, numBlocks);
if (res != SZ_OK)
MtSync_Destruct(p);
return res;
} | MtSync_Create | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
SRes MtSync_Create2(CMtSync *p, unsigned int (*startAddress)(void *), void *obj,
UInt32 numBlocks) {
if (p->wasCreated)
return 0;
if (CriticalSection_Init(&p->cs))
return 12;
p->csWasInitialized = 1;
if (AutoResetEvent_CreateNotSignaled(&p->canStart))
return 12;
if (AutoResetEv... | static SRes MtSync_Create2(CMtSync *p,
unsigned(MY_STD_CALL *startAddress)(void *),
void *obj, UInt32 numBlocks) {
if (p->wasCreated)
return SZ_OK;
RINOK_THREAD(CriticalSection_Init(&p->cs));
p->csWasInitialized = True;
RINOK_THREAD(AutoResetEvent_Crea... | MtSync_Create2 | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MtSync_Destruct(CMtSync *p) {
if (p->thread._created) {
MtSync_StopWriting(p);
p->exit = 1;
if (p->needStart)
Event_Set(&p->canStart);
Thread_Wait(&p->thread);
Thread_Close(&p->thread);
}
if (p->csWasInitialized) {
pthread_mutex_destroy(&p->cs._mutex);
p->csWasInitialized = ... | void MtSync_Destruct(CMtSync *p) {
if (Thread_WasCreated(&p->thread)) {
MtSync_StopWriting(p);
p->exit = True;
if (p->needStart)
Event_Set(&p->canStart);
Thread_Wait(&p->thread);
Thread_Close(&p->thread);
}
if (p->csWasInitialized) {
CriticalSection_Delete(&p->cs);
p->csWasInitia... | MtSync_Destruct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MtSync_GetNextBlock(CMtSync *p) {
if (p->needStart) {
p->numProcessedBlocks = 1;
p->needStart = 0;
p->stopWriting = 0;
p->exit = 0;
Event_Reset(&p->wasStarted);
Event_Reset(&p->wasStopped);
Event_Set(&p->canStart);
Event_Wait(&p->wasStarted);
} else {
pthread_mutex_unlock(&p... | void MtSync_GetNextBlock(CMtSync *p) {
if (p->needStart) {
p->numProcessedBlocks = 1;
p->needStart = False;
p->stopWriting = False;
p->exit = False;
Event_Reset(&p->wasStarted);
Event_Reset(&p->wasStopped);
Event_Set(&p->canStart);
Event_Wait(&p->wasStarted);
} else {
CriticalSe... | MtSync_GetNextBlock | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MtSync_Init(CMtSync *p) { p->needStart = 1; } | void MtSync_Init(CMtSync *p) { p->needStart = True; } | MtSync_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MtSync_StopWriting(CMtSync *p) {
UInt32 v1;
UInt32 myNumBlocks;
myNumBlocks = p->numProcessedBlocks;
if (p->thread._created && !p->needStart) {
p->stopWriting = 1;
if (p->csWasEntered) {
pthread_mutex_unlock(&p->cs._mutex);
p->csWasEntered = 0;
}
Semaphore_ReleaseN(&p->freeSema... | void MtSync_StopWriting(CMtSync *p) {
UInt32 myNumBlocks = p->numProcessedBlocks;
if (!Thread_WasCreated(&p->thread) || p->needStart)
return;
p->stopWriting = True;
if (p->csWasEntered) {
CriticalSection_Leave(&p->cs);
p->csWasEntered = False;
}
Semaphore_Release1(&p->freeSemaphore);
Event_Wa... | MtSync_StopWriting | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void *MyAlloc(size_t size) {
if (size)
return malloc(size);
else
return 0;
} | void *MyAlloc(size_t size) {
if (size == 0)
return 0;
#ifdef _SZ_ALLOC_DEBUG
{
void *p = malloc(size);
fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size,
g_allocCount++, (unsigned)p);
return p;
}
#else
return malloc(size);
#endif
} | MyAlloc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void MyFree(void *address) { free(address); } | void MyFree(void *address) {
#ifdef _SZ_ALLOC_DEBUG
if (address != 0)
fprintf(stderr, "\nFree; count = %10d, addr = %8X", --g_allocCount,
(unsigned)address);
#endif
free(address);
} | MyFree | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
size_t MyWrite(void *pp, const void *data, size_t size) {
size_t sizea;
sizea = size;
if (size > *((_QWORD *)pp + 2)) {
sizea = *((_QWORD *)pp + 2);
*((_DWORD *)pp + 6) = 1;
}
memcpy(*((void **)pp + 1), data, sizea);
*((_QWORD *)pp + 2) -= sizea;
*((_QWORD *)pp + 1) += sizea;
return sizea;
} | static size_t MyWrite(void *pp, const void *data, size_t size) {
CSeqOutStreamBuf *p = (CSeqOutStreamBuf *)pp;
if (p->rem < size) {
size = p->rem;
p->overflow = True;
}
memcpy(p->data, data, size);
p->rem -= size;
p->data += size;
return size;
} | MyWrite | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int RangeEnc_Alloc(CRangeEnc *p, ISzAlloc *alloc) {
if (!p->bufBase) {
p->bufBase = (Byte *)alloc->Alloc(alloc, 0x10000);
if (!p->bufBase)
return 0;
p->bufLim = p->bufBase + 0x10000;
}
return 1;
} | static int RangeEnc_Alloc(CRangeEnc *p, ISzAlloc *alloc) {
if (p->bufBase == 0) {
p->bufBase = (Byte *)alloc->Alloc(alloc, RC_BUF_SIZE);
if (p->bufBase == 0)
return 0;
p->bufLim = p->bufBase + RC_BUF_SIZE;
}
return 1;
} | RangeEnc_Alloc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_Construct(CRangeEnc *p) {
p->outStream = 0;
p->bufBase = 0;
} | static void RangeEnc_Construct(CRangeEnc *p) {
p->outStream = 0;
p->bufBase = 0;
} | RangeEnc_Construct | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_EncodeBit(CRangeEnc *p, UInt16 *prob, UInt32 symbol) {
UInt32 ttt;
UInt32 ttta;
UInt32 newBound;
ttt = *prob;
newBound = (p->range >> 11) * ttt;
if (symbol) {
p->low += newBound;
p->range -= newBound;
ttta = ttt - (ttt >> 5);
} else {
p->range = newBound;
ttta = ((2048 -... | static void RangeEnc_EncodeBit(CRangeEnc *p, CLzmaProb *prob, UInt32 symbol) {
UInt32 ttt = *prob;
UInt32 newBound = (p->range >> kNumBitModelTotalBits) * ttt;
if (symbol == 0) {
p->range = newBound;
ttt += (kBitModelTotal - ttt) >> kNumMoveBits;
} else {
p->low += newBound;
p->range -= newBound... | RangeEnc_EncodeBit | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_EncodeDirectBits(CRangeEnc *p, UInt32 value, int numBits) {
do {
p->range >>= 1;
p->low += -((value >> --numBits) & 1) & p->range;
if (p->range <= 0xFFFFFF) {
p->range <<= 8;
RangeEnc_ShiftLow(p);
}
} while (numBits);
} | static void RangeEnc_EncodeDirectBits(CRangeEnc *p, UInt32 value, int numBits) {
do {
p->range >>= 1;
p->low += p->range & (0 - ((value >> --numBits) & 1));
if (p->range < kTopValue) {
p->range <<= 8;
RangeEnc_ShiftLow(p);
}
} while (numBits != 0);
} | RangeEnc_EncodeDirectBits | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_FlushStream(CRangeEnc *p) {
signed long num;
if (!p->res) {
num = p->buf - p->bufBase;
if (num != p->outStream->Write(p->outStream, p->bufBase, num))
p->res = 9;
p->processed += num;
p->buf = p->bufBase;
}
} | static void RangeEnc_FlushStream(CRangeEnc *p) {
size_t num;
if (p->res != SZ_OK)
return;
num = p->buf - p->bufBase;
if (num != p->outStream->Write(p->outStream, p->bufBase, num))
p->res = SZ_ERROR_WRITE;
p->processed += num;
p->buf = p->bufBase;
} | RangeEnc_FlushStream | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_Free(CRangeEnc *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->bufBase);
p->bufBase = 0;
} | static void RangeEnc_Free(CRangeEnc *p, ISzAlloc *alloc) {
alloc->Free(alloc, p->bufBase);
p->bufBase = 0;
} | RangeEnc_Free | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_Init(CRangeEnc *p) {
p->low = 0;
p->range = -1;
p->cacheSize = 1;
p->cache = 0;
p->buf = p->bufBase;
p->processed = 0;
p->res = 0;
} | static void RangeEnc_Init(CRangeEnc *p) {
p->low = 0;
p->range = 0xFFFFFFFF;
p->cacheSize = 1;
p->cache = 0;
p->buf = p->bufBase;
p->processed = 0;
p->res = SZ_OK;
} | RangeEnc_Init | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RangeEnc_ShiftLow(CRangeEnc *p) {
Byte *buf;
Byte temp;
if ((unsigned int)p->low <= 0xFEFFFFFF || HIDWORD(p->low)) {
temp = p->cache;
do {
buf = p->buf;
*buf = HIDWORD(p->low) + temp;
p->buf = buf + 1;
if (buf + 1 == p->bufLim)
RangeEnc_FlushStream(p);
temp = -1... | static void MY_FAST_CALL RangeEnc_ShiftLow(CRangeEnc *p) {
if ((UInt32)p->low < (UInt32)0xFF000000 || (int)(p->low >> 32) != 0) {
Byte temp = p->cache;
do {
Byte *buf = p->buf;
*buf++ = (Byte)(temp + (Byte)(p->low >> 32));
p->buf = buf;
if (buf == p->bufLim)
RangeEnc_FlushStrea... | RangeEnc_ShiftLow | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RcTree_Encode(CRangeEnc *rc, UInt16 *probs, int numBitLevels,
UInt32 symbol) {
UInt32 m;
m = 1;
while (numBitLevels) {
RangeEnc_EncodeBit(rc, &probs[m], (symbol >> --numBitLevels) & 1);
m = (symbol >> numBitLevels) & 1 | (2 * m);
}
} | static void RcTree_Encode(CRangeEnc *rc, CLzmaProb *probs, int numBitLevels,
UInt32 symbol) {
UInt32 m = 1;
int i;
for (i = numBitLevels; i != 0;) {
UInt32 bit;
i--;
bit = (symbol >> i) & 1;
RangeEnc_EncodeBit(rc, probs + m, bit);
m = (m << 1) | bit;
}
} | RcTree_Encode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 RcTree_GetPrice(const UInt16 *probs, int numBitLevels, UInt32 symbol,
UInt32 *ProbPrices) {
UInt32 symbola;
UInt32 price;
price = 0;
for (symbola = (1 << numBitLevels) | symbol; symbola != 1; symbola >>= 1)
price +=
ProbPrices[(int)(probs[symbola >> 1] ^ -(symbola & 1)... | static UInt32 RcTree_GetPrice(const CLzmaProb *probs, int numBitLevels,
UInt32 symbol, UInt32 *ProbPrices) {
UInt32 price = 0;
symbol |= (1 << numBitLevels);
while (symbol != 1) {
price += GET_PRICEa(probs[symbol >> 1], symbol & 1);
symbol >>= 1;
}
return price;
} | RcTree_GetPrice | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void RcTree_ReverseEncode(CRangeEnc *rc, UInt16 *probs, int numBitLevels,
UInt32 symbol) {
UInt32 m;
int i;
m = 1;
for (i = 0; i < numBitLevels; ++i) {
RangeEnc_EncodeBit(rc, &probs[m], symbol & 1);
m = symbol & 1 | (2 * m);
symbol >>= 1;
}
} | static void RcTree_ReverseEncode(CRangeEnc *rc, CLzmaProb *probs,
int numBitLevels, UInt32 symbol) {
UInt32 m = 1;
int i;
for (i = 0; i < numBitLevels; i++) {
UInt32 bit = symbol & 1;
RangeEnc_EncodeBit(rc, probs + m, bit);
m = (m << 1) | bit;
symbol >>= 1;
}
} | RcTree_ReverseEncode | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 RcTree_ReverseGetPrice(const UInt16 *probs, int numBitLevels,
UInt32 symbol, UInt32 *ProbPrices) {
UInt32 price;
UInt32 m;
UInt32 bit;
price = 0;
m = 1;
while (numBitLevels) {
bit = symbol & 1;
symbol >>= 1;
price += ProbPrices[(int)(probs[m] ^ -bit & 0x7FF)... | static UInt32 RcTree_ReverseGetPrice(const CLzmaProb *probs, int numBitLevels,
UInt32 symbol, UInt32 *ProbPrices) {
UInt32 price = 0;
UInt32 m = 1;
int i;
for (i = numBitLevels; i != 0; i--) {
UInt32 bit = symbol & 1;
symbol >>= 1;
price += GET_PRICEa(probs[m], b... | RcTree_ReverseGetPrice | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
UInt32 ReadMatchDistances(CLzmaEnc *p, UInt32 *numDistancePairsRes) {
UInt32 lenRes;
UInt32 numAvail;
UInt32 numPairs;
const Byte *pby;
lenRes = 0;
p->numAvail = p->matchFinder.GetNumAvailableBytes(p->matchFinderObj);
numPairs = p->matchFinder.GetMatches(p->matchFinderObj, p->matches);
if (numPairs) {
... | static UInt32 ReadMatchDistances(CLzmaEnc *p, UInt32 *numDistancePairsRes) {
UInt32 lenRes = 0, numPairs;
p->numAvail = p->matchFinder.GetNumAvailableBytes(p->matchFinderObj);
numPairs = p->matchFinder.GetMatches(p->matchFinderObj, p->matches);
#ifdef SHOW_STAT
printf("\n i = %d numPairs = %d ", ttt, numPair... | ReadMatchDistances | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void SkipMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son, UInt32 _cyclicBufferPos,
UInt32 _cyclicBufferSize, UInt32 cutValue) {
UInt32 v8;
UInt32 v9;
UInt32 v10;
UInt32 len0;
UInt32 len1;
UInt32 len;
UInt32 delta;
CLzRef *p... | static void SkipMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos,
const Byte *cur, CLzRef *son,
UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize,
UInt32 cutValue) {
CLzRef *ptr0 = son + (_cyclicBufferPos << 1) + 1;
CLzRef *... | SkipMatchesSpec | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void *SzAlloc(void *p, size_t size) { return MyAlloc(size); } | static void *SzAlloc(void __attribute__((unused)) * p, size_t size) {
return MyAlloc(size);
} | SzAlloc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void SzFree(void *p, void *address) { MyFree(address); } | static void SzFree(void __attribute__((unused)) * p, void *address) {
MyFree(address);
} | SzFree | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void WriteEndMarker(CLzmaEnc *p, UInt32 posState) {
RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1u);
RangeEnc_EncodeBit(&p->rc, &p->isRep[p->state], 0);
p->state = kMatchNextStates[p->state];
LenEnc_Encode2((CLenPriceEnc *)((char *)&loc_348B4 + (_QWORD)p),
(CRangeEnc *)((char *)... | static void WriteEndMarker(CLzmaEnc *p, UInt32 posState) {
UInt32 len;
RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1);
RangeEnc_EncodeBit(&p->rc, &p->isRep[p->state], 0);
p->state = kMatchNextStates[p->state];
len = LZMA_MATCH_LEN_MIN;
LenEnc_Encode2(&p->lenEnc, &p->rc, len - LZMA_MATCH_LEN_... | WriteEndMarker | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void add_to_rulist(rzip_control *control, stream_info *sinfo) {
runzip_node *node;
node = (runzip_node *)calloc(0x18u, 1u);
if (!node)
failure_3(control, 0x746u, "stream.c", "add_to_rulist",
"Failed to calloc struct node in add_rulist\n");
node->sinfo = sinfo;
node->pthreads = control->pthr... | static void add_to_rulist(rzip_control *control, struct stream_info *sinfo) {
struct runzip_node *node = calloc(sizeof(struct runzip_node), 1);
if (unlikely(!node))
failure("Failed to calloc struct node in add_rulist\n");
node->sinfo = sinfo;
node->pthreads = control->pthreads;
lock_mutex(control, &cont... | add_to_rulist | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void add_to_sslist(rzip_control *control, rzip_state *st) {
node *node;
node = (node *)calloc(0x10u, 1u);
if (!node)
failure_1(control, 0x370u, "rzip.c", "add_to_sslist",
"Failed to calloc struct node in add_to_sslist\n");
node->data = st->ss;
node->prev = st->sslist;
st->head = node;
} | static void add_to_sslist(rzip_control *control, struct rzip_state *st) {
struct node *node = calloc(sizeof(struct node), 1);
if (unlikely(!node))
failure("Failed to calloc struct node in add_to_sslist\n");
node->data = st->ss;
node->prev = st->sslist;
st->head = node;
} | add_to_sslist | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int aes_crypt_cbc(aes_context *ctx, int mode, long length, unsigned char *iv,
const unsigned char *input, unsigned char *output) {
long v7;
long lengtha;
int i;
int ia;
long temp;
long temp_8;
lengtha = length;
if ((length & 0xF) != 0)
return -2064;
if (mode) {
while (length... | int aes_crypt_cbc(aes_context *ctx, int mode, long long int length,
unsigned char iv[16], const unsigned char *input,
unsigned char *output) {
int i;
unsigned char temp[16];
if (length % 16)
return (POLARSSL_ERR_AES_INVALID_INPUT_LENGTH);
#if defined(POLARSSL_PADLOCK_C) &... | aes_crypt_cbc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int aes_crypt_ecb(aes_context *ctx, int mode, const unsigned char *input,
unsigned char *output) {
unsigned long *v4;
_QWORD *v5;
_QWORD *v6;
int i;
int ia;
unsigned long *RK;
unsigned long X0;
unsigned long X0a;
unsigned long X1;
unsigned long X1a;
unsigned long X2;
unsigned l... | int aes_crypt_ecb(aes_context *ctx, int mode, const unsigned char input[16],
unsigned char output[16]) {
int i;
unsigned long *RK, X0, X1, X2, X3, Y0, Y1, Y2, Y3;
#if defined(POLARSSL_PADLOCK_C) && defined(POLARSSL_HAVE_X86)
if (padlock_supports(PADLOCK_ACE)) {
if (padlock_xcryptecb(ctx, mo... | aes_crypt_ecb | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void aes_gen_tables() {
char v0;
char v1;
char v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
int i;
int ia;
int ib;
int ic;
int x;
int xa;
int xc;
int xd;
int xe;
unsigned char xb;
int y;
int ya;
int yb;
int pow[256];
int log[258];
unsigned long v24;
v24 ... | static void aes_gen_tables(void) {
int i, x, y, z;
int pow[256];
int log[256];
for (i = 0, x = 1; i < 256; i++) {
pow[i] = x;
log[x] = i;
x = (x ^ XTIME(x)) & 0xFF;
}
for (i = 0, x = 1; i < 10; i++) {
RCON[i] = (unsigned long)x;
x = XTIME(x) & 0xFF;
}
FSb[0x00] = 0x63;
RSb[0x63]... | aes_gen_tables | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int aes_setkey_dec(aes_context *ctx, const unsigned char *key, int keysize) {
unsigned long *v4;
unsigned long *v5;
int i;
int j;
int ret;
unsigned long *RK;
unsigned long *SK;
aes_context cty;
unsigned long v12;
v12 = __readfsqword(0x28u);
if (keysize == 256) {
ctx->nr = 14;
} else {
i... | int aes_setkey_dec(aes_context *ctx, const unsigned char *key, int keysize) {
int i, j;
aes_context cty;
unsigned long *RK;
unsigned long *SK;
int ret;
switch (keysize) {
case 128:
ctx->nr = 10;
break;
case 192:
ctx->nr = 12;
break;
case 256:
ctx->nr = 14;
break;
default:
... | aes_setkey_dec | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int aes_setkey_enc(aes_context *ctx, const unsigned char *key, int keysize) {
int nr;
int i;
int ia;
int ib;
int ic;
unsigned long *RK;
if (!aes_init_done) {
aes_gen_tables();
aes_init_done = 1;
}
if (keysize == 256) {
ctx->nr = 14;
} else {
if (keysize > 256)
return -2048;
... | int aes_setkey_enc(aes_context *ctx, const unsigned char *key, int keysize) {
int i;
unsigned long *RK;
#if !defined(POLARSSL_AES_ROM_TABLES)
if (aes_init_done == 0) {
aes_gen_tables();
aes_init_done = 1;
}
#endif
switch (keysize) {
case 128:
ctx->nr = 10;
break;
case 192:
ctx->nr = ... | aes_setkey_enc | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int bzip2_compress_buf(rzip_control *control, compress_thread *cthread) {
u32 dlen;
int bzip2_ret;
unsigned char *c_buf;
unsigned long v6;
v6 = __readfsqword(0x28u);
dlen = round_up_page(control, cthread->s_len);
if (!lz4_compresses(control, cthread->s_buf, cthread->s_len))
return 0;
c_buf = (unsig... | static int bzip2_compress_buf(rzip_control *control,
struct compress_thread *cthread) {
u32 dlen = round_up_page(control, cthread->s_len);
int bzip2_ret;
uchar *c_buf;
if (!lz4_compresses(control, cthread->s_buf, cthread->s_len))
return 0;
c_buf = malloc(dlen);
if (!c_buf... | bzip2_compress_buf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int bzip2_decompress_buf(rzip_control *control, uncomp_thread *ucthread) {
size_t v2;
u32 dlen;
int ret;
int bzerr;
unsigned char *c_buf;
unsigned long v8;
v8 = __readfsqword(0x28u);
dlen = ucthread->u_len;
ret = 0;
c_buf = ucthread->s_buf;
v2 = round_up_page(control, dlen);
ucthread->s_buf = (... | static int bzip2_decompress_buf(rzip_control *control __UNUSED__,
struct uncomp_thread *ucthread) {
u32 dlen = ucthread->u_len;
int ret = 0, bzerr;
uchar *c_buf;
c_buf = ucthread->s_buf;
ucthread->s_buf = malloc(round_up_page(control, dlen));
if (unlikely(!ucthread->s_buf)) ... | bzip2_decompress_buf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void cksum_update(rzip_control *control) {
pthread_t thread[2];
thread[1] = __readfsqword(0x28u);
create_pthread(control, thread, 0, (void *(*)(void *))cksumthread, control);
} | static inline void cksum_update(rzip_control *control) {
pthread_t thread;
create_pthread(control, &thread, NULL, cksumthread, control);
} | cksum_update | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void *cksumthread(void *data) {
pthread_t v1;
UInt32 *v2;
v1 = pthread_self();
pthread_detach(v1);
v2 = (UInt32 *)*((_QWORD *)data + 78);
*v2 = CrcUpdate(*v2, *((const void **)data + 79), *((_QWORD *)data + 80));
if ((*((_QWORD *)data + 26) & 0x10000LL) != 0 ||
(*((_QWORD *)data + 26) & 0x20000LL) ... | static void *cksumthread(void *data) {
rzip_control *control = (rzip_control *)data;
pthread_detach(pthread_self());
*control->checksum.cksum = CrcUpdate(
*control->checksum.cksum, control->checksum.buf, control->checksum.len);
if (!NO_MD5)
md5_process_bytes(control->checksum.buf, control->checksum.... | cksumthread | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
tag clean_one_from_hash(rzip_control *control, rzip_state *st) {
tag better_than_min;
hash_entry *he;
again:
better_than_min = increase_mask(st->minimum_tag_mask);
if (!st->tag_clean_ptr && (control->flags & 0x800) != 0)
print_stuff_1(control, 4, 0x17Fu, "rzip.c", "clean_one_from_hash",
"... | static inline tag clean_one_from_hash(rzip_control *control,
struct rzip_state *st) {
struct hash_entry *he;
tag better_than_min;
again:
better_than_min = increase_mask(st->minimum_tag_mask);
if (!st->tag_clean_ptr)
print_maxverbose("Starting sweep for mask %u\n",
... | clean_one_from_hash | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void clear_buffer(rzip_control *control, stream_info *sinfo, int streamno,
int newbuf) {
stream *v4;
pthread_t *threads;
stream_thread_struct *s;
threads = control->pthreads;
cksem_wait_0(control, &cthreads[i_7].cksem);
cthreads[i_7].sinfo = sinfo;
cthreads[i_7].streamno = streamno;
c... | static void clear_buffer(rzip_control *control, struct stream_info *sinfo,
int streamno, int newbuf) {
pthread_t *threads = control->pthreads;
stream_thread_struct *s;
static int i = 0;
cksem_wait(control, &cthreads[i].cksem);
cthreads[i].sinfo = sinfo;
cthreads[i].streamno = stre... | clear_buffer | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void clear_rulist(rzip_control *control) {
runzip_node *node;
stream_info *sinfo;
while (control->ruhead) {
node = control->ruhead;
sinfo = node->sinfo;
free(node->sinfo->ucthreads);
sinfo->ucthreads = 0;
sinfo->ucthreads = 0;
free(node->pthreads);
node->pthreads = 0;
node->pthrea... | static void clear_rulist(rzip_control *control) {
while (control->ruhead) {
struct runzip_node *node = control->ruhead;
struct stream_info *sinfo = node->sinfo;
dealloc(sinfo->ucthreads);
dealloc(node->pthreads);
dealloc(sinfo->s);
dealloc(sinfo);
control->ruhead = node->prev;
dealloc... | clear_rulist | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void clear_sslist(rzip_state *st) {
node *node;
stream_info *sinfo;
while (st->head) {
node = st->head;
sinfo = (stream_info *)node->data;
free(*(void **)node->data);
sinfo->s = 0;
sinfo->s = 0;
free(sinfo);
st->head = node->prev;
free(node);
}
} | static void clear_sslist(struct rzip_state *st) {
while (st->head) {
struct node *node = st->head;
struct stream_info *sinfo = node->data;
dealloc(sinfo->s);
dealloc(sinfo);
st->head = node->prev;
dealloc(node);
}
} | clear_sslist | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void clear_tmpinbuf(rzip_control *control) {
control->in_ofs = 0;
control->in_len = control->in_ofs;
} | void clear_tmpinbuf(rzip_control *control) {
control->in_len = control->in_ofs = 0;
} | clear_tmpinbuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
bool clear_tmpinfile(rzip_control *control) {
if (lseek(control->fd_in, 0, 0)) {
fatal_0(control, 0x24Eu, "lrzip.c", "clear_tmpinfile",
"Failed to lseek on fd_in in clear_tmpinfile\n");
return 0;
} else if (ftruncate(control->fd_in, 0)) {
fatal_0(control, 0x250u, "lrzip.c", "clear_tmpinfile"... | bool clear_tmpinfile(rzip_control *control) {
if (unlikely(lseek(control->fd_in, 0, SEEK_SET)))
fatal_return(("Failed to lseek on fd_in in clear_tmpinfile\n"), false);
if (unlikely(ftruncate(control->fd_in, 0)))
fatal_return(("Failed to truncate fd_in in clear_tmpinfile\n"), false);
return true;
} | clear_tmpinfile | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int close_stream_in(rzip_control *control, void *ss_0) {
long v2;
i64 readseek;
int i;
if ((control->flags & 0x800) != 0) {
v2 = *((_QWORD *)ss_0 + 4) + *((_QWORD *)ss_0 + 5);
readseek = get_readseek(control, control->fd_in);
print_stuff_3(control, 4, 0x756u, "stream.c", "close_stream_in",
... | int close_stream_in(rzip_control *control, void *ss) {
struct stream_info *sinfo = ss;
int i;
print_maxverbose("Closing stream at %lld, want to seek to %lld\n",
get_readseek(control, control->fd_in),
sinfo->initial_pos + sinfo->total_read);
if (unlikely(read_seekto(control... | close_stream_in | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
int close_stream_out(rzip_control *control, void *ss_0) {
int i;
int ia;
int ib;
int close_thread;
for (i = 0; i < *((unsigned char *)ss_0 + 8); ++i)
clear_buffer(control, (stream_info *)ss_0, i, 0);
if ((control->flags & 0x800000) != 0) {
close_thread = output_thread;
for (ia = 0; ia < control... | int close_stream_out(rzip_control *control, void *ss) {
struct stream_info *sinfo = ss;
int i;
for (i = 0; i < sinfo->num_streams; i++)
clear_buffer(control, sinfo, i, 0);
if (ENCRYPT) {
int close_thread = output_thread;
for (i = 0; i < control->threads; i++) {
cksem_wait(control, &cthread... | close_stream_out | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
bool close_streamout_threads(rzip_control *control) {
int i;
int close_thread;
close_thread = output_thread;
for (i = 0; i < control->threads; ++i) {
cksem_wait_0(control, &cthreads[close_thread++].cksem);
if (close_thread == control->threads)
close_thread = 0;
}
free(cthreads);
cthreads = ... | bool close_streamout_threads(rzip_control *control) {
int i, close_thread = output_thread;
for (i = 0; i < control->threads; i++) {
cksem_wait(control, &cthreads[close_thread].cksem);
if (++close_thread == control->threads)
close_thread = 0;
}
dealloc(cthreads);
dealloc(control->pthreads);
r... | close_streamout_threads | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void close_tmpinbuf(rzip_control *control) {
control->flags &= ~0x400000uLL;
free(control->tmp_inbuf);
control->tmp_inbuf = 0;
control->tmp_inbuf = 0;
control->maxram += control->ramsize / 18;
control->usable_ram = control->maxram;
} | void close_tmpinbuf(rzip_control *control) {
control->flags &= ~FLAG_TMP_INBUF;
dealloc(control->tmp_inbuf);
if (!BITS32)
control->usable_ram = control->maxram += control->ramsize / 18;
} | close_tmpinbuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void close_tmpoutbuf(rzip_control *control) {
control->flags &= ~0x200000uLL;
free(control->tmp_outbuf);
control->tmp_outbuf = 0;
control->tmp_outbuf = 0;
control->maxram += control->ramsize / 18;
control->usable_ram = control->maxram;
} | void close_tmpoutbuf(rzip_control *control) {
control->flags &= ~FLAG_TMP_OUTBUF;
dealloc(control->tmp_outbuf);
if (!BITS32)
control->usable_ram = control->maxram += control->ramsize / 18;
} | close_tmpoutbuf | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
bool compress_file(rzip_control *control) {
size_t v2;
size_t v3;
size_t v4;
size_t v5;
size_t v6;
BOOL v7;
int fd_in;
int fd_out;
char *tmpinfile;
char *tmp;
char *tmpa;
char *tmpb;
char header[24];
unsigned long v15;
v15 = __readfsqword(0x28u);
fd_out = -1;
control->flags |= 0x20000... | bool compress_file(rzip_control *control) {
const char *tmp, *tmpinfile;
int fd_in = -1, fd_out = -1;
char header[MAGIC_LEN];
control->flags |= FLAG_MD5;
if (ENCRYPT)
if (unlikely(!get_hash(control, 1)))
return false;
memset(header, 0, sizeof(header));
if (IS_FROM_FILE)
fd_in = fileno(con... | compress_file | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
void *compthread(void *data) {
int chunks;
i64 seek;
BOOL v3;
BOOL v4;
int waited;
int ret;
int write_len;
int j;
i64 padded_len;
rzip_control *control;
long i;
compress_thread *cti;
stream_info *ctis;
control = (rzip_control *)*((_QWORD *)data + 1);
i = *(int *)data;
waited = 0;
ret ... | static void *compthread(void *data) {
stream_thread_struct *s = data;
rzip_control *control = s->control;
long i = s->i;
struct compress_thread *cti;
struct stream_info *ctis;
int waited = 0, ret = 0;
i64 padded_len;
int write_len;
dealloc(data);
cti = &cthreads[i];
ctis = cti->sinfo;
if (unli... | compthread | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
bool cond_broadcast(rzip_control *control, pthread_cond_t *cond) {
if (!pthread_cond_broadcast(cond))
return 1;
fatal_3(control, 0x76u, "stream.c", "cond_broadcast",
"Failed to pthread_cond_broadcast\n");
return 0;
} | static bool cond_broadcast(rzip_control *control, pthread_cond_t *cond) {
if (unlikely(pthread_cond_broadcast(cond)))
fatal_return(("Failed to pthread_cond_broadcast\n"), false);
return true;
} | cond_broadcast | lrzip-0.651 | app-arch | O0/app-arch/lrzip-0.651/lrzip | ida | O0 |
bool cond_wait(rzip_control *control, pthread_cond_t *cond,
pthread_mutex_t *mutex) {
if (!pthread_cond_wait(cond, mutex))
return 1;
fatal_3(control, 0x6Fu, "stream.c", "cond_wait",
"Failed to pthread_cond_wait\n");
return 0;
} | static bool cond_wait(rzip_control *control, pthread_cond_t *cond,
pthread_mutex_t *mutex) {
if (unlikely(pthread_cond_wait(cond, mutex)))
fatal_return(("Failed to pthread_cond_wait\n"), false);
return true;
} | cond_wait | 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.