examples/enough.c

Branch


Log

Author Commit Date CI Message
Mark Adler 5752b171 2022-08-22T13:13:06 Fix some typos. No code changes.
Mark Adler cd16ff0b 2018-08-04T14:34:01 Show all the codes for the maximum tables size in enough.c.
Mark Adler d00c147f 2018-08-04T14:27:02 Clarify that prefix codes are counted in enough.c. There is no assurance that all prefix codes are reachable as optimal Huffman codes for the numbers of symbols encountered in a deflate block. This code considers all possible prefix codes, which might be a larger set than all possible Huffman codes, depending on the constraints.
Mark Adler 5b138100 2018-08-01T18:24:43 Use inline function instead of macro for index in enough.c.
Mark Adler 8ba2cdb6 2018-08-01T01:49:45 Clean up code style in enough.c, update version.
Mark Adler 4c14b515 2018-08-01T01:39:47 Use a macro for the printf format of big_t in enough.c.
Mark Adler 194e558e 2018-08-01T01:37:03 Use a structure to make globals in enough.c evident.
Mark Adler 17068938 2012-08-18T17:59:50 Avoid shift equal to bits in type (caused endless loop). Also clean up comparisons between different types, and some odd indentation problems that showed up somehow. A new endless loop was introduced by the clang compiler, which apparently does odd things when the right operand of << is equal to or greater than the number of bits in the type. The C standard in fact states that the behavior of << is undefined in that case. The loop was rewritten to use single-bit shifts.
Mark Adler e0ff940e 2011-09-09T23:27:17 zlib 1.2.3.8
Mark Adler f6194ef3 2011-09-09T23:26:40 zlib 1.2.3.4