Skip to content

Commit

Permalink
Add C implementations of Kauai decompressors
Browse files Browse the repository at this point in the history
  • Loading branch information
beholdnec committed Jun 21, 2022
1 parent e197d2f commit d5ddf8e
Show file tree
Hide file tree
Showing 5 changed files with 6,163 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kauai/src/codkauai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,13 @@ bool KCDC::_FDecode(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcbD

#else //! IN_80386


#include "kcdc_c.h"

*pcbDst = cbTot;
return fTrue;

#if 0 // BROKEN; KEPT FOR REFERENCE
long cb, dib, ibit, cbit;
register ulong luCur;
byte *pbT;
Expand Down Expand Up @@ -560,6 +567,7 @@ bool KCDC::_FDecode(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcbD

#undef _FTest
#undef _Advance
#endif // 0

#endif //! IN_80386

Expand Down Expand Up @@ -835,6 +843,12 @@ bool KCDC::_FDecode2(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcb

#else //! IN_80386

#include "kcd2_c.h"

*pcbDst = cbTot;
return fTrue;

#if 0 // BROKEN; KEPT FOR REFERENCE
long cb, dib, ibit, cbit;
register ulong luCur;
byte bT;
Expand Down Expand Up @@ -936,6 +950,8 @@ bool KCDC::_FDecode2(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcb
#undef _FTest
#undef _Advance

#endif // 0

#endif //! IN_80386

LFail:
Expand Down
Loading

0 comments on commit d5ddf8e

Please sign in to comment.