]> git.ipfire.org Git - thirdparty/zlib-ng.git/log
thirdparty/zlib-ng.git
4 years agoFixed deference null return value in gz_uncompress (CID 301524)
Nathan Moinvaziri [Mon, 21 Sep 2020 03:44:55 +0000 (20:44 -0700)] 
Fixed deference null return value in gz_uncompress (CID 301524)

4 years agoRemove unused F_OPEN preprocessor macro.
Nathan Moinvaziri [Sun, 20 Sep 2020 01:50:10 +0000 (18:50 -0700)] 
Remove unused F_OPEN preprocessor macro.

4 years agoRemove gcov-7 install since warnings on gcov-8 no longer occur in Windows CI.
Nathan Moinvaziri [Sat, 19 Sep 2020 23:27:54 +0000 (16:27 -0700)] 
Remove gcov-7 install since warnings on gcov-8 no longer occur in Windows CI.

4 years agoRemove chunkmemset_3 and chunkmemset_6 on ARM/AArch64 as they need 3 chunks...
Mika Lindqvist [Mon, 14 Sep 2020 15:40:35 +0000 (18:40 +0300)] 
Remove chunkmemset_3 and chunkmemset_6 on ARM/AArch64 as they need 3 chunks...
* Don't unroll distances smaller than chunk size.

4 years agoAdd missing z_const to fuzzers.
Mika Lindqvist [Mon, 14 Sep 2020 19:13:09 +0000 (22:13 +0300)] 
Add missing z_const to fuzzers.

4 years agoFixed match_byte casting warning in compare256_unaligned_64_static.
Nathan Moinvaziri [Mon, 14 Sep 2020 05:12:40 +0000 (22:12 -0700)] 
Fixed match_byte casting warning in compare256_unaligned_64_static.

  compare258.c(158,36): warning C4244: 'return': conversion from 'uint64_t' to 'uint32_t', possible loss of data

4 years agoMove gzclose() to gzlib.c. Modern linkers should be smart enough to link it in only...
Nathan Moinvaziri [Mon, 14 Sep 2020 04:58:57 +0000 (21:58 -0700)] 
Move gzclose() to gzlib.c. Modern linkers should be smart enough to link it in only if it is used.

4 years agoOptionally include gzguts.h with WITH_GZFILEOP flag.
Nathan Moinvaziri [Mon, 14 Sep 2020 04:16:36 +0000 (21:16 -0700)] 
Optionally include gzguts.h with WITH_GZFILEOP flag.

4 years agoAdded ubuntu mingw cross-compile CI instances to cmake GHA.
Nathan Moinvaziri [Sun, 13 Sep 2020 04:08:00 +0000 (21:08 -0700)] 
Added ubuntu mingw cross-compile CI instances to cmake GHA.

4 years agoFixed buf resource leak in gz_compress when USE_MMAP is defined. (CID 298965)
Nathan Moinvaziri [Sun, 13 Sep 2020 04:20:36 +0000 (21:20 -0700)] 
Fixed buf resource leak in gz_compress when USE_MMAP is defined. (CID 298965)

4 years agoAllocate gzlib/gzread/gzwrite structs and in/out buffers using zng_alloc
Hans Kristian Rosbach [Sat, 12 Sep 2020 21:18:13 +0000 (23:18 +0200)] 
Allocate gzlib/gzread/gzwrite structs and in/out buffers using zng_alloc
instead of malloc, this also enforces data alignment.

4 years agoIncrease zng_alloc alignment to 64-bytes for non-MacOS platforms.
Hans Kristian Rosbach [Sat, 12 Sep 2020 20:55:02 +0000 (22:55 +0200)] 
Increase zng_alloc alignment to 64-bytes for non-MacOS platforms.

4 years agoImprove malloc.h handling in zutil.h
Hans Kristian Rosbach [Sat, 12 Sep 2020 18:24:42 +0000 (20:24 +0200)] 
Improve malloc.h handling in zutil.h

4 years agoSimplify zng_calloc and zng_cfree.
Hans Kristian Rosbach [Sat, 12 Sep 2020 17:54:38 +0000 (19:54 +0200)] 
Simplify zng_calloc and zng_cfree.
Make new static functions zng_alloc and zng_free available to other parts of the code.
Always request aligned allocations, even if UNALIGNED_OK is set.

4 years agoMake it possible to disable UNALIGNED[64]_OK in cmake.
Hans Kristian Rosbach [Fri, 11 Sep 2020 19:48:46 +0000 (21:48 +0200)] 
Make it possible to disable UNALIGNED[64]_OK in cmake.
Enable testing with -O3 and unaligned reads disabled.

4 years agoRemove some of the references to the unreleased zlib 1.2.12
Hans Kristian Rosbach [Sat, 12 Sep 2020 13:28:58 +0000 (15:28 +0200)] 
Remove some of the references to the unreleased zlib 1.2.12

4 years agoAdd CI testing of NOT_TWEAK_COMPILER
Hans Kristian Rosbach [Sat, 12 Sep 2020 10:26:22 +0000 (12:26 +0200)] 
Add CI testing of NOT_TWEAK_COMPILER

4 years agoImprove coverage data accuracy
Hans Kristian Rosbach [Sat, 12 Sep 2020 12:28:25 +0000 (14:28 +0200)] 
Improve coverage data accuracy

4 years agoEnable WITH_GZFILEOP by default in nmake Makefiles.
Mika Lindqvist [Sat, 12 Sep 2020 15:22:36 +0000 (18:22 +0300)] 
Enable WITH_GZFILEOP by default in nmake Makefiles.

4 years agoAdd support for ZLIB_COMPÅT in nmake Makefiles for ARM/AArch64.
Mika Lindqvist [Fri, 11 Sep 2020 13:25:56 +0000 (16:25 +0300)] 
Add support for ZLIB_COMPÅT in nmake Makefiles for ARM/AArch64.

4 years agoFixed description for INSTALL_UTILS in README.md.
Nathan Moinvaziri [Sat, 12 Sep 2020 21:31:40 +0000 (14:31 -0700)] 
Fixed description for INSTALL_UTILS in README.md.

4 years agoVarious small changes to README.md
Hans Kristian Rosbach [Thu, 10 Sep 2020 15:19:39 +0000 (17:19 +0200)] 
Various small changes to README.md

4 years agoReorder "Features" block in README.md
Hans Kristian Rosbach [Thu, 10 Sep 2020 15:09:24 +0000 (17:09 +0200)] 
Reorder "Features" block in README.md

4 years agoAdded AVX support to chunkset functions.
Nathan Moinvaziri [Mon, 29 Jun 2020 03:00:01 +0000 (20:00 -0700)] 
Added AVX support to chunkset functions.

4 years agoUpdate CI configs to account for gzfileops being on by default.
Hans Kristian Rosbach [Wed, 9 Sep 2020 09:43:31 +0000 (11:43 +0200)] 
Update CI configs to account for gzfileops being on by default.

4 years agoEnable gzfileops by default when compiling using Cmake or configure.
Hans Kristian Rosbach [Sun, 6 Sep 2020 14:34:01 +0000 (16:34 +0200)] 
Enable gzfileops by default when compiling using Cmake or configure.

4 years agoRemove FORCE_STATIC and FORCE_STORED
Hans Kristian Rosbach [Wed, 9 Sep 2020 09:21:49 +0000 (11:21 +0200)] 
Remove FORCE_STATIC and FORCE_STORED

4 years agoRename variable to correctly indicate register usage,
Hans Kristian Rosbach [Sun, 6 Sep 2020 15:10:42 +0000 (17:10 +0200)] 
Rename variable to correctly indicate register usage,
YMM (256bit) instead of ZMM (512bit) register usage.

4 years agotest/abicheck.md: document care and feeding of abicheck.sh
Dan Kegel [Mon, 31 Aug 2020 16:37:40 +0000 (09:37 -0700)] 
test/abicheck.md: document care and feeding of abicheck.sh

4 years agotest/abicheck.sh: new script to verify abi compatibility with older versions
Dan Kegel [Thu, 16 Jul 2020 16:59:52 +0000 (09:59 -0700)] 
test/abicheck.sh: new script to verify abi compatibility with older versions

Verifies that zlib-ng's ABI has not changed since the reference commit
(indicated by variables ABI_URL and ABI_COMMIT in the script).
If --zlib-compat is given, the reference commit is zlib's 1.2.11;
otherwise, it's zlib-ng's 1d2504ddc489 (for now).

Ignores new symbols entirely, as they probably don't break backwards compatibility.

Ignores warnings listed in test/abi/ignore, currently, just those related to internal_state or z_stream*.

If --refresh is given, actually checks out the reference commit,
builds it, and stores its ABI description into an .abi file;
otherwise just uses the .abi file saved in git for that CHOST.
(--refresh_if is similar, but only does the above if the file
is not present.)

Fixes https://github.com/zlib-ng/zlib-ng/issues/699

Known issues:
- pkgcheck.yml skips -m32 abicheck failures loudly until #705 is fixed
- although abicheck.sh supports -m32 (if in both CFLAGS and LDFLAGS), it doesn't yet support -32 in CONFIGURE_ARGS.
- only includes a few abi definitions; the rest can be added in a followon commit (see --refresh).

4 years agoClean up if blocks in deflate.c
Hans Kristian Rosbach [Sat, 29 Aug 2020 22:44:25 +0000 (00:44 +0200)] 
Clean up if blocks in deflate.c

4 years agolongest_match optimization
Hans Kristian Rosbach [Sat, 29 Aug 2020 16:58:23 +0000 (18:58 +0200)] 
longest_match optimization

4 years agoFix numerous sign-conversion warnings in compare256/compare258 and
Hans Kristian Rosbach [Sat, 29 Aug 2020 15:26:18 +0000 (17:26 +0200)] 
Fix numerous sign-conversion warnings in compare256/compare258 and
longest_match related code.

4 years agoMinor comments/whitespace cleanup
Hans Kristian Rosbach [Sat, 29 Aug 2020 11:48:23 +0000 (13:48 +0200)] 
Minor comments/whitespace cleanup

4 years agoReorder s->block_open and s->reproducible.
Hans Kristian Rosbach [Sat, 29 Aug 2020 08:50:50 +0000 (10:50 +0200)] 
Reorder s->block_open and s->reproducible.

4 years agoRemove s->method since it is always set to the same value and never read.
Hans Kristian Rosbach [Sat, 29 Aug 2020 08:40:27 +0000 (10:40 +0200)] 
Remove s->method since it is always set to the same value and never read.

4 years agoMove and reduce size of s->pending_buf_size
Hans Kristian Rosbach [Sat, 29 Aug 2020 08:29:43 +0000 (10:29 +0200)] 
Move and reduce size of s->pending_buf_size

4 years agoRename ZEXPORT and ZEXTERN for consistency.
Nathan Moinvaziri [Sun, 23 Aug 2020 01:25:24 +0000 (18:25 -0700)] 
Rename ZEXPORT and ZEXTERN for consistency.

4 years agoRename ZLIB_INTERNAL to Z_INTERNAL for consistency.
Nathan Moinvaziri [Sun, 23 Aug 2020 01:24:10 +0000 (18:24 -0700)] 
Rename ZLIB_INTERNAL to Z_INTERNAL for consistency.

4 years agoRename ZLIB_REGISTER to Z_REGISTER for consistency.
Nathan Moinvaziri [Sun, 23 Aug 2020 01:07:50 +0000 (18:07 -0700)] 
Rename ZLIB_REGISTER to Z_REGISTER for consistency.

4 years agoFix more conversion warnings related to s->bi_valid, stored_len and misc.
Hans Kristian Rosbach [Tue, 25 Aug 2020 14:36:28 +0000 (16:36 +0200)] 
Fix more conversion warnings related to s->bi_valid, stored_len and misc.

4 years agoFix some of the old and new conversion warnings in deflate*
Hans Kristian Rosbach [Tue, 25 Aug 2020 13:47:25 +0000 (15:47 +0200)] 
Fix some of the old and new conversion warnings in deflate*

4 years agoChanges to deflate's internal_state struct members:
Hans Kristian Rosbach [Mon, 24 Aug 2020 13:01:37 +0000 (15:01 +0200)] 
Changes to deflate's internal_state struct members:
- Change window_size from unsigned long to unsigned int
- Change block_start from long to int
- Change high_water from unsigned long to unsigned int
- Reorder to promote cache locality in hot code and decrease holes.

On x86_64 this means the struct goes from:
        /* size: 6008, cachelines: 94, members: 57 */
        /* sum members: 5984, holes: 6, sum holes: 24 */
        /* last cacheline: 56 bytes */

To:
        /* size: 5984, cachelines: 94, members: 57 */
        /* sum members: 5972, holes: 3, sum holes: 8 */
        /* padding: 4 */
        /* last cacheline: 32 bytes */

4 years agoRenamed trees_p.h to trees.h.
Nathan Moinvaziri [Wed, 26 Aug 2020 02:46:15 +0000 (19:46 -0700)] 
Renamed trees_p.h to trees.h.

4 years agoRename table headers with tbl suffix.
Nathan Moinvaziri [Mon, 24 Aug 2020 00:20:20 +0000 (17:20 -0700)] 
Rename table headers with tbl suffix.

4 years agoRevert "zng_tr_tally_lit: disable -Wtype-limits"
Ilya Leoshkevich [Wed, 26 Aug 2020 21:46:55 +0000 (23:46 +0200)] 
Revert "zng_tr_tally_lit: disable -Wtype-limits"

This makes MSVC unhappy:

https://github.com/zlib-ng/zlib-ng/pull/726#issuecomment-681128124

D:\a\zlib-ng\zlib-ng\deflate_p.h(36,9): warning C4068: unknown pragma 'GCC' [D:\a\zlib-ng\zlib-ng\zlib.vcxproj]

This reverts commit 24c442c606d9121da64b25693c9bb1a898b3553f.

4 years agoUse mainline codecov repository since codecov/codecov-python#169 has been merged.
Nathan Moinvaziri [Fri, 10 Jul 2020 21:09:43 +0000 (14:09 -0700)] 
Use mainline codecov repository since codecov/codecov-python#169 has been merged.

4 years agosend_bits_trace: placate -Wformat
Ilya Leoshkevich [Tue, 21 Jul 2020 11:18:10 +0000 (13:18 +0200)] 
send_bits_trace: placate -Wformat

value, which can be uint64_t, is printed using %llx, which, strictly
speaking, is not correct, and triggers -Wformat.

Since we don't really know what type value can have (send_bits_trace
is a macro), don't use <inttypes.h>, but rather cast it to long long.
Also cast length to int in order to prevent similar issues in the
future.

4 years agozng_tr_tally_lit: disable -Wtype-limits
Ilya Leoshkevich [Tue, 21 Jul 2020 11:15:07 +0000 (13:15 +0200)] 
zng_tr_tally_lit: disable -Wtype-limits

Some gcc versions complain that parameter c is always less than
MAX_MATCH-MIN_MATCH, and therefore the assertion that checks for this
is useless, but in reality some day MIN_MATCH and MAX_MATCH can change.

So disable the warning around the assertion.

4 years agoAdd optional support for thread local storage. (#733)
Nathan Moinvaziri [Sun, 23 Aug 2020 07:59:38 +0000 (00:59 -0700)] 
Add optional support for thread local storage. (#733)

4 years agoReintroduce support for ZLIB_CONST in compat mode. (#704)
Mika Lindqvist [Sun, 23 Aug 2020 07:58:57 +0000 (10:58 +0300)] 
Reintroduce support for ZLIB_CONST in compat mode. (#704)

* Reintroduce support for ZLIB_CONST in compat mode.

4 years agoIncrease hash table size from 15 to 16 bits.
Hans Kristian Rosbach [Fri, 21 Aug 2020 14:17:55 +0000 (16:17 +0200)] 
Increase hash table size from 15 to 16 bits.
This gives a good performance increase, and usually also improves compression.
Make separate define HASH_SLIDE for fallback version of UPDATE_HASH.

4 years agoReplace hash_bits, hash_size and hash_mask with defines.
Hans Kristian Rosbach [Fri, 21 Aug 2020 13:53:30 +0000 (15:53 +0200)] 
Replace hash_bits, hash_size and hash_mask with defines.

4 years agoPrecalculate match+offset pointer similar to fast-zlib.
Nathan Moinvaziri [Wed, 19 Aug 2020 21:13:04 +0000 (14:13 -0700)] 
Precalculate match+offset pointer similar to fast-zlib.

4 years agoCheck for match length exceeding lookahead each time a new best match is found. This...
Nathan Moinvaziri [Wed, 29 Jul 2020 06:34:11 +0000 (23:34 -0700)] 
Check for match length exceeding lookahead each time a new best match is found. This reduces some code complexity in GOTO_NEXT_CHAIN by removing the need for RETURN_BEST_LEN.

4 years agoUse unaligned 32-bit and 64-bit compare based on best match length when searching...
Nathan Moinvaziri [Sun, 26 Jul 2020 01:24:48 +0000 (21:24 -0400)] 
Use unaligned 32-bit and 64-bit compare based on best match length when searching for matches.
Move TRIGGER_LEVEL to match_tpl.h since it is only used in longest match.
Use early return inside match loops instead of cont variable.
Added back two variable check for platforms that don't supported unaligned access.

4 years agoUpdate SystemZ DFLTCC README
Ilya Leoshkevich [Thu, 20 Aug 2020 11:34:45 +0000 (13:34 +0200)] 
Update SystemZ DFLTCC README

4 years agoAdd DFLTCC to CI
Ilya Leoshkevich [Tue, 21 Jul 2020 11:15:23 +0000 (13:15 +0200)] 
Add DFLTCC to CI

QEMU does not support DFLTCC, but this would still check whether it
builds and gracefully falls back to software.

4 years agoFix DFLTCC not writing header bits when avail_out == 0
Ilya Leoshkevich [Thu, 13 Aug 2020 09:55:01 +0000 (11:55 +0200)] 
Fix DFLTCC not writing header bits when avail_out == 0

4 years agoFix DFLTCC ignoring flush modes when avail_in == 0
Ilya Leoshkevich [Thu, 13 Aug 2020 09:50:46 +0000 (11:50 +0200)] 
Fix DFLTCC ignoring flush modes when avail_in == 0

4 years agoFix DFLTCC not flushing EOBS when creating raw streams
Ilya Leoshkevich [Tue, 21 Jul 2020 10:54:18 +0000 (12:54 +0200)] 
Fix DFLTCC not flushing EOBS when creating raw streams

4 years agoImplement switching between DFLTCC and software
Ilya Leoshkevich [Tue, 21 Jul 2020 11:27:47 +0000 (13:27 +0200)] 
Implement switching between DFLTCC and software

4 years agoFix switching compression levels on older SystemZ machines
Ilya Leoshkevich [Tue, 21 Jul 2020 11:35:58 +0000 (13:35 +0200)] 
Fix switching compression levels on older SystemZ machines

When switching to a compression level that is in general supported by
the hardware accelerator, the code doesn't check whether acceleration is
available or enabled.

4 years agoUse 15-bit window for quick strategy when compiling with DFLTCC
Ilya Leoshkevich [Tue, 21 Jul 2020 12:05:25 +0000 (14:05 +0200)] 
Use 15-bit window for quick strategy when compiling with DFLTCC

Hardware accelerator does not support 13-bit window.

4 years agoFix building DFLTCC with clang
Ilya Leoshkevich [Thu, 13 Aug 2020 09:56:41 +0000 (11:56 +0200)] 
Fix building DFLTCC with clang

4 years agoFix dfltcc_deflate.c build
Ilya Leoshkevich [Tue, 21 Jul 2020 11:15:17 +0000 (13:15 +0200)] 
Fix dfltcc_deflate.c build

bi_windup and send_bits were moved to tree_emit.h, so include it.

4 years agoFix DFLTCC detection
Ilya Leoshkevich [Fri, 14 Aug 2020 11:50:39 +0000 (13:50 +0200)] 
Fix DFLTCC detection

On some Z machines ARCH is determined to be s390, not s390x, which
prevents DFLTCC support from being built. In general, it is safe to
build zlib-ng with DFLTCC support on any SystemZ machine, because its
usage is guarded by STFLE.

4 years agoAdd toolchain files for cross-compiling MinGW on Linux.
Mika Lindqvist [Thu, 20 Aug 2020 12:50:33 +0000 (15:50 +0300)] 
Add toolchain files for cross-compiling MinGW on Linux.

4 years agoRemove return value from insert_string, since it is always ignored and
Hans Kristian Rosbach [Thu, 20 Aug 2020 14:09:23 +0000 (16:09 +0200)] 
Remove return value from insert_string, since it is always ignored and
quick_insert_string is being used instead.

4 years agoNow that the check is out of the loop, it is also safe to remove it
Hans Kristian Rosbach [Wed, 19 Aug 2020 08:50:44 +0000 (10:50 +0200)] 
Now that the check is out of the loop, it is also safe to remove it
and unconditionally return head.

4 years agoMinor optimization of insert_string template.
Hans Kristian Rosbach [Tue, 18 Aug 2020 16:17:45 +0000 (18:17 +0200)] 
Minor optimization of insert_string template.

4 years agoStore hash_mask in local variable for insert_string loop.
Nathan Moinvaziri [Wed, 19 Aug 2020 00:46:55 +0000 (17:46 -0700)] 
Store hash_mask in local variable for insert_string loop.

4 years agoMove zero check for insert_string count to fill_window since it is the only place...
Nathan Moinvaziri [Wed, 19 Aug 2020 00:45:48 +0000 (17:45 -0700)] 
Move zero check for insert_string count to fill_window since it is the only place where count is ever passed as zero.

4 years agoFix if statements in cmake failing because variables are unquoted.
Hans Kristian Rosbach [Thu, 20 Aug 2020 14:10:57 +0000 (16:10 +0200)] 
Fix if statements in cmake failing because variables are unquoted.
Exposed by #729, but does not fix the real problems there.

4 years agoFix testsuite warnings on Windows, using PRIu64
Josh Triplett [Sun, 16 Aug 2020 23:12:13 +0000 (16:12 -0700)] 
Fix testsuite warnings on Windows, using PRIu64

zlib-ng already counts on inttypes.h and stdint.h, so use those to avoid
printf-related warnings by casting integer fields whose size may vary to
uint64_t and printing them that way.

4 years agozlib.h: Use unsigned long for totals, for compatibility with zlib on 64-bit Windows
Josh Triplett [Sun, 16 Aug 2020 17:39:24 +0000 (10:39 -0700)] 
zlib.h: Use unsigned long for totals, for compatibility with zlib on 64-bit Windows

Stock zlib uses unsigned long for total_in and total_out. On 64-bit
Windows, that isn't the same as size_t.

4 years agoHarmonize the CPU architecture preprocessor definitions.
Nathan Moinvaziri [Sun, 16 Aug 2020 03:45:41 +0000 (20:45 -0700)] 
Harmonize the CPU architecture preprocessor definitions.

4 years agoPrevent unaligned double word access on ARMv7 in put_uint64
NiLuJe [Sun, 2 Aug 2020 18:22:04 +0000 (20:22 +0200)] 
Prevent unaligned double word access on ARMv7 in put_uint64

By implementing a (UNALIGNED_OK && !UNALIGNED64_OK) codepath.

4 years agoPrevent unaligned double word accesses on ARMv7 in chunkset_c
NiLuJe [Sun, 2 Aug 2020 18:20:56 +0000 (20:20 +0200)] 
Prevent unaligned double word accesses on ARMv7 in chunkset_c

Requires some mild trickery to walk the edge between readability and
doing what it needs to.

4 years agoCorrect some typos in README.md
Andrea Canciani [Thu, 20 Aug 2020 09:25:07 +0000 (11:25 +0200)] 
Correct some typos in README.md

Jus some minor typos :)

4 years agoHonor CFLAGS when linking
NiLuJe [Sun, 2 Aug 2020 18:15:52 +0000 (20:15 +0200)] 
Honor CFLAGS when linking

It's the GCC driver, honor CFLAGS to make stuff consistent.
(Allows one to actually get an LTO build w/ debug info, for
instance).

4 years agoRemove NO_DIVIDE from adler32.
Nathan Moinvaziri [Sun, 16 Aug 2020 03:06:26 +0000 (20:06 -0700)] 
Remove NO_DIVIDE from adler32.

4 years agoOptimize inflate_fast for a 0.8% speedup
Josh Triplett [Fri, 14 Aug 2020 03:59:17 +0000 (20:59 -0700)] 
Optimize inflate_fast for a 0.8% speedup

When inflate_fast checks for extra length bits, it first checks if the
number of extra length bits (in op) is non-zero. However, if the number
of extra length bits is 0, the `bits < op` check will be false, BITS(op)
will be 0, and DROPBITS(op) will do nothing. So, drop the conditional,
for a speedup of about 0.8%.

This makes the handling of extra length bits match the handling of extra
dist bits, which already lacks the extra conditional.

4 years agoDon't let the compiler switch to 64bit vectors behind our back.
NiLuJe [Sun, 2 Aug 2020 18:18:57 +0000 (20:18 +0200)] 
Don't let the compiler switch to 64bit vectors behind our back.

On ARMv7, they have more stringent alignment requirements,
which aren't accounted for.

4 years agoFix inconsistent wildcards in CHOST canonicalization script
NiLuJe [Sun, 2 Aug 2020 18:14:03 +0000 (20:14 +0200)] 
Fix inconsistent wildcards in CHOST canonicalization script

Should prevent mangling actually sane four-part CHOSTs,
while not regressing #666

4 years agoUpdate clang static analyzer to version 12
Gabriel A. Devenyi [Fri, 14 Aug 2020 13:23:38 +0000 (09:23 -0400)] 
Update clang static analyzer to version 12

4 years agoStyle cleanup.
Mika Lindqvist [Fri, 17 Jul 2020 18:03:52 +0000 (21:03 +0300)] 
Style cleanup.

* Remove space between function name and opening parenthesis
* Remove space closing parenthesis of cast and variable name

4 years agoFix signature of crc32_combine(), crc32_combine64() and crc32_z() in compat mode.
Mika Lindqvist [Fri, 17 Jul 2020 00:52:29 +0000 (03:52 +0300)] 
Fix signature of crc32_combine(), crc32_combine64() and crc32_z() in compat mode.

4 years agoCast wsize as early as possible in slide_hash for AVX2 and SSE2.
Nathan Moinvaziri [Sun, 2 Aug 2020 18:20:43 +0000 (11:20 -0700)] 
Cast wsize as early as possible in slide_hash for AVX2 and SSE2.

4 years agoFixed possible loss of data warning in h2b in infcover on Windows.
Nathan Moinvaziri [Sat, 4 Jul 2020 03:38:36 +0000 (20:38 -0700)] 
Fixed possible loss of data warning in h2b in infcover on Windows.

    infcover.c(247,35): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data

4 years agoFixed many possible loss of data warnings where insert_string and quick_insert_string...
Nathan Moinvaziri [Sat, 4 Jul 2020 03:37:11 +0000 (20:37 -0700)] 
Fixed many possible loss of data warnings where insert_string and quick_insert_string function used on Windows.

4 years agoFixed possible loss of data warning in LONGEST_MATCH.
Nathan Moinvaziri [Sat, 4 Jul 2020 03:31:36 +0000 (20:31 -0700)] 
Fixed possible loss of data warning in LONGEST_MATCH.

    match_tpl.h(69,64): warning C4244: '=': conversion from 'unsigned int' to 'Pos', possible loss of data

4 years agoFixed conversion from unsigned int to short warning in slide_hash_sse2 and slide_hash...
Nathan Moinvaziri [Sat, 4 Jul 2020 03:28:33 +0000 (20:28 -0700)] 
Fixed conversion from unsigned int to short warning in slide_hash_sse2 and slide_hash_avx2.

    slide_sse.c(20,51): warning C4244: 'function': conversion from 'unsigned int' to 'short', possible loss of data
    slide_avx.c(21,54): warning C4244: 'function': conversion from 'unsigned int' to 'short', possible loss of data

4 years agoFixed warning about indexing literal string in GCC macOS
Nathan Moinvaziri [Sat, 4 Jul 2020 03:24:38 +0000 (20:24 -0700)] 
Fixed warning about indexing literal string in GCC macOS

    infcover.c:378:56: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
    infcover.c:378:56: note: use array indexing to silence this warning

4 years agoRemoved unnecessary header guards in adler32 source files.
Nathan Moinvaziri [Sat, 4 Jul 2020 03:18:01 +0000 (20:18 -0700)] 
Removed unnecessary header guards in adler32 source files.

4 years agoFixed warning about no newline at the end of adler32_ssse3.c.
Nathan Moinvaziri [Sat, 4 Jul 2020 03:16:56 +0000 (20:16 -0700)] 
Fixed warning about no newline at the end of adler32_ssse3.c.

    adler32_ssse3.c:123:7: warning: no newline at end of file [-Wnewline-eof]

5 years agoRemove ARM crc instruction set from NEONFLAG. The crc instruction set is not used...
Nathan Moinvaziri [Sun, 12 Jul 2020 17:24:33 +0000 (10:24 -0700)] 
Remove ARM crc instruction set from NEONFLAG. The crc instruction set is not used for neon source files. It may have been necessary back when the NEONFLAG was applied to all source files in CMake. Configure script does not apply crc instruction set when setting neon flags.

5 years agoFixed extra symbols added to ABI when zlib-compat specified.
Nathan Moinvaziri [Sun, 5 Jul 2020 18:13:20 +0000 (11:13 -0700)] 
Fixed extra symbols added to ABI when zlib-compat specified.

5 years agoRemove forward declarations for stub functions and have one forward declaration for...
Nathan Moinvaziri [Mon, 13 Jul 2020 23:02:47 +0000 (16:02 -0700)] 
Remove forward declarations for stub functions and have one forward declaration for functable instead.

5 years agoStyle cleanup.
Mika Lindqvist [Fri, 17 Jul 2020 17:55:25 +0000 (20:55 +0300)] 
Style cleanup.
* Remove space between function name and opening parenthesis
* Remove space closing parenthesis of cast and variable name