summaryrefslogtreecommitdiff
path: root/zutil.h
Commit message (Collapse)AuthorAgeFilesLines
* Provide missing function prototypes in CRC-32 code. [fredgan]Mark Adler2022-10-061-0/+1
|
* zlib 1.2.12v1.2.12Mark Adler2022-03-271-1/+1
|
* Eliminate use of ULL constants.Mark Adler2022-03-271-3/+3
| | | | | | 0xffffffffffffffffULL was causing warnings for C99 usage. The suffix for the constant is not necessary anyway, so this commit removes them.
* Speed up software CRC-32 computation by a factor of 1.5 to 3.Mark Adler2018-12-261-0/+11
| | | | | | | | Use the interleaved method of Kadatch and Jenkins in order to make use of pipelined instructions through multiple ALUs in a single core. This also speeds up and simplifies the combination of CRCs, and updates the functions to pre-calculate and use an operator for CRC combination.
* Avoid the use of ptrdiff_t.Mark Adler2017-06-031-8/+0
| | | | | | | | | | | | | | | | | This isn't the right type anyway to assure that it contains a pointer. That type would be intptr_t or uintptr_t. However the C99 standard says that those types are optional, so their use would not be portable. This commit simply uses size_t or whatever configure decided to use for size_t. That would be the same length as ptrdiff_t, and so will work just as well. The code checks to see if the length of the type used is the same as the length of a void pointer, so there is already protection against the use of the wrong type. The use of size_t (or ptrdiff_t) will almost always work, as all modern architectures have an array size that is the same as the pointer size. Only old segmented architectures would have to fall back to the slower CRC-32 calculation, where the amount of memory that can be accessed is larger than the maximum array size.
* zlib 1.2.9v1.2.9Mark Adler2016-12-311-1/+1
|
* Clean up and comment the use of local for static.Mark Adler2016-10-261-1/+3
|
* Make a noble effort at setting OS_CODE correctly.Mark Adler2016-10-251-14/+30
| | | | | | | | This updates the OS_CODE determination at compile time to match as closely as possible the operating system mappings documented in the PKWare APPNOTE.TXT version 6.3.4, section 4.4.2.2. That byte in the gzip header is used by nobody for anything, as far as I can tell. However we might as well try to set it appropriately.
* Avoid use of DEBUG macro -- change to ZLIB_DEBUG.Mark Adler2015-07-281-1/+1
|
* zlib 1.2.7.1v1.2.7.1Mark Adler2013-03-241-1/+1
|
* Line length cleanup.Mark Adler2013-03-241-1/+2
|
* Clean up the usage of z_const and respect const usage within zlib.Mark Adler2012-08-131-2/+2
| | | | | | | | | This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment.
* Simplify test and use of gcc hidden attribute.Mark Adler2012-03-031-1/+1
|
* Don't use library or built-in byte swaps.Mark Adler2012-03-031-13/+2
| | | | | | | Using optimized byte swaps reduced portability for no real benefit, since they are in parts of the code that represent a tiny fraction of the execution time. So a simple definition of a byte swap is now used.
* Improve the detection of no hidden visibility attribute.Mark Adler2012-02-191-2/+1
|
* Do not use the visibility attribute if NO_VIZ defined.Mark Adler2012-02-191-1/+1
|
* Require gcc 4.0 or later on Mac OS X to use the hidden attribute.Mark Adler2012-02-181-1/+2
|
* Remove unnecessary include for byte swap built-in [Bosmans].Mark Adler2012-02-131-1/+0
|
* Don't use built-in byte swaps if compiled solo.Mark Adler2012-02-121-9/+12
|
* zlib 1.2.6.1v1.2.6.1Mark Adler2012-02-121-2/+2
|
* Use optimized byte swap operations for Microsoft and GNU [Snyder].Mark Adler2012-02-111-0/+13
|
* zlib 1.2.5.2v1.2.5.2Mark Adler2011-12-181-1/+1
|
* Facilitate compilation with Borland C++ for pragmas and vsnprintf.Mark Adler2011-11-191-1/+1
|
* Add a ./config --solo option to make zlib subset with no libary useMark Adler2011-10-071-21/+30
| | | | | | | | A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
* Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler2011-10-021-35/+0
| | | | | | | | | This also moves some of the same from zconf.h to gzguts.h. A new function, gzflags(), was created to pass the compilation flags related to vsnprintf usage back to zlibCompileFlags() in zutil.c. In the process, various compiler configuration files were updated to include gzflags(), as well as the new gzgetc_() function added when the gzgetc() macro was introduced in a previous patch.
* Always add large file support for windowsTor Lillqvist2011-10-011-1/+1
|
* zlib 1.2.4.5v1.2.4.5Mark Adler2011-09-091-8/+14
|
* zlib 1.2.4.3v1.2.4.3Mark Adler2011-09-091-7/+1
|
* zlib 1.2.4.2v1.2.4.2Mark Adler2011-09-091-8/+4
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-20/+11
|
* zlib 1.2.4v1.2.4Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-4/+4
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-15/+17
|
* zlib 1.2.3.4v1.2.3.4Mark Adler2011-09-091-0/+6
|
* zlib 1.2.3.3v1.2.3.3Mark Adler2011-09-091-0/+6
|
* zlib 1.2.3.2v1.2.3.2Mark Adler2011-09-091-0/+6
|
* zlib 1.2.3.1v1.2.3.1Mark Adler2011-09-091-6/+4
|
* zlib 1.2.2.4v1.2.2.4Mark Adler2011-09-091-0/+3
|
* zlib 1.2.2.3v1.2.2.3Mark Adler2011-09-091-3/+7
|
* zlib 1.2.2.2v1.2.2.2Mark Adler2011-09-091-9/+8
|
* zlib 1.2.2.1v1.2.2.1Mark Adler2011-09-091-1/+1
|
* zlib 1.2.1.2v1.2.1.2Mark Adler2011-09-091-1/+6
|
* zlib 1.2.1v1.2.1Mark Adler2011-09-091-0/+4
|
* zlib 1.2.0.7v1.2.0.7Mark Adler2011-09-091-0/+3
|
* zlib 1.2.0.5v1.2.0.5Mark Adler2011-09-091-28/+32
|
* zlib 1.2.0.2v1.2.0.2Mark Adler2011-09-091-5/+10
|
* zlib 1.2.0.1v1.2.0.1Mark Adler2011-09-091-0/+24
|
* zlib 1.2.0v1.2.0Mark Adler2011-09-091-4/+2
|
* zlib 1.1.4v1.1.4Mark Adler2011-09-091-1/+1
|
* zlib 1.1.3v1.1.3Mark Adler2011-09-091-11/+10
|