]>
git.ipfire.org Git - thirdparty/zlib-ng.git/log
Daniel Axtens [Fri, 8 May 2015 13:21:53 +0000 (23:21 +1000)]
Test cmake with Travis
Signed-off-by: Daniel Axtens <dja@axtens.net>
Hans Kristian Rosbach [Fri, 8 May 2015 13:09:34 +0000 (15:09 +0200)]
Merge branch 'develop' of github.com:Dead2/zlib-ng into develop
Hans Kristian Rosbach [Fri, 8 May 2015 13:07:19 +0000 (15:07 +0200)]
Add README file with markup code enabled, allows links and images to be shown on github.
Hans Kristian Rosbach [Fri, 8 May 2015 13:02:56 +0000 (15:02 +0200)]
Merge pull request #21 from daxtens/develop
Unbreak things: import the right zconf.h
Hans Kristian Rosbach [Fri, 8 May 2015 09:17:23 +0000 (11:17 +0200)]
Merge pull request #20 from mtl1979/temp2
Makefile cleanup
Daniel Axtens [Fri, 8 May 2015 08:45:10 +0000 (18:45 +1000)]
Check out of tree building in Travis
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Fri, 8 May 2015 05:58:09 +0000 (15:58 +1000)]
Unbreak things: import the right zconf.h
Previously I imported <zconf.h>. This worked on my box because I had a
system-wide zconf.h. It didn't work on Travis. This should fix that.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Mika Lindqvist [Thu, 7 May 2015 00:21:22 +0000 (03:21 +0300)]
Make sure Visual Studio makefile does not fail if zconf.h is missing.
Mika Lindqvist [Thu, 7 May 2015 15:21:28 +0000 (18:21 +0300)]
Fix building under Cygwin.
Mika Lindqvist [Thu, 7 May 2015 12:46:10 +0000 (15:46 +0300)]
Remove support for Borland C compiler.
Mika Lindqvist [Thu, 7 May 2015 15:21:28 +0000 (18:21 +0300)]
Fix building under Cygwin.
Mika Lindqvist [Thu, 7 May 2015 12:46:10 +0000 (15:46 +0300)]
Remove support for Borland C compiler.
Mika Lindqvist [Thu, 7 May 2015 00:21:22 +0000 (03:21 +0300)]
Make sure Visual Studio makefile does not fail if zconf.h is missing.
Mika Lindqvist [Wed, 6 May 2015 23:54:42 +0000 (02:54 +0300)]
Remove unnecessary dependencies from distclean and inline them instead and test if building inside source tree.
Hans Kristian Rosbach [Thu, 7 May 2015 07:36:20 +0000 (09:36 +0200)]
Revert "Don't delete SRCDIR/zconf.h when building out of tree"
This reverts commit
ff7c02c8a7492ce3f3ab997c26ca737fac57f5d3 .
Hans Kristian Rosbach [Tue, 5 May 2015 16:14:30 +0000 (18:14 +0200)]
Merge pull request #17 from daxtens/makefix
Make 'make' make more magnificently.
Daniel Axtens [Tue, 5 May 2015 12:00:53 +0000 (22:00 +1000)]
Don't delete SRCDIR/zconf.h when building out of tree
This avoids dirtying the source directory when building out of tree
Various build changes to make sure this works:
- Includes for arch dir specify BUILDDIR before SRCDIR
- #include <zconf.h> instead of "zconf.h": that way the include order
takes effect.
- Insert an #error directive in the original zconf.h that we process out.
That way we can be sure we are including the right one when building
out of tree.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Tue, 5 May 2015 11:59:46 +0000 (21:59 +1000)]
distclean shouldn't depend on docs
Signed-off-by: Daniel Axtens <dja@axtens.net>
Hans Kristian Rosbach [Mon, 4 May 2015 17:48:37 +0000 (19:48 +0200)]
Merge pull request #14 from mtl1979/test1
Add support for building out of source tree.
Mika Lindqvist [Mon, 4 May 2015 17:08:12 +0000 (20:08 +0300)]
Fix building outside source tree
* SRCDIR points to relevant directory in source tree
* SRCTOP points to root of source tree in sub-Makefiles
* arch Makefiles use INCLUDES, and configure sets that depending on if we are
building inside source tree or outside.
* distclean cleans all files when building outside source tree
Hans Kristian Rosbach [Mon, 4 May 2015 17:08:23 +0000 (19:08 +0200)]
Merge pull request #16 from mtl1979/develop
Fix signed/unsigned mismatch in deflate.c
Mika Lindqvist [Mon, 4 May 2015 10:17:44 +0000 (13:17 +0300)]
Fix signed/unsigned mismatch.
Hans Kristian Rosbach [Mon, 4 May 2015 16:12:49 +0000 (18:12 +0200)]
Merge pull request #15 from daxtens/cleanups
Compile with -Wall -Werror
Daniel Axtens [Mon, 4 May 2015 06:28:32 +0000 (16:28 +1000)]
Compile with -Wall -Werror
This should help keep code quality up.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Hans Kristian Rosbach [Fri, 1 May 2015 12:42:15 +0000 (14:42 +0200)]
Merge pull request #11 from mtl1979/develop
Fix parallel make
Mika Lindqvist [Thu, 30 Apr 2015 14:43:25 +0000 (17:43 +0300)]
Make parallel building work inside arch directory.
Hans Kristian Rosbach [Fri, 1 May 2015 06:59:06 +0000 (08:59 +0200)]
Merge pull request #12 from mtl1979/cmake
Update CMakeLists.txt
Hans Kristian Rosbach [Fri, 1 May 2015 06:57:12 +0000 (08:57 +0200)]
Merge pull request #13 from daxtens/cleanups
Git and build cleanups
Daniel Axtens [Fri, 1 May 2015 06:18:19 +0000 (16:18 +1000)]
x86: Clean up compiler warnings in crc_folding.c
Signed-off-by: Daniel Axtens <dja@axtens.net>
Mika Lindqvist [Thu, 30 Apr 2015 20:03:26 +0000 (23:03 +0300)]
Update CMakeLists.txt
Daniel Axtens [Fri, 1 May 2015 06:02:14 +0000 (16:02 +1000)]
Make feature tests build with -Wall -Werror
The feature tests had a number of unused variables.
Make them appear used by doing a void cast.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Fri, 1 May 2015 05:56:21 +0000 (15:56 +1000)]
x86: Do not try X86_QUICK_STRATEGY without HAVE_SSE2_INTRIN
QUICK depends on fill_window_sse, and fails to link without it.
Therefore, disable QUICK_STRATEGY if we lack SSE2 support.
This could easily be worked around by making the QUICK code
fall back to regular fill_window, but it's probably not important:
if you care about speed you probably have SSE2.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Fri, 1 May 2015 05:30:05 +0000 (15:30 +1000)]
Remove unneeded and confusing alwaysinline
alwaysinline expands to __attribute__((always_inline)).
This does not force gcc to inline the function. Instead, it allows gcc to
inline the function when complied without optimisations. (Normally, inline
functions are only inlined when compiled with optimisations.)[0]
alwaysinline was only used for bulk_insert_str, and it seems to be using it
in an attempt to force the function to be inlined. That won't work.
Furthermore, bulk_insert_str wasn't even declared inline, causing warnings.
Remove alwaysinline and replace with inline.
Remove the #defines, as they're no longer used.
[0] https://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Function-Attributes.html
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Fri, 1 May 2015 05:22:56 +0000 (15:22 +1000)]
x86: Silence uninitalised variable warning
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Wed, 29 Apr 2015 03:45:34 +0000 (13:45 +1000)]
Make clean/distclean descend into $(ARCHDIR)
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Wed, 29 Apr 2015 03:49:25 +0000 (13:49 +1000)]
arch: git ignore Makefiles
Signed-off-by: Daniel Axtens <dja@axtens.net>
Hans Kristian Rosbach [Thu, 30 Apr 2015 06:56:25 +0000 (08:56 +0200)]
Merge pull request #10 from mtl1979/develop
Fix compiling under Visual Studio
Mika Lindqvist [Wed, 29 Apr 2015 16:09:26 +0000 (19:09 +0300)]
Fix forced inlining to work with Visual Studio.
Mika Lindqvist [Wed, 29 Apr 2015 13:49:43 +0000 (16:49 +0300)]
* Remove assembler targets and OBJA from Visual Studio makefile
* Fix creating manifest files in Visual Studio makefile
* Add missing dependency information for match.obj in Visual Studio
makefile
Mika Lindqvist [Wed, 29 Apr 2015 00:30:54 +0000 (03:30 +0300)]
Fix compiling under Visual Studio.
Hans Kristian Rosbach [Sun, 26 Apr 2015 19:31:49 +0000 (21:31 +0200)]
Cleanup: Replace 'z_streamp' with 'z_stream *'
Hans Kristian Rosbach [Sun, 26 Apr 2015 19:10:12 +0000 (21:10 +0200)]
Cleanup: Replace 'voidpf' with 'void *'
Hans Kristian Rosbach [Sun, 26 Apr 2015 19:06:49 +0000 (21:06 +0200)]
Cleanup: Replace 'voidp' with 'void *'
Hans Kristian Rosbach [Sun, 26 Apr 2015 18:37:30 +0000 (20:37 +0200)]
Cleanup: Replace 'voidpc' with 'void const *'
Hans Kristian Rosbach [Sun, 26 Apr 2015 17:45:05 +0000 (19:45 +0200)]
Fix previous patches mistakes
Hans Kristian Rosbach [Sun, 26 Apr 2015 17:34:27 +0000 (19:34 +0200)]
Fix syntax error in zutil.h
Hans Kristian Rosbach [Sun, 26 Apr 2015 16:36:46 +0000 (18:36 +0200)]
Merge pull request #6 from daxtens/travis
Run tests on Travis CI with .travis.yml
Daniel Axtens [Sun, 26 Apr 2015 15:18:21 +0000 (01:18 +1000)]
Run tests on Travis CI with .travis.yml
Signed-off-by: Daniel Axtens <dja@axtens.net>
Hans Kristian Rosbach [Sun, 26 Apr 2015 11:57:22 +0000 (13:57 +0200)]
Use memcpy, memcmp and memzero directly
Hans Kristian Rosbach [Sun, 26 Apr 2015 11:27:44 +0000 (13:27 +0200)]
Drop workarounds for WinCE and Interix
Hans Kristian Rosbach [Sun, 26 Apr 2015 10:29:29 +0000 (12:29 +0200)]
Merge pull request #5 from daxtens/develop
Build fixes
Daniel Axtens [Sun, 26 Apr 2015 09:13:11 +0000 (19:13 +1000)]
Makefile.in: use match.lo for linking PIC
The rest of the items in the list are .lo files; this should be too.
Needed for ./configure --cover to work.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Daniel Axtens [Sun, 26 Apr 2015 08:34:03 +0000 (18:34 +1000)]
arch/x86: Use SFLAGS for linking x86.lo file, not CFLAGS.
Signed-off-by: Daniel Axtens <dja@axtens.net>
hansr [Fri, 10 Apr 2015 11:21:23 +0000 (13:21 +0200)]
Actually commit the updated README file.
Update version identifier strings to reflect fork status.
Add zlib-ng identifier string.
Remove zlib2ansi script.
hansr [Fri, 10 Apr 2015 10:26:51 +0000 (12:26 +0200)]
Update readme and create LICENSE.md file
root [Thu, 11 Dec 2014 13:30:51 +0000 (14:30 +0100)]
Fix compilation of match.c on big-endian machines, and avoid
usage of unoptimized builtins.
root [Thu, 11 Dec 2014 13:29:30 +0000 (14:29 +0100)]
Fix version number extraction from zlib.h in configure.
Configure will need more work to produce the proper zlib-ng named library files.
root [Thu, 11 Dec 2014 11:22:38 +0000 (12:22 +0100)]
Add ZLIBNG_* version definitions and change comment at the top of
zlib.h for better clarity.
root [Thu, 11 Dec 2014 10:47:56 +0000 (11:47 +0100)]
Improve compatability with MSVC compiler by allowing usage of inline
Hans Kristian Rosbach [Thu, 6 Nov 2014 20:11:15 +0000 (21:11 +0100)]
Fix another typing mishap in configure
Hans Kristian Rosbach [Thu, 6 Nov 2014 20:07:12 +0000 (21:07 +0100)]
Fix typo in configure output
Hans Kristian Rosbach [Thu, 6 Nov 2014 19:59:54 +0000 (20:59 +0100)]
Merge longest_match implementation from CloudFlare, authored by
Shuxin Yang in commit
31043308c3d3edfb487d2c4cbe7290bd5b63c65c at
https://github.com/cloudflare/zlib/commit/
31043308c3d3edfb487d2c4cbe7290bd5b63c65c
This has been modified by me to fit into zlib-ng.
Hans Kristian Rosbach [Thu, 6 Nov 2014 19:55:33 +0000 (20:55 +0100)]
Merge branch 'develop' of github.com:Dead2/zlib-ng into develop
Hans Kristian Rosbach [Thu, 6 Nov 2014 19:54:38 +0000 (20:54 +0100)]
Add configure test for __builtin_ctzl() support in compiler
hansr [Thu, 6 Nov 2014 19:40:56 +0000 (20:40 +0100)]
Drop support for old systems in configure. The remaining ones should
ideally be tested by someone familiar with them and a decision made
whether to keep/remove/update the detection and settings for them.
hansr [Wed, 5 Nov 2014 19:46:55 +0000 (20:46 +0100)]
Add missing match.h file from last commit
hansr [Wed, 5 Nov 2014 12:54:07 +0000 (13:54 +0100)]
Remove support for ASMV and ASMINF defines and clean up match.c handling.
This makes it easier to implement support for ASM replacements using
configure parameters if needed later. Also since zlib-ng uses
compiler intrinsics, this needed a cleanup in any case.
Hans Kristian Rosbach [Sun, 2 Nov 2014 14:01:09 +0000 (15:01 +0100)]
Testing on a Raspberry Pi shows that -DUNALIGNED_OK and -DCRC32_UNROLL_LESS
both give a consistent performance gain, so enable these on the armv6 arch.
Also enabled -DADLER32_UNROLL_LESS on the untested assumption that it will
also be faster.
hansr [Fri, 31 Oct 2014 12:10:48 +0000 (13:10 +0100)]
Add "generic" arch dir that is used by default unless the arch has
specific support in the configure script.
hansr [Fri, 31 Oct 2014 12:04:56 +0000 (13:04 +0100)]
Lets try that again
hansr [Fri, 31 Oct 2014 12:00:55 +0000 (13:00 +0100)]
Fine, lets try to make it portable too
hansr [Fri, 31 Oct 2014 11:54:31 +0000 (12:54 +0100)]
Fix building for arches that dont set archdir in Configure
hansr [Tue, 21 Oct 2014 12:53:37 +0000 (14:53 +0200)]
Let the CRC32_UNROLL_LESS define work on big endian systems as well.
hansr [Sat, 18 Oct 2014 20:49:16 +0000 (22:49 +0200)]
Rewrite K&R-style function prototypes to ANSI-C-style.
Only internal functions, no exported functions in this commit.
hansr [Sat, 18 Oct 2014 10:11:48 +0000 (12:11 +0200)]
Remove FAR variants of voidpf
And a few Bytef leftovers from test/example.c
hansr [Fri, 17 Oct 2014 21:38:26 +0000 (23:38 +0200)]
Remove workaround for systems where sizeof(int)<=2 (16-bit systems)
hansr [Thu, 16 Oct 2014 13:32:17 +0000 (15:32 +0200)]
Remove FAR variants of variables ushf, schf, Posf, Bytef, charf,
intf, uIntf and uLongf
hansr [Thu, 16 Oct 2014 11:33:16 +0000 (13:33 +0200)]
Remove use of typedef()
hansr [Wed, 15 Oct 2014 13:30:00 +0000 (15:30 +0200)]
Remove more workarounds for really old compilers
hansr [Wed, 15 Oct 2014 13:10:51 +0000 (15:10 +0200)]
Remove more workarounds for really old compilers
hansr [Wed, 15 Oct 2014 11:50:52 +0000 (13:50 +0200)]
Clean up x86 files to hide functions and variables that are not meant
to be used externally.
hansr [Wed, 15 Oct 2014 11:11:17 +0000 (13:11 +0200)]
Reorganize optimization defines
Enable x86_64 to skip checking for SSE2
Enable deflate_medium on all archs
hansr [Wed, 15 Oct 2014 09:54:21 +0000 (11:54 +0200)]
Add notice about README.zlib FAQ.zlib Changelog.zlib being unmaintained
copies from zlib 1.2.8
hansr [Wed, 15 Oct 2014 09:49:27 +0000 (11:49 +0200)]
Remove false statement in README
Add copies of original README/FAQ/Changelog, postfixed with .zlib
hansr [Wed, 15 Oct 2014 08:49:38 +0000 (10:49 +0200)]
Smaller readme changes and additions
hansr [Tue, 14 Oct 2014 11:03:48 +0000 (13:03 +0200)]
Update documentation and version strings
hansr [Tue, 14 Oct 2014 10:08:05 +0000 (12:08 +0200)]
Separate arch-specific code into separate folders
hansr [Tue, 14 Oct 2014 08:01:18 +0000 (10:01 +0200)]
Merge x86 and x86_64 handling in configure.
Add parameter to disable new strategies.
Add parameter to disable arch-specific optimizations.
(This is just the first few steps, more changes needed)
hansr [Mon, 13 Oct 2014 11:45:04 +0000 (13:45 +0200)]
Delete all contrib/ and examples/ code.
Much of this seems to be outdated.
Zhaoxiu Zeng [Sun, 27 Jul 2014 08:29:58 +0000 (16:29 +0800)]
inffast.c: add BITS and DROPBITS macros like inflate.c
hansr [Mon, 13 Oct 2014 11:14:33 +0000 (13:14 +0200)]
Fix compilation of test/infcover.c on linux
hansr [Mon, 13 Oct 2014 10:48:42 +0000 (12:48 +0200)]
Remove support for compiling with -DFASTEST
hansr [Mon, 13 Oct 2014 10:13:50 +0000 (12:13 +0200)]
Remove unused variables
hansr [Sun, 12 Oct 2014 20:57:27 +0000 (22:57 +0200)]
Remove workarounds for non-ANSI-C compatible compilers (Part 2)
-Removing usage of OF() definition
hansr [Sun, 12 Oct 2014 10:38:06 +0000 (12:38 +0200)]
Remove workarounds for non-ANSI-C compatible compilers (Part 1)
hansr [Fri, 10 Oct 2014 11:26:04 +0000 (13:26 +0200)]
Remove support for SASC and TURBOC compilers
hansr [Thu, 9 Oct 2014 13:10:33 +0000 (15:10 +0200)]
Clean up likely/unlikely definitions
hansr [Thu, 9 Oct 2014 12:35:50 +0000 (14:35 +0200)]
Remove legacy 16-bit workarounds
hansr [Thu, 9 Oct 2014 12:05:53 +0000 (14:05 +0200)]
Missed one, (Remove code related to legacy OS)
hansr [Thu, 9 Oct 2014 11:55:20 +0000 (13:55 +0200)]
Remove FAR definition
Remove a few leftovers from the legacy OS support removal