]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years ago[fuzz] Move from fuzz/ to tests/fuzz/ 745/head
Nick Terrell [Mon, 3 Jul 2017 19:40:12 +0000 (12:40 -0700)] 
[fuzz] Move from fuzz/ to tests/fuzz/

8 years ago[fuzz] Add libFuzzer targets
Nick Terrell [Thu, 29 Jun 2017 23:53:52 +0000 (16:53 -0700)] 
[fuzz] Add libFuzzer targets

* The regression driver serves both as a regression test, and as a binary for afl-fuzz.
* Next, we want to check in a seed corpus for each target. Then we can run the regression
  test binary on them on Travis or Circle CI.

8 years agoMerge pull request #728 from terrelln/ubsan-failure
Yann Collet [Tue, 20 Jun 2017 19:13:51 +0000 (12:13 -0700)] 
Merge pull request #728 from terrelln/ubsan-failure

[linux] Add more tests and fuzzing

8 years ago[linux] Add xxhash and zstd in-kernel tests 728/head
Nick Terrell [Tue, 20 Jun 2017 02:09:41 +0000 (19:09 -0700)] 
[linux] Add xxhash and zstd in-kernel tests

8 years ago[linux] Add libfuzzer targets
Nick Terrell [Tue, 20 Jun 2017 02:09:15 +0000 (19:09 -0700)] 
[linux] Add libfuzzer targets

8 years ago[linux] Port libzstd UBSAN fix
Nick Terrell [Mon, 19 Jun 2017 22:48:30 +0000 (15:48 -0700)] 
[linux] Port libzstd UBSAN fix

8 years agoMerge pull request #727 from terrelln/ubsan-failure
Yann Collet [Mon, 19 Jun 2017 22:43:17 +0000 (15:43 -0700)] 
Merge pull request #727 from terrelln/ubsan-failure

[libzstd] Fix UBSAN failure

8 years ago[libzstd] Fix UBSAN failure 727/head
Nick Terrell [Mon, 19 Jun 2017 22:12:28 +0000 (15:12 -0700)] 
[libzstd] Fix UBSAN failure

8 years agoMerge pull request #726 from terrelln/malloc-failure
Yann Collet [Mon, 19 Jun 2017 21:13:46 +0000 (14:13 -0700)] 
Merge pull request #726 from terrelln/malloc-failure

[linux] Fix decompression memory allocation

8 years ago[linux] Fix decompression memory allocation 726/head
Nick Terrell [Mon, 19 Jun 2017 19:24:14 +0000 (12:24 -0700)] 
[linux] Fix decompression memory allocation

8 years agoMerge pull request #724 from yurivict/fix-install-static-lib
Yann Collet [Sat, 17 Jun 2017 08:19:39 +0000 (01:19 -0700)] 
Merge pull request #724 from yurivict/fix-install-static-lib

INSTALL_DATA instead of INSTALL_LIB for libzstd.a

8 years agoINSTALL_DATA instead of INSTALL_LIB for libzstd.a 724/head
Yuri [Sat, 17 Jun 2017 07:23:41 +0000 (00:23 -0700)] 
INSTALL_DATA instead of INSTALL_LIB for libzstd.a

INSTALL_LIB can be passed -s flag to strip symbols. Static libraries should not be stripped, only dynamic ones should be stripped.

8 years agoMerge pull request #722 from paulcruz74/dev
Yann Collet [Wed, 14 Jun 2017 21:28:12 +0000 (14:28 -0700)] 
Merge pull request #722 from paulcruz74/dev

Improve roundTripCrash

8 years agoMerge pull request #721 from manixate/typo-fix
Yann Collet [Mon, 12 Jun 2017 11:51:24 +0000 (04:51 -0700)] 
Merge pull request #721 from manixate/typo-fix

Minor grammatical changes

8 years agoMinor grammatical changes 721/head
Muhammad Azeem [Mon, 12 Jun 2017 03:09:44 +0000 (11:09 +0800)] 
Minor grammatical changes

8 years agoremoved previous double free crash, used new crash function 722/head
Paul Cruz [Fri, 9 Jun 2017 20:57:18 +0000 (13:57 -0700)] 
removed previous double free crash, used new crash function

8 years agoadded error function for different compilation modes
Paul Cruz [Fri, 9 Jun 2017 20:41:34 +0000 (13:41 -0700)] 
added error function for different compilation modes

8 years agoMerge pull request #1 from facebook/dev
Paul Cruz [Sat, 3 Jun 2017 17:11:35 +0000 (10:11 -0700)] 
Merge pull request #1 from facebook/dev

Merge pull request #716 from paulcruz74/dev

8 years agoMerge pull request #716 from paulcruz74/dev
Yann Collet [Fri, 2 Jun 2017 19:34:18 +0000 (12:34 -0700)] 
Merge pull request #716 from paulcruz74/dev

VS2005 Support Changes

8 years agoadded a project support notice for VS2005 716/head
Paul Cruz [Fri, 2 Jun 2017 17:28:56 +0000 (10:28 -0700)] 
added a project support notice for VS2005

8 years agoadded back documentation/notification for VS2005 in build directory
Paul Cruz [Fri, 2 Jun 2017 17:25:30 +0000 (10:25 -0700)] 
added back documentation/notification for VS2005 in build directory

8 years agoRemoved VS2005 from the list of included projects
Paul Cruz [Fri, 2 Jun 2017 17:11:03 +0000 (10:11 -0700)] 
Removed VS2005 from the list of included projects

8 years agoadding zstd/zstd.vcproj because it was ignored during initial commit
Paul Cruz [Fri, 2 Jun 2017 04:25:39 +0000 (21:25 -0700)] 
adding zstd/zstd.vcproj because it was ignored during initial commit

8 years agoMoved VS2005 to the contrib directory
Paul Cruz [Fri, 2 Jun 2017 04:18:48 +0000 (21:18 -0700)] 
Moved VS2005 to the contrib directory

8 years agoMerge pull request #712 from terrelln/dev
Yann Collet [Fri, 26 May 2017 16:48:12 +0000 (18:48 +0200)] 
Merge pull request #712 from terrelln/dev

[linux-kernel] Fix formatting and Makefile

8 years ago[linux-kernel] Fix duplicate symbols when built-in to kernel 712/head
Nick Terrell [Fri, 26 May 2017 01:34:13 +0000 (18:34 -0700)] 
[linux-kernel] Fix duplicate symbols when built-in to kernel

8 years agoMerge pull request #711 from ldv-alt/dev
Yann Collet [Fri, 26 May 2017 00:31:33 +0000 (02:31 +0200)] 
Merge pull request #711 from ldv-alt/dev

Fix typo in libzstd.a-mt make rules

8 years agoFix typo in libzstd.a-mt make rules 711/head
Dmitry V. Levin [Thu, 25 May 2017 23:43:05 +0000 (23:43 +0000)] 
Fix typo in libzstd.a-mt make rules

The macro name is ZSTD_MULTITHREAD, not ZSTD_MULTHREAD.

Fixes: ca6fae78080d ("Add MT enabled targets for libzstd")
8 years ago[linux-kernel] Fix clang-format edge case with goto labels
Nick Terrell [Thu, 25 May 2017 20:56:46 +0000 (13:56 -0700)] 
[linux-kernel] Fix clang-format edge case with goto labels

8 years agoMerge pull request #710 from terrelln/dev
Yann Collet [Wed, 24 May 2017 22:10:17 +0000 (00:10 +0200)] 
Merge pull request #710 from terrelln/dev

[linux-kernel] Minor formatting changes

8 years ago[linux-kernel] Fix some up clang-format edge cases 710/head
Nick Terrell [Wed, 24 May 2017 20:52:36 +0000 (13:52 -0700)] 
[linux-kernel] Fix some up clang-format edge cases

8 years ago[zstd] Fix up formatting edge cases for clang-format
Nick Terrell [Wed, 24 May 2017 20:50:10 +0000 (13:50 -0700)] 
[zstd] Fix up formatting edge cases for clang-format

8 years agoMerge pull request #709 from codicodi/fix-cmake
Yann Collet [Wed, 24 May 2017 18:56:47 +0000 (20:56 +0200)] 
Merge pull request #709 from codicodi/fix-cmake

CMake improvements

8 years agoCMake improvements 709/head
codicodi [Wed, 24 May 2017 08:48:10 +0000 (10:48 +0200)] 
CMake improvements

8 years agoMerge pull request #708 from terrelln/lk
Yann Collet [Mon, 22 May 2017 22:10:59 +0000 (00:10 +0200)] 
Merge pull request #708 from terrelln/lk

[linux-kernel] Update patches in response to comments

8 years agoMerge pull request #705 from terrelln/dev
Yann Collet [Mon, 22 May 2017 19:25:09 +0000 (21:25 +0200)] 
Merge pull request #705 from terrelln/dev

[libzstd] Allow users to define custom visibility

8 years ago[libzstd] Allow users to define custom visibility 705/head
Nick Terrell [Sat, 20 May 2017 01:01:59 +0000 (18:01 -0700)] 
[libzstd] Allow users to define custom visibility

8 years ago[linux-kernel] Fix a weird clang-format corner case 708/head
Nick Terrell [Wed, 17 May 2017 22:06:41 +0000 (15:06 -0700)] 
[linux-kernel] Fix a weird clang-format corner case

8 years ago[linux-kernel] Update tests Makefile 704/head
Nick Terrell [Wed, 17 May 2017 21:56:37 +0000 (14:56 -0700)] 
[linux-kernel] Update tests Makefile

8 years ago[linux-kernel] Update zstd.diff
Nick Terrell [Wed, 17 May 2017 21:52:12 +0000 (14:52 -0700)] 
[linux-kernel] Update zstd.diff

8 years ago[linux-kernel] Move ZSTD_STATIC_ASSERT to zstd_internal.h
Nick Terrell [Wed, 17 May 2017 21:51:41 +0000 (14:51 -0700)] 
[linux-kernel] Move ZSTD_STATIC_ASSERT to zstd_internal.h

8 years ago[linux-kernel] clang-format lib/zstd/
Nick Terrell [Wed, 17 May 2017 21:40:46 +0000 (14:40 -0700)] 
[linux-kernel] clang-format lib/zstd/

8 years ago[linux-kernel] Rename MEM_* functions to ZSTD_*
Nick Terrell [Wed, 17 May 2017 21:39:57 +0000 (14:39 -0700)] 
[linux-kernel] Rename MEM_* functions to ZSTD_*

8 years agoAdd clang-format config
Nick Terrell [Wed, 17 May 2017 19:27:58 +0000 (12:27 -0700)] 
Add clang-format config

8 years ago[linux-kernel] Dual license with GPLv2
Nick Terrell [Wed, 17 May 2017 18:58:53 +0000 (11:58 -0700)] 
[linux-kernel] Dual license with GPLv2

8 years agominor coding style update
Yann Collet [Wed, 17 May 2017 00:32:33 +0000 (17:32 -0700)] 
minor coding style update

reduced some long lines

8 years ago[linux-kernel] Update zstd.diff
Nick Terrell [Wed, 17 May 2017 00:21:22 +0000 (17:21 -0700)] 
[linux-kernel] Update zstd.diff

8 years agoRemove cross-platform macros and dead code
Nick Terrell [Wed, 17 May 2017 00:16:00 +0000 (17:16 -0700)] 
Remove cross-platform macros and dead code

8 years ago[linux-kernel] Fix whitespace edge case with script
Nick Terrell [Tue, 16 May 2017 23:55:52 +0000 (16:55 -0700)] 
[linux-kernel] Fix whitespace edge case with script

8 years ago[linux-kernel] Update kernelize.sh script for edge cases
Nick Terrell [Tue, 16 May 2017 23:55:03 +0000 (16:55 -0700)] 
[linux-kernel] Update kernelize.sh script for edge cases

8 years ago[linux-kernel] Don't undef current (use curr)
Nick Terrell [Tue, 16 May 2017 23:47:49 +0000 (16:47 -0700)] 
[linux-kernel] Don't undef current (use curr)

8 years agoMerge pull request #702 from facebook/newPrototype
Yann Collet [Tue, 16 May 2017 23:32:10 +0000 (01:32 +0200)] 
Merge pull request #702 from facebook/newPrototype

added prototype ZSTD_decompressBegin_usingDDict() (#700)

8 years agopedantic : added one error check 702/head
Yann Collet [Tue, 16 May 2017 23:28:24 +0000 (16:28 -0700)] 
pedantic : added one error check

on a function which (today) never fails.
But who knows, maybe tomorrow ...

8 years agoMerge pull request #701 from terrelln/lk-xxh
Yann Collet [Tue, 16 May 2017 23:18:10 +0000 (01:18 +0200)] 
Merge pull request #701 from terrelln/lk-xxh

[linux-kernel] Separate xxhash into its own module

8 years ago[linux-kernel] Remove unused variables in test 701/head
Nick Terrell [Tue, 16 May 2017 23:13:51 +0000 (16:13 -0700)] 
[linux-kernel] Remove unused variables in test

8 years agoadded prototype ZSTD_versionString()
Yann Collet [Tue, 16 May 2017 23:12:23 +0000 (16:12 -0700)] 
added prototype ZSTD_versionString()

8 years ago[linux-kernel] Update header comments
Nick Terrell [Tue, 16 May 2017 23:03:36 +0000 (16:03 -0700)] 
[linux-kernel] Update header comments

8 years agoadded prototype ZSTD_decompressBegin_usingDDict (#700)
Yann Collet [Tue, 16 May 2017 23:05:27 +0000 (16:05 -0700)] 
added prototype ZSTD_decompressBegin_usingDDict (#700)

8 years agoAdd zstd.diff
Nick Terrell [Tue, 16 May 2017 22:54:02 +0000 (15:54 -0700)] 
Add zstd.diff

8 years ago[linux-kernel] Separate xxhash into its own module
Nick Terrell [Tue, 16 May 2017 19:56:38 +0000 (12:56 -0700)] 
[linux-kernel] Separate xxhash into its own module

8 years agoremoved gcc compilation flag -Wbad-function-cast
Yann Collet [Tue, 16 May 2017 18:34:38 +0000 (11:34 -0700)] 
removed gcc compilation flag -Wbad-function-cast

It makes it more difficult to directly cast the result of a function,
requiring to store the result in an intermediate variable.
It does not necessarily help readability,
and this restriction can be difficult to overcome in some constructions,
like some macros.

also : fixed minor Visual conversion warnings in datagencli.c

8 years agofixed vla warning on linux
Yann Collet [Tue, 16 May 2017 01:15:08 +0000 (18:15 -0700)] 
fixed vla warning on linux

8 years agofixed redundant declarations in legacy v0.5 and v0.7 decoders
Yann Collet [Tue, 16 May 2017 00:44:04 +0000 (17:44 -0700)] 
fixed redundant declarations in legacy v0.5 and v0.7 decoders

triggered by new flag -Wredundant-decls

8 years agoadded several compilation flags
Yann Collet [Tue, 16 May 2017 00:15:46 +0000 (17:15 -0700)] 
added several compilation flags

8 years agoMerge pull request #696 from joscollin/wip-lib-legacy-fallthrough-warn
Yann Collet [Thu, 11 May 2017 17:45:01 +0000 (10:45 -0700)] 
Merge pull request #696 from joscollin/wip-lib-legacy-fallthrough-warn

lib/legacy: warning: this statement may fall through

8 years agoMerge pull request #695 from joscollin/wip-lib-compress-fallthrough-warn
Yann Collet [Thu, 11 May 2017 17:44:27 +0000 (10:44 -0700)] 
Merge pull request #695 from joscollin/wip-lib-compress-fallthrough-warn

lib/compress: warning: this statement may fall through

8 years agoMerge pull request #690 from joscollin/wip-lib-common-fallthrough-warning
Yann Collet [Thu, 11 May 2017 17:43:45 +0000 (10:43 -0700)] 
Merge pull request #690 from joscollin/wip-lib-common-fallthrough-warning

lib/common: warning: this statement may fall through

8 years agolib/legacy: warning: this statement may fall through 696/head
Jos Collin [Thu, 11 May 2017 08:57:34 +0000 (14:27 +0530)] 
lib/legacy: warning: this statement may fall through

The following warning appears during build at sevaral places.

../lib/legacy/zstd_v04.c:819:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
             case 7: bitD->bitContainer += (size_t)(((const BYTE*)(bitD->start))[6]) << (sizeof(size_t)*8 - 16);

../lib/legacy/zstd_v05.c:821:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
             case 7: bitD->bitContainer += (size_t)(((const BYTE*)(bitD->start))[6]) << (sizeof(size_t)*8 - 16);

../lib/legacy/zstd_v06.c:913:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
             case 7: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[6]) << (sizeof(bitD->bitContainer)*8 - 16);

../lib/legacy/zstd_v07.c:583:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
             case 7: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[6]) <<
             (sizeof(bitD->bitContainer)*8 - 16);

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agolib/compress: warning: this statement may fall through 695/head
Jos Collin [Thu, 11 May 2017 07:47:20 +0000 (13:17 +0530)] 
lib/compress: warning: this statement may fall through

The following warning appears during build.

../lib/compress/huf_compress.c: In function ‘HUF_compress1X_usingCTable’:
../lib/compress/huf_compress.c:444:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
     if (sizeof((stream)->bitContainer)*8 < HUF_TABLELOG_MAX*4+7) HUF_FLUSHBITS(stream)
        ^
../lib/compress/huf_compress.c:465:18: note: in expansion of macro ‘HUF_FLUSHBITS_2’
                  HUF_FLUSHBITS_2(&bitC);
                  ^~~~~~~~~~~~~~~
../lib/compress/huf_compress.c:466:9: note: here
         case 2 : HUF_encodeSymbol(&bitC, ip[n+ 1], CTable);

../lib/compress/zstd_compress.c: In function ‘ZSTD_compressStream_generic’:
../lib/compress/zstd_compress.c:3366:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 zcs->streamStage = zcss_flush;   /* pass-through to flush stage */
                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../lib/compress/zstd_compress.c:3369:9: note: here
         case zcss_flush:

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agolib/common: warning: this statement may fall through 690/head
Jos Collin [Tue, 9 May 2017 03:06:05 +0000 (08:36 +0530)] 
lib/common: warning: this statement may fall through

The following warning appears during the build. Fixed the review comments too.

zstd/lib/common/bitstream.h: In function ‘BIT_initDStream’:
zstd/lib/common/bitstream.h:277:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
      case 7: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[6]) <<
      (sizeof(bitD->bitContainer)*8 - 16);

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #692 from terrelln/btopt
Yann Collet [Thu, 11 May 2017 01:46:48 +0000 (18:46 -0700)] 
Merge pull request #692 from terrelln/btopt

Rename ZSTD_btopt2 to ZSTD_btultra

8 years agoUpdate whitespace 692/head
Nick Terrell [Thu, 11 May 2017 00:48:42 +0000 (17:48 -0700)] 
Update whitespace

8 years agoUpdate zstd.1.md to use btultra
Nick Terrell [Wed, 10 May 2017 23:51:18 +0000 (16:51 -0700)] 
Update zstd.1.md to use btultra

8 years agoMerge remote-tracking branch 'upstream/dev' into btopt
Nick Terrell [Wed, 10 May 2017 23:49:58 +0000 (16:49 -0700)] 
Merge remote-tracking branch 'upstream/dev' into btopt

* upstream/dev: (305 commits)
  added test for ZSTD_estimateCStreamSize()
  changed variable name, for clarity
  fixed ZSTD_estimateCStreamSize()
  shortened ZSTD_createCStream_Advanced()
  fixed symbols test
  added ZSTD_estimateDStreamSize()
  changed name frameParams into frameHeader
  regroup memory usage function declarations
  separated ZSTD_estimateCStreamSize() from ZSTD_estimateCCtxSize()
  bumped version number
  added ZSTD_estimateCDictSize() and ZSTD_estimateDDictSize()
  Updated ZSTD_freeCCtx()
  updated ZSTD_estimateCCtxSize()
  Updated ZSTD_sizeof_CCtx()
  merged CCtx and CStream as a single same object
  cli : -d and -t do not stop after a failed decompression
  added dev branch CircleCI badge
  added dev branch Appveyor badge
  keep dev branch status only
  creates a binary archive without the `programs` directory
  ...

8 years agoMerge pull request #689 from facebook/cctxMerge
Yann Collet [Wed, 10 May 2017 21:53:54 +0000 (14:53 -0700)] 
Merge pull request #689 from facebook/cctxMerge

Cctx merge

8 years agoadded test for ZSTD_estimateCStreamSize() 689/head
Yann Collet [Wed, 10 May 2017 18:30:19 +0000 (11:30 -0700)] 
added test for ZSTD_estimateCStreamSize()

8 years agochanged variable name, for clarity
Yann Collet [Wed, 10 May 2017 18:14:08 +0000 (11:14 -0700)] 
changed variable name, for clarity

fhiPtr -> zfhPtr
https://github.com/facebook/zstd/pull/689#discussion_r115638676

8 years agofixed ZSTD_estimateCStreamSize()
Yann Collet [Wed, 10 May 2017 18:08:00 +0000 (11:08 -0700)] 
fixed ZSTD_estimateCStreamSize()

https://github.com/facebook/zstd/pull/689#discussion_r115637721

8 years agoshortened ZSTD_createCStream_Advanced()
Yann Collet [Wed, 10 May 2017 18:06:06 +0000 (11:06 -0700)] 
shortened ZSTD_createCStream_Advanced()

https://github.com/facebook/zstd/pull/689#discussion_r115637613

8 years agofixed symbols test
Yann Collet [Tue, 9 May 2017 23:53:09 +0000 (16:53 -0700)] 
fixed symbols test

8 years agoadded ZSTD_estimateDStreamSize()
Yann Collet [Tue, 9 May 2017 23:18:17 +0000 (16:18 -0700)] 
added ZSTD_estimateDStreamSize()

8 years agochanged name frameParams into frameHeader
Yann Collet [Tue, 9 May 2017 22:46:07 +0000 (15:46 -0700)] 
changed name frameParams into frameHeader

ZSTD_frameParams => ZSTD_frameHeader
ZSTD_getFrameParams() -> ZSTD_getFrameHeader()

The new naming is more distinctive from ZSTD_frameParameters,
which is used during compression.

ZSTD_frameHeader is clearer in its intention to described frame header content.
It also implies we are decoding a ZSTD frame, hence we are at decoding stage.

8 years agoregroup memory usage function declarations
Yann Collet [Tue, 9 May 2017 22:11:30 +0000 (15:11 -0700)] 
regroup memory usage function declarations

in a single paragraph in zstd.h, for clarity

8 years agoseparated ZSTD_estimateCStreamSize() from ZSTD_estimateCCtxSize()
Yann Collet [Tue, 9 May 2017 01:24:16 +0000 (18:24 -0700)] 
separated ZSTD_estimateCStreamSize() from ZSTD_estimateCCtxSize()

for clarity

8 years agobumped version number
Yann Collet [Tue, 9 May 2017 00:52:46 +0000 (17:52 -0700)] 
bumped version number

8 years agoadded ZSTD_estimateCDictSize() and ZSTD_estimateDDictSize()
Yann Collet [Tue, 9 May 2017 00:51:49 +0000 (17:51 -0700)] 
added ZSTD_estimateCDictSize() and ZSTD_estimateDDictSize()

it complements ZSTD_estimateCCtxSize()
for the special case of ZSTD_initCStream_usingDict()

8 years agoUpdated ZSTD_freeCCtx()
Yann Collet [Tue, 9 May 2017 00:15:00 +0000 (17:15 -0700)] 
Updated ZSTD_freeCCtx()

which can also contain streaming buffers now.
Redirected ZSTD_freeCStream() towards it.

8 years agoupdated ZSTD_estimateCCtxSize()
Yann Collet [Tue, 9 May 2017 00:07:59 +0000 (17:07 -0700)] 
updated ZSTD_estimateCCtxSize()

added a parameter streaming,
to estimate memory allocation size
when the CCtx is used for streaming (CStream).

Note : this function is not able to estimate
memory cost of a potential internal CDict
which can only happen when starting with ZSTD_initCStream_usingDict()

8 years agoUpdated ZSTD_sizeof_CCtx()
Yann Collet [Mon, 8 May 2017 23:17:30 +0000 (16:17 -0700)] 
Updated ZSTD_sizeof_CCtx()

can now contain buffers if object used as CStream.
ZSTD_sizeof_CStream() is now just a thin wrapper of ZSTD_sizeof_CCtx().

8 years agomerged CCtx and CStream as a single same object
Yann Collet [Mon, 8 May 2017 23:08:01 +0000 (16:08 -0700)] 
merged CCtx and CStream as a single same object

To be changed : ZSTD_sizeof_CCtx(), ZSTD_estimateCCtxSize()

8 years agoMerge pull request #654 from iburinoc/splittable
Yann Collet [Mon, 8 May 2017 20:41:56 +0000 (13:41 -0700)] 
Merge pull request #654 from iburinoc/splittable

[RFC] Splittable Format and API

8 years agoMerge pull request #687 from facebook/permissiveTest
Yann Collet [Mon, 8 May 2017 18:38:01 +0000 (11:38 -0700)] 
Merge pull request #687 from facebook/permissiveTest

cli : -d and -t do not stop after a failed decompression

8 years agocli : -d and -t do not stop after a failed decompression 687/head
Yann Collet [Sat, 6 May 2017 02:15:24 +0000 (19:15 -0700)] 
cli : -d and -t do not stop after a failed decompression

The problematic srcfile will be named on console/log,
but decompression/test will continue onto next file in the list.

8 years agoadded dev branch CircleCI badge
Yann Collet [Fri, 5 May 2017 22:55:03 +0000 (15:55 -0700)] 
added dev branch CircleCI badge

8 years agoadded dev branch Appveyor badge
Yann Collet [Fri, 5 May 2017 22:48:42 +0000 (15:48 -0700)] 
added dev branch Appveyor badge

8 years agokeep dev branch status only
Yann Collet [Fri, 5 May 2017 22:41:23 +0000 (15:41 -0700)] 
keep dev branch status only

master branch status is removed, due to misattribution during cron jobs

8 years agocreates a binary archive without the `programs` directory
Yann Collet [Fri, 5 May 2017 00:40:40 +0000 (17:40 -0700)] 
creates a binary archive without the `programs` directory

also improves compression ratio to -mx9

8 years agoAppveyor build artefact creates zipped cli binary
Yann Collet [Fri, 5 May 2017 00:30:37 +0000 (17:30 -0700)] 
Appveyor build artefact creates zipped cli binary

8 years agoremoved zstdmt generation from Appveyor artefact build
Yann Collet [Fri, 5 May 2017 00:26:58 +0000 (17:26 -0700)] 
removed zstdmt generation from Appveyor artefact build

8 years agoremoved -g from DEBUGFLAGS
Yann Collet [Fri, 5 May 2017 00:24:29 +0000 (17:24 -0700)] 
removed -g from DEBUGFLAGS

It inflates binary sizes, which is negative for the Windows build.
It also makes it impossible to check if 2 different source codes
get nonetheless compiled to the same binary,
since checksum will be different, due to integrated source code.