diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2024-07-01 19:24:01 -0500 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2024-07-01 19:34:40 -0500 |
| commit | e011d8c164402cbb1baf92533dfb4f933ec08fee (patch) | |
| tree | 7a28431c3c5caf885f07deac6718787b36f2231c /os400 | |
| parent | 534864bccd78812648ad1beaccdeec7c9d47aeef (diff) | |
| download | zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.tar.gz zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.tar.bz2 zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.zip | |
Add deflateUsed() function to get the used bits in the last byte.
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
Diffstat (limited to 'os400')
| -rw-r--r-- | os400/bndsrc | 6 | ||||
| -rw-r--r-- | os400/zlib.inc | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/os400/bndsrc b/os400/bndsrc index 9f92bb10..187fb691 100644 --- a/os400/bndsrc +++ b/os400/bndsrc | |||
| @@ -124,4 +124,10 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB') | |||
| 124 | EXPORT SYMBOL("crc32_combine_gen") | 124 | EXPORT SYMBOL("crc32_combine_gen") |
| 125 | EXPORT SYMBOL("crc32_combine_op") | 125 | EXPORT SYMBOL("crc32_combine_op") |
| 126 | 126 | ||
| 127 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | ||
| 128 | /* Version 1.3.2 additional entry points. */ | ||
| 129 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | ||
| 130 | |||
| 131 | EXPORT SYMBOL("deflateUsed") | ||
| 132 | |||
| 127 | ENDPGMEXP | 133 | ENDPGMEXP |
diff --git a/os400/zlib.inc b/os400/zlib.inc index 36db89e3..e9352fed 100644 --- a/os400/zlib.inc +++ b/os400/zlib.inc | |||
| @@ -371,6 +371,10 @@ | |||
| 371 | D pending 10U 0 Pending bytes | 371 | D pending 10U 0 Pending bytes |
| 372 | D bits 10I 0 Pending bits | 372 | D bits 10I 0 Pending bits |
| 373 | * | 373 | * |
| 374 | D deflateUsed PR 10I 0 extproc('deflateUsed') Get used bits | ||
| 375 | D strm like(z_stream) Compression stream | ||
| 376 | D bits 10I 0 Used bits | ||
| 377 | * | ||
| 374 | D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat | 378 | D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat |
| 375 | D strm like(z_stream) Compression stream | 379 | D strm like(z_stream) Compression stream |
| 376 | D bits 10I 0 value # of bits to insert | 380 | D bits 10I 0 value # of bits to insert |
