Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove commented-out code in internal_huf.c #1109

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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