Skip to content

Commit

Permalink
Remove commented-out code in internal_huf.c (#1109)
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Jul 31, 2021
1 parent e9ae5e7 commit bf3902f
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/lib/OpenEXRCore/internal_huf.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@ hufCode (uint64_t code)
return code >> 6;
}

//#define outputBits(nBits, bits) \
// do \
// { \
// c <<= nBits; \
// lc += nBits; \
// c |= ((uint64_t) bits); \
// while (lc >= 8) \
// { \
// *out++ = (uint8_t) (c >> (lc -= 8)); \
// } \
// } while (0)
static inline void

This comment has been minimized.

Copy link
@jakapn

jakapn Jan 16, 2022

X

outputBits (int nBits, uint64_t bits, uint64_t* c, int* lc, uint8_t** outptr)
{
Expand Down Expand Up @@ -674,40 +663,12 @@ hufFreeDecTable (HufDec* hdecod) // io: Decoding table
// ENCODING
//

//#define outputCode(code) \
// do \
// { \
// uint64_t tmpnBits = hufLength (code); \
// uint64_t tmpcode = hufCode (code); \
// outputBits (tmpnBits, tmpcode); \
// } while (0)
static inline void
outputCode (uint64_t code, uint64_t* c, int* lc, uint8_t** out)
{
outputBits (hufLength (code), hufCode (code), c, lc, out);
}

//#define sendCode(sCode, runCount, runCode) \
// do \
// { \
// uint64_t tmpscode = sCode; \
// uint64_t tmprcode = runCode; \
// uint64_t tmprcount = (uint64_t) runCount; \
// if (hufLength (tmpscode) + hufLength (tmprcode) + 8 < \
// hufLength (tmpscode) * tmprcount) \
// { \
// outputCode (sCode); \
// outputCode (runCode); \
// outputBits (8, tmprcount); \
// } \
// else \
// { \
// while (tmprcount-- >= 0) \
// { \
// outputCode (tmpscode); \
// } \
// } \
// } while (0)
static inline void
sendCode (
uint64_t sCode,
Expand Down

0 comments on commit bf3902f

Please sign in to comment.