]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
7 years ago__builtin_prefetch did probably not exist before gcc 3.1. 1139/head
fbrosson [Fri, 18 May 2018 18:40:11 +0000 (18:40 +0000)] 
__builtin_prefetch did probably not exist before gcc 3.1.

7 years agoMerge pull request #1140 from fbrosson/cpu-asm
Yann Collet [Fri, 18 May 2018 17:32:16 +0000 (10:32 -0700)] 
Merge pull request #1140 from fbrosson/cpu-asm

Drop colon in asm snippet to make old versions of gcc happy.

7 years agoDrop colon in asm snippet to make old versions of gcc happy. 1140/head
fbrosson [Fri, 18 May 2018 17:05:36 +0000 (17:05 +0000)] 
Drop colon in asm snippet to make old versions of gcc happy.

7 years agoMerge pull request #1135 from facebook/frameCSize
Yann Collet [Tue, 15 May 2018 18:02:53 +0000 (11:02 -0700)] 
Merge pull request #1135 from facebook/frameCSize

decompress: changed error code when input is too large

7 years agoMerge pull request #1136 from terrelln/fix
Yann Collet [Tue, 15 May 2018 18:02:01 +0000 (11:02 -0700)] 
Merge pull request #1136 from terrelln/fix

Fix failing Travis tests

7 years agoFix failing Travis tests 1136/head
Nick Terrell [Tue, 15 May 2018 16:46:20 +0000 (09:46 -0700)] 
Fix failing Travis tests

7 years agoMerge pull request #1127 from facebook/staticDictCost
Yann Collet [Tue, 15 May 2018 00:45:50 +0000 (17:45 -0700)] 
Merge pull request #1127 from facebook/staticDictCost

Improved optimal parser with dictionary

7 years agodecompress: changed error code when input is too large 1135/head
Yann Collet [Mon, 14 May 2018 22:32:28 +0000 (15:32 -0700)] 
decompress: changed error code when input is too large

ZSTD_decompress() can decompress multiple frames sent as a single input.
But the input size must be the exact sum of all compressed frames, no more.

In the case of a mistake on srcSize, being larger than required,
ZSTD_decompress() will try to decompress a new frame after current one, and fail.
As a consequence, it will issue an error code, ERROR(prefix_unknown).

While the error is technically correct
(the decoder could not recognise the header of _next_ frame),
it's confusing, as users will believe that the first header of the first frame is wrong,
which is not the case (it's correct).
It makes it more difficult to understand that the error is in the source size, which is too large.

This patch changes the error code provided in such a scenario.
If (at least) a first frame was successfully decoded,
and then following bytes are garbage values,
the decoder assumes the provided input size is wrong (too large),
and issue the error code ERROR(srcSize_wrong).

7 years agoMerge pull request #1131 from facebook/zstdcli
Yann Collet [Mon, 14 May 2018 18:53:58 +0000 (11:53 -0700)] 
Merge pull request #1131 from facebook/zstdcli

minor: control numeric argument overflow

7 years agoMerge pull request #1130 from facebook/man
Yann Collet [Mon, 14 May 2018 18:52:53 +0000 (11:52 -0700)] 
Merge pull request #1130 from facebook/man

fix #1115

7 years agoMerge pull request #1129 from facebook/paramgrill
Yann Collet [Mon, 14 May 2018 18:52:41 +0000 (11:52 -0700)] 
Merge pull request #1129 from facebook/paramgrill

Paramgrill refactoring

7 years agoMerge pull request #1133 from felixhandte/travis-fix
Yann Collet [Mon, 14 May 2018 16:59:43 +0000 (09:59 -0700)] 
Merge pull request #1133 from felixhandte/travis-fix

Make Travis CI Run `apt-get update`

7 years agoTravis CI Runs apt-get Update 1133/head
W. Felix Handte [Mon, 14 May 2018 15:55:21 +0000 (11:55 -0400)] 
Travis CI Runs apt-get Update

7 years agoparamgrill: use NB_LEVELS_TRACKED in loop 1129/head
Yann Collet [Mon, 14 May 2018 00:25:53 +0000 (17:25 -0700)] 
paramgrill: use NB_LEVELS_TRACKED in loop

make it easier to generate/track more levels
than ZSTD_maxClevel()

7 years agocli: control numeric argument overflow 1131/head
Yann Collet [Sat, 12 May 2018 21:29:33 +0000 (14:29 -0700)] 
cli: control numeric argument overflow

exit on overflow
backported from paramgrill
added associated test case

7 years agominor : factor out errorOut()
Yann Collet [Sat, 12 May 2018 19:34:34 +0000 (12:34 -0700)] 
minor : factor out errorOut()

7 years agofix #1115 1130/head
Yann Collet [Sat, 12 May 2018 17:21:30 +0000 (10:21 -0700)] 
fix #1115

7 years agoparamgrill: subtle change in level spacing
Yann Collet [Sat, 12 May 2018 16:40:04 +0000 (09:40 -0700)] 
paramgrill: subtle change in level spacing

distance between levels is slightly increased
to compensate for level 1 speed improvements
and the will to have stronger level 19
extending the range of speed to cover.

7 years agoadded programmable constraints
Yann Collet [Sat, 12 May 2018 02:43:08 +0000 (19:43 -0700)] 
added programmable constraints

7 years agogeneralized use of readU32FromChar()
Yann Collet [Sat, 12 May 2018 00:32:26 +0000 (17:32 -0700)] 
generalized use of readU32FromChar()

and check input overflow

7 years agoreplaced FSE_count by FSE_count_simple 1127/head
Yann Collet [Fri, 11 May 2018 22:54:06 +0000 (15:54 -0700)] 
replaced FSE_count by FSE_count_simple

to reduce usage of stack memory.

Also : tweaked a few comments, as suggested by @terrelln

7 years agoMerge pull request #1128 from facebook/libdir
Yann Collet [Fri, 11 May 2018 18:47:59 +0000 (11:47 -0700)] 
Merge pull request #1128 from facebook/libdir

minor Makefile patch

7 years agominor patch, ensuring LIBDIR is created before installation 1128/head
Yann Collet [Fri, 11 May 2018 18:31:48 +0000 (11:31 -0700)] 
minor patch, ensuring LIBDIR is created before installation

follow-up from #1123

7 years agofixed wrong assertion
Yann Collet [Fri, 11 May 2018 02:48:09 +0000 (19:48 -0700)] 
fixed wrong assertion

base can actually overflow

7 years agofixed c++ conversion warning
Yann Collet [Fri, 11 May 2018 01:17:21 +0000 (18:17 -0700)] 
fixed c++ conversion warning

7 years agominor adjusting of weights
Yann Collet [Fri, 11 May 2018 01:13:48 +0000 (18:13 -0700)] 
minor adjusting of weights

7 years agoopt: init statistics from dictionary
Yann Collet [Fri, 11 May 2018 00:59:12 +0000 (17:59 -0700)] 
opt: init statistics from dictionary

instead of starting from fake "default" statistics.

7 years agobtopt : minor adjustment of update frequencies
Yann Collet [Thu, 10 May 2018 23:32:36 +0000 (16:32 -0700)] 
btopt : minor adjustment of update frequencies

7 years agoMerge pull request #1123 from baruchsiach/fix-install-pc
Yann Collet [Thu, 10 May 2018 17:38:19 +0000 (10:38 -0700)] 
Merge pull request #1123 from baruchsiach/fix-install-pc

lib/Makefile: create include directory before headers installation

7 years agoopt: minor improvements to log traces
Yann Collet [Wed, 9 May 2018 22:46:11 +0000 (15:46 -0700)] 
opt: minor improvements to log traces

slight improvement when using fractional-bit evaluation (opt:dictionay)

7 years agofixed declaration-after-statement warning
Yann Collet [Wed, 9 May 2018 19:07:25 +0000 (12:07 -0700)] 
fixed declaration-after-statement warning

7 years agoadded traces to look at symbol costs
Yann Collet [Wed, 9 May 2018 19:00:12 +0000 (12:00 -0700)] 
added traces to look at symbol costs

evaluation looks correct.

7 years agoswitchable bit-approximation / fractional-bit accuracy modes
Yann Collet [Wed, 9 May 2018 17:48:09 +0000 (10:48 -0700)] 
switchable bit-approximation / fractional-bit accuracy modes

also : makes it possible to select nb of fractional bits.

7 years agoMerge pull request #1124 from terrelln/playtests-gnu
Yann Collet [Wed, 9 May 2018 16:39:02 +0000 (09:39 -0700)] 
Merge pull request #1124 from terrelln/playtests-gnu

Write to /dev/random for test

7 years agoimplemented fractional bit cost evaluation
Yann Collet [Wed, 9 May 2018 00:43:13 +0000 (17:43 -0700)] 
implemented fractional bit cost evaluation

for FSE symbols.

While it seems to work, the gains are negligible compared to rough maxNbBits evaluation.
There are even a few losses sometimes, that still need to be explained.
Furthermode, there are still cases where btlazy2 does a better job than btopt,
which seems rather strange too.

7 years agoopt: shift all costs by 8 bits (* 256)
Yann Collet [Tue, 8 May 2018 23:19:04 +0000 (16:19 -0700)] 
opt: shift all costs by 8 bits (* 256)

making it possible to represent fractional bit costs.

7 years agoopt: estimate cost of both Hufman and FSE symbols
Yann Collet [Tue, 8 May 2018 23:11:21 +0000 (16:11 -0700)] 
opt: estimate cost of both Hufman and FSE symbols

For FSE symbols : provide an upper bound,
in nb of bits,
since cost function is not able to store fractional bit costs.

7 years agopass entropy tables to optimal parser
Yann Collet [Tue, 8 May 2018 22:37:06 +0000 (15:37 -0700)] 
pass entropy tables to optimal parser

for proper estimation of symbol's weights
when using dictionary compression.

Note : using only huffman costs is not good enough,
presumably because sequence symbol costs are incorrect.

7 years agominor code refactor for readability
Yann Collet [Tue, 8 May 2018 19:32:16 +0000 (12:32 -0700)] 
minor code refactor for readability

removed some useless operations from optimal parser
(should not change performance, too small a difference)

7 years agoWrite to /dev/random for test 1124/head
Nick Terrell [Tue, 8 May 2018 18:06:01 +0000 (11:06 -0700)] 
Write to /dev/random for test

7 years agolib/Makefile: create include directory before headers installation 1123/head
Baruch Siach [Tue, 8 May 2018 17:43:28 +0000 (20:43 +0300)] 
lib/Makefile: create include directory before headers installation

Make sure that $(INCLUDEDIR) exists before copying the headers there.
Otherwise, the contest of header files is copied over
$(DESTDIR)$(INCLUDEDIR), making it a regular file.

While at it, remove $(DESTDIR)$(INCLUDEDIR) from the list of directories
to create in the install-pc target. The install-pc target does not need
this directory.

7 years agoMerge pull request #1122 from facebook/fixCDictBlock
Yann Collet [Tue, 8 May 2018 00:13:59 +0000 (17:13 -0700)] 
Merge pull request #1122 from facebook/fixCDictBlock

fix ZSTD_compressBlock() associated with ZSTD_CDict

7 years agofix ZSTD_compressBlock() associated with CDict 1122/head
Yann Collet [Mon, 7 May 2018 19:54:13 +0000 (12:54 -0700)] 
fix ZSTD_compressBlock() associated with CDict

reported by @let-def.

It's actually a bug in ZSTD_compressBegin_usingCDict()
which would pass a wrong pledgedSrcSize value (0 instead of ZSTD_CONTENTSIZE_UNKNOWN)
resulting in wrong window size, resulting in downsized seqStore,
resulting in segfault when writing into the seqStore later in the process.

Added a test in fuzzer to cover this use case (fails before the patch).

7 years agoMerge pull request #1120 from lamby/897904-libzstd-please-make-the-build-reproducible
Yann Collet [Fri, 4 May 2018 19:39:40 +0000 (12:39 -0700)] 
Merge pull request #1120 from lamby/897904-libzstd-please-make-the-build-reproducible

Make the build reproducible

7 years agoMake the build reproducible 1120/head
Chris Lamb [Fri, 4 May 2018 15:39:03 +0000 (08:39 -0700)] 
Make the build reproducible

Whilst working on the Reproducible Builds effort [0], we noticed
that zstd could not be built reproducibly.

This is due to the manual page encoding the number of CPUs from the
build machine and thus varies across builds.

This was originally filed in Debian as #897904 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/897904

Signed-off-by: Chris Lamb <lamby@debian.org>
7 years agoMerge pull request #1118 from terrelln/playtests-typo
Yann Collet [Thu, 3 May 2018 21:26:26 +0000 (14:26 -0700)] 
Merge pull request #1118 from terrelln/playtests-typo

Fix playTests.sh typo

7 years agoFix playTests.sh typo 1118/head
Nick Terrell [Thu, 3 May 2018 20:03:08 +0000 (13:03 -0700)] 
Fix playTests.sh typo

Thanks to @mestia for reporting and finding the bug!
Fixes #1116.

7 years agoignore Windows build/test artefacts
cyan4973 [Tue, 1 May 2018 12:45:46 +0000 (05:45 -0700)] 
ignore Windows build/test artefacts

7 years agoMerge pull request #1114 from pseiderer/ps-devel-001
Yann Collet [Mon, 30 Apr 2018 21:59:59 +0000 (14:59 -0700)] 
Merge pull request #1114 from pseiderer/ps-devel-001

Split library install target into pc, static, shared and include only target

7 years agoClarifications of Zstandard format specification
Yann Collet [Mon, 30 Apr 2018 18:35:49 +0000 (11:35 -0700)] 
Clarifications of Zstandard format specification

from IETF RFC review

7 years agoSplit library install target into pc, static, shared and include only target 1114/head
Peter Seiderer [Mon, 16 Apr 2018 18:44:49 +0000 (20:44 +0200)] 
Split library install target into pc, static, shared and include only target

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
7 years agoMerge pull request #1113 from terrelln/dict-fix
Yann Collet [Thu, 26 Apr 2018 17:31:25 +0000 (10:31 -0700)] 
Merge pull request #1113 from terrelln/dict-fix

Fix parameter adjustment with dictionary

7 years agoFix parameter adjustment with dictionary 1113/head
Nick Terrell [Wed, 25 Apr 2018 23:32:29 +0000 (16:32 -0700)] 
Fix parameter adjustment with dictionary

The new advanced API basically set `requestedParams = appliedParams` when
using a dictionary. This halted all parameter adjustment, which can hurt
compression ratio if, for example, the window log is small for the first
call, but the rest of the files are large.

This patch fixes the bug, and checks that the `requestedParams` don't change
in the new advanced API when using a dictionary, and generally in the fuzzer.

7 years agoclarified documentation related to refPrefix()
Yann Collet [Wed, 25 Apr 2018 17:15:43 +0000 (10:15 -0700)] 
clarified documentation related to refPrefix()

7 years agoMerge pull request #1112 from facebook/lz4dec
Yann Collet [Tue, 24 Apr 2018 23:50:54 +0000 (16:50 -0700)] 
Merge pull request #1112 from facebook/lz4dec

fixed decoding bogus lz4 frame

7 years agoupdated documentation of streaming compression api
Yann Collet [Tue, 24 Apr 2018 21:44:27 +0000 (14:44 -0700)] 
updated documentation of streaming compression api

7 years agofixed decoding bogus lz4 frame 1112/head
cyan4973 [Tue, 24 Apr 2018 01:50:16 +0000 (18:50 -0700)] 
fixed decoding bogus lz4 frame

FIO would keep presenting data after an LZ4F decoding error
resulting in a NULL pointer dereference
when associated with older liblz4 version (< v1.8.1.2)

7 years agoFix the problem that enables DYNAMIC_BMI2 macro by mistake on ARM architecture with...
taigacon [Mon, 23 Apr 2018 22:41:50 +0000 (06:41 +0800)] 
Fix the problem that enables DYNAMIC_BMI2 macro by mistake on ARM architecture with Clang (#1110)

7 years agoMerge pull request #1107 from terrelln/reset-params
Yann Collet [Fri, 13 Apr 2018 20:23:47 +0000 (13:23 -0700)] 
Merge pull request #1107 from terrelln/reset-params

Add ZSTD_CCtx_resetParameters() function

7 years agoFix documentation 1107/head
Nick Terrell [Fri, 13 Apr 2018 19:43:38 +0000 (12:43 -0700)] 
Fix documentation

7 years agoOnly reset CDict in ZSTD_CCtx_resetParameters()
Nick Terrell [Fri, 13 Apr 2018 18:26:40 +0000 (11:26 -0700)] 
Only reset CDict in ZSTD_CCtx_resetParameters()

7 years agoAdd ZSTD_CCtx_resetParameters() function
Nick Terrell [Thu, 12 Apr 2018 23:54:07 +0000 (16:54 -0700)] 
Add ZSTD_CCtx_resetParameters() function

* Fix docs for `ZSTD_CCtx_reset()`.
* Add `ZSTD_CCtx_resetParameters()`.

Fixes #1094.

7 years agoEnforce pledgeSrcSize whenever known (#1106)
Nick Terrell [Thu, 12 Apr 2018 23:02:03 +0000 (16:02 -0700)] 
Enforce pledgeSrcSize whenever known (#1106)

The test fails before the patch and passes after.

Fixes #1095.

7 years agoMerge pull request #1105 from terrelln/get-param
Yann Collet [Thu, 12 Apr 2018 20:25:57 +0000 (13:25 -0700)] 
Merge pull request #1105 from terrelln/get-param

Add ZSTD_CCtx(Param)?_getParameter() function

7 years agoAdd ZSTD_CCtx(Param)?_getParameter() function 1105/head
Nick Terrell [Thu, 12 Apr 2018 18:50:12 +0000 (11:50 -0700)] 
Add ZSTD_CCtx(Param)?_getParameter() function

Closes #1096.

7 years agodoc : clarified advanced API usage
Yann Collet [Tue, 10 Apr 2018 18:40:36 +0000 (11:40 -0700)] 
doc : clarified advanced API usage

sticky parameters only work with `ZSTD_compress_generic()`

7 years agoupdated comment on parameters that can be changed during compression
Yann Collet [Tue, 10 Apr 2018 00:39:07 +0000 (17:39 -0700)] 
updated comment on parameters that can be changed during compression

7 years agoMerge pull request #1104 from terrelln/fast-train
Yann Collet [Mon, 9 Apr 2018 21:16:20 +0000 (14:16 -0700)] 
Merge pull request #1104 from terrelln/fast-train

Allow negative compression levels in training

7 years agoAllow negative compression levels in training 1104/head
Nick Terrell [Mon, 9 Apr 2018 19:09:28 +0000 (12:09 -0700)] 
Allow negative compression levels in training

* Set `dictCLevel` in `zstdcli.c`.
* Only set to default level if the compression level `== 0`, not `<= 0`.

7 years agoMerge pull request #1103 from kilobyte/dev
Yann Collet [Mon, 9 Apr 2018 18:12:51 +0000 (11:12 -0700)] 
Merge pull request #1103 from kilobyte/dev

Fix riscv.

7 years agoUse -pthread rather than -lpthread. 1103/head
Adam Borowski [Sun, 8 Apr 2018 23:50:49 +0000 (01:50 +0200)] 
Use -pthread rather than -lpthread.

It can have other effects, such as pulling in extra libraries.  Without it,
riscv build fails with undefined reference to `__atomic_compare_exchange_1'.

7 years agoMerge pull request #1100 from bket/stable_sort
Yann Collet [Thu, 5 Apr 2018 18:39:27 +0000 (11:39 -0700)] 
Merge pull request #1100 from bket/stable_sort

zstd requires a stable sort.

7 years agoupdated ZSTD_p_chainLog description
Yann Collet [Thu, 5 Apr 2018 18:05:11 +0000 (11:05 -0700)] 
updated ZSTD_p_chainLog description

7 years agoMerge pull request #1099 from bket/fix_typo
Yann Collet [Thu, 5 Apr 2018 17:30:35 +0000 (10:30 -0700)] 
Merge pull request #1099 from bket/fix_typo

fix typo in programs/zstd.{1,1.md}

7 years agozstd requires a stable sort. 1100/head
Björn Ketelaars [Thu, 5 Apr 2018 05:17:17 +0000 (07:17 +0200)] 
zstd requires a stable sort.

On OpenBSD qsort() is not guaranteed to be stable, their mergesort() is.
This fixes issue #1088. All the hard work has been done by @terrelln.

7 years agofix typo in programs/zstd.{1,1.md} 1099/head
Björn Ketelaars [Thu, 5 Apr 2018 04:35:11 +0000 (06:35 +0200)] 
fix typo in programs/zstd.{1,1.md}

s/nodictID/no-dictID/g

7 years agoMerge pull request #1098 from terrelln/nd-mt
Yann Collet [Mon, 2 Apr 2018 22:38:20 +0000 (15:38 -0700)] 
Merge pull request #1098 from terrelln/nd-mt

Only load extra table positions for CDicts

7 years agoOnly load extra table positions for CDicts 1098/head
Nick Terrell [Mon, 2 Apr 2018 21:41:30 +0000 (14:41 -0700)] 
Only load extra table positions for CDicts

Zstdmt uses prefixes to load the overlap between segments. Loading extra
positions makes compression non-deterministic, depending on the previous
job the context was used for. Since loading extra position takes extra
time as well, only do it when creating a `ZSTD_CDict`.

Fixes #1077.

7 years agoMerge pull request #1089 from bket/portability
Yann Collet [Mon, 2 Apr 2018 21:16:16 +0000 (14:16 -0700)] 
Merge pull request #1089 from bket/portability

examples/Makefile assumes GNU make.

7 years agoMerge pull request #1090 from bket/openbsd
Yann Collet [Mon, 2 Apr 2018 21:15:26 +0000 (14:15 -0700)] 
Merge pull request #1090 from bket/openbsd

Fix building zstd on OpenBSD.

7 years agoMake sure that make check runs on OpenBSD. (#1091)
bket [Mon, 2 Apr 2018 21:12:18 +0000 (23:12 +0200)] 
Make sure that make check runs on OpenBSD. (#1091)

OpenBSD uses md5 instead of md5sum, and has no device called full.

With this patch, make check runs until #1088. With the assumption made
in the issue make check runs succesfully.

7 years agoMerge pull request #1080 from facebook/getFrameHeader
Yann Collet [Sun, 1 Apr 2018 21:27:46 +0000 (14:27 -0700)] 
Merge pull request #1080 from facebook/getFrameHeader

 added ZSTD_getFrameHeader_advanced()

7 years agoFix building zstd on OpenBSD. 1090/head
Björn Ketelaars [Sat, 31 Mar 2018 08:44:51 +0000 (10:44 +0200)] 
Fix building zstd on OpenBSD.

7 years agoexamples/Makefile assumes GNU make. 1089/head
Björn Ketelaars [Sat, 31 Mar 2018 08:25:07 +0000 (10:25 +0200)] 
examples/Makefile assumes GNU make.

This fixes a building issue on systems that default to a different
flavour of make (as is the case with OpenBSD).

7 years agofixed comments as suggested by @terrelln 1080/head
Yann Collet [Sat, 31 Mar 2018 03:09:27 +0000 (20:09 -0700)] 
fixed comments as suggested by @terrelln

7 years agoMerge pull request #1086 from hagemt/hagemt-patch-1
Yann Collet [Sat, 31 Mar 2018 02:45:10 +0000 (20:45 -0600)] 
Merge pull request #1086 from hagemt/hagemt-patch-1

 Correct small typo in manual (man file and markdown)

7 years agoUpdate zstd.1.md 1086/head
Tor E Hagemann [Fri, 30 Mar 2018 22:25:32 +0000 (15:25 -0700)] 
Update zstd.1.md

7 years agoUpdate zstd.1
Tor E Hagemann [Fri, 30 Mar 2018 21:53:57 +0000 (14:53 -0700)] 
Update zstd.1

7 years agoMerge pull request #1079 from facebook/ovlog
Yann Collet [Fri, 30 Mar 2018 21:52:07 +0000 (15:52 -0600)] 
Merge pull request #1079 from facebook/ovlog

restore ability to set overlapLog

7 years agoMerge pull request #1085 from terrelln/readme
Yann Collet [Fri, 30 Mar 2018 21:51:51 +0000 (15:51 -0600)] 
Merge pull request #1085 from terrelln/readme

Clarify license in the second paragraph

7 years agoClarify license in the second paragraph 1085/head
Nick Terrell [Fri, 30 Mar 2018 19:39:58 +0000 (12:39 -0700)] 
Clarify license in the second paragraph

7 years agoadded ZSTD_getFrameHeader_advanced()
Yann Collet [Thu, 29 Mar 2018 23:51:08 +0000 (17:51 -0600)] 
added ZSTD_getFrameHeader_advanced()

makes it possible to request frame header from a magicless frame

7 years agoadded more code documentation for ZSTD_getFrameHeader()
Yann Collet [Thu, 29 Mar 2018 21:24:17 +0000 (15:24 -0600)] 
added more code documentation for ZSTD_getFrameHeader()

7 years agoadded ovlog tests 1079/head
Yann Collet [Thu, 29 Mar 2018 19:07:28 +0000 (13:07 -0600)] 
added ovlog tests

check that setting ovlog has a direct impact on compression ratio
(hence is not silently ignored)

7 years agorestored ability to manually set overlapLog
Yann Collet [Wed, 28 Mar 2018 17:33:41 +0000 (11:33 -0600)] 
restored ability to manually set overlapLog

7 years agoMerge pull request #1075 from terrelln/cmake 1076/head
Yann Collet [Mon, 26 Mar 2018 22:19:02 +0000 (15:19 -0700)] 
Merge pull request #1075 from terrelln/cmake

Fix CMake build

7 years agoFix CMake build 1075/head
Nick Terrell [Mon, 26 Mar 2018 21:58:33 +0000 (14:58 -0700)] 
Fix CMake build

`MAN_INSTALL_DIR` was undefined.

Tested with `make cmakebuild`, and saw that the man pages got installed to the right place:

```
-- Installing: /Users/terrelln/install_test_dir/lib/pkgconfig/libzstd.pc
-- Installing: /Users/terrelln/install_test_dir/include/zstd.h
-- Installing: /Users/terrelln/install_test_dir/include/zbuff.h
-- Installing: /Users/terrelln/install_test_dir/include/zdict.h
-- Installing: /Users/terrelln/install_test_dir/include/zstd_errors.h
-- Installing: /Users/terrelln/install_test_dir/lib/libzstd.1.3.4.dylib
-- Installing: /Users/terrelln/install_test_dir/lib/libzstd.dylib
-- Installing: /Users/terrelln/install_test_dir/lib/libzstd.a
-- Installing: /Users/terrelln/install_test_dir/bin/zstd
-- Up-to-date: /Users/terrelln/install_test_dir/bin/zstd
-- Installing: /Users/terrelln/install_test_dir/bin/zstdcat
-- Installing: /Users/terrelln/install_test_dir/bin/unzstd
-- Installing: /Users/terrelln/install_test_dir/share/man/man1/zstd.1
-- Installing: /Users/terrelln/install_test_dir/share/man/man1/zstdcat.1
-- Installing: /Users/terrelln/install_test_dir/share/man/man1/unzstd.1
-- Installing: /Users/terrelln/install_test_dir/bin/zstdmt
-- Installing: /Users/terrelln/install_test_dir/bin/pzstd
-- Installing: /Users/terrelln/install_test_dir/zstd_manual.html
```

7 years agoupdated NEWS for v1.3.4
Yann Collet [Mon, 26 Mar 2018 17:21:49 +0000 (10:21 -0700)] 
updated NEWS for v1.3.4

7 years agoupdated VS studio readme
Yann Collet [Mon, 26 Mar 2018 16:55:10 +0000 (09:55 -0700)] 
updated VS studio readme

7 years agoMerge pull request #1065 from HaydnTrigg/dev
Yann Collet [Mon, 26 Mar 2018 16:21:12 +0000 (09:21 -0700)] 
Merge pull request #1065 from HaydnTrigg/dev

Generic Visual Studio 2017 build script