< prev index next >

src/java.base/share/native/libzip/zlib/inftrees.h

Print this page
*** 63,12 ***
     1444, which is the sum of 852 for literal/length codes and 592 for distance
     codes.  These values were found by exhaustive searches using the program
     examples/enough.c found in the zlib distribution.  The arguments to that
     program are the number of symbols, the initial root table size, and the
     maximum bit length of a code.  "enough 286 9 15" for literal/length codes
!    returns returns 852, and "enough 30 6 15" for distance codes returns 592.
!    The initial root table size (9 or 6) is found in the fifth argument of the
     inflate_table() calls in inflate.c and infback.c.  If the root table size is
     changed, then these maximum sizes would be need to be recalculated and
     updated. */
  #define ENOUGH_LENS 852
  #define ENOUGH_DISTS 592
--- 63,12 ---
     1444, which is the sum of 852 for literal/length codes and 592 for distance
     codes.  These values were found by exhaustive searches using the program
     examples/enough.c found in the zlib distribution.  The arguments to that
     program are the number of symbols, the initial root table size, and the
     maximum bit length of a code.  "enough 286 9 15" for literal/length codes
!    returns 852, and "enough 30 6 15" for distance codes returns 592. The
!    initial root table size (9 or 6) is found in the fifth argument of the
     inflate_table() calls in inflate.c and infback.c.  If the root table size is
     changed, then these maximum sizes would be need to be recalculated and
     updated. */
  #define ENOUGH_LENS 852
  #define ENOUGH_DISTS 592

*** 79,8 ***
      CODES,
      LENS,
      DISTS
  } codetype;
  
! int ZLIB_INTERNAL inflate_table OF((codetype type, unsigned short FAR *lens,
!                              unsigned codes, code FAR * FAR *table,
!                              unsigned FAR *bits, unsigned short FAR *work));
--- 79,8 ---
      CODES,
      LENS,
      DISTS
  } codetype;
  
! int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
!                                 unsigned codes, code FAR * FAR *table,
!                                 unsigned FAR *bits, unsigned short FAR *work);
< prev index next >