]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years agoallow analysis even if file does not have zst extension
Paul Cruz [Thu, 15 Jun 2017 22:02:54 +0000 (15:02 -0700)] 
allow analysis even if file does not have zst extension

8 years agocleaning up code for analyzing frames
Paul Cruz [Thu, 15 Jun 2017 21:13:28 +0000 (14:13 -0700)] 
cleaning up code for analyzing frames

8 years agocleaning up code
Paul Cruz [Thu, 15 Jun 2017 19:27:32 +0000 (12:27 -0700)] 
cleaning up code

8 years agoadd print statements for debugging and change malloc with updated size
Paul Cruz [Thu, 15 Jun 2017 18:37:24 +0000 (11:37 -0700)] 
add print statements for debugging and change malloc with updated size

8 years agoadded print statements for debugging, fixed first segfault
Paul Cruz [Thu, 15 Jun 2017 16:47:29 +0000 (09:47 -0700)] 
added print statements for debugging, fixed first segfault

8 years agochanged samples to geometric distribution so that it is huffman compressible
Paul Cruz [Thu, 15 Jun 2017 01:06:16 +0000 (18:06 -0700)] 
changed samples to geometric distribution so that it is huffman compressible

8 years agochanged dictionary from using fixed amount of bytes for the header / entropy tables
Paul Cruz [Thu, 15 Jun 2017 00:23:56 +0000 (17:23 -0700)] 
changed dictionary from using fixed amount of bytes for the header / entropy tables

8 years agoMerge pull request #2 from paulcruz74/list
Paul Cruz [Thu, 15 Jun 2017 00:18:25 +0000 (17:18 -0700)] 
Merge pull request #2 from paulcruz74/list

List

8 years agochanged randomly generated samples to randomly selected from the dictionary content
Paul Cruz [Wed, 14 Jun 2017 23:42:51 +0000 (16:42 -0700)] 
changed randomly generated samples to randomly selected from the dictionary content

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 agochanging formatting again
Paul Cruz [Wed, 14 Jun 2017 20:26:19 +0000 (13:26 -0700)] 
changing formatting again

8 years agoprint message when no files are given, rearrange code for readability
Paul Cruz [Wed, 14 Jun 2017 20:23:36 +0000 (13:23 -0700)] 
print message when no files are given, rearrange code for readability

8 years agochanged U64 to unsigned long to get rid of build test errors
Paul Cruz [Wed, 14 Jun 2017 20:11:18 +0000 (13:11 -0700)] 
changed U64 to unsigned long to get rid of build test errors

8 years agoadded error message to catch case where size not given
Paul Cruz [Wed, 14 Jun 2017 19:04:22 +0000 (12:04 -0700)] 
added error message to catch case where size not given

8 years agocode refactoring and adding some print statements for debugging
Paul Cruz [Wed, 14 Jun 2017 17:54:47 +0000 (10:54 -0700)] 
code refactoring and adding some print statements for debugging

8 years agodebugging error with finalizeDictionary() not writing dictionary properly
Paul Cruz [Wed, 14 Jun 2017 00:27:02 +0000 (17:27 -0700)] 
debugging error with finalizeDictionary() not writing dictionary properly

8 years agochanged makefile to include zdict functions, wrote out dictionary to path
Paul Cruz [Tue, 13 Jun 2017 21:19:35 +0000 (14:19 -0700)] 
changed makefile to include zdict functions, wrote out dictionary to path

8 years agoadded code to generate dictionary using finalizeDictionary
Paul Cruz [Tue, 13 Jun 2017 18:54:43 +0000 (11:54 -0700)] 
added code to generate dictionary using finalizeDictionary

8 years agocleaning up code
Paul Cruz [Tue, 13 Jun 2017 17:06:49 +0000 (10:06 -0700)] 
cleaning up code

8 years agochanged print format for non-verbose version
Paul Cruz [Tue, 13 Jun 2017 00:47:33 +0000 (17:47 -0700)] 
changed print format for non-verbose version

8 years agoyet more refactoring
Paul Cruz [Tue, 13 Jun 2017 00:19:53 +0000 (17:19 -0700)] 
yet more refactoring

8 years agomore refactoring for C90
Paul Cruz [Tue, 13 Jun 2017 00:09:08 +0000 (17:09 -0700)] 
more refactoring for C90

8 years agorefactoring for C90 syntax
Paul Cruz [Mon, 12 Jun 2017 23:53:50 +0000 (16:53 -0700)] 
refactoring for C90 syntax

8 years agoformatting issues resolved
Paul Cruz [Mon, 12 Jun 2017 23:29:00 +0000 (16:29 -0700)] 
formatting issues resolved

8 years agocode refactorings with explicit conversion
Paul Cruz [Mon, 12 Jun 2017 23:14:04 +0000 (16:14 -0700)] 
code refactorings with explicit conversion

8 years agoformated information for verbose output
Paul Cruz [Mon, 12 Jun 2017 22:59:28 +0000 (15:59 -0700)] 
formated information for verbose output

8 years agodisplayed decompressed size
Paul Cruz [Mon, 12 Jun 2017 22:51:59 +0000 (15:51 -0700)] 
displayed decompressed size

8 years agoincremented decompressedSize instead of setting value
Paul Cruz [Mon, 12 Jun 2017 22:40:47 +0000 (15:40 -0700)] 
incremented decompressedSize instead of setting value

8 years agoremoved useless lines
Paul Cruz [Mon, 12 Jun 2017 22:24:50 +0000 (15:24 -0700)] 
removed useless lines

8 years agoadded in logic for parsing through blocks/frames
Paul Cruz [Mon, 12 Jun 2017 22:22:48 +0000 (15:22 -0700)] 
added in logic for parsing through blocks/frames

8 years agoadded code to analyze the first frame header
Paul Cruz [Mon, 12 Jun 2017 20:46:39 +0000 (13:46 -0700)] 
added code to analyze the first frame header

8 years agoadded line spacing for clarity
Paul Cruz [Mon, 12 Jun 2017 17:58:34 +0000 (10:58 -0700)] 
added line spacing for clarity

8 years agoMerge branch 'dev' into list
Paul Cruz [Mon, 12 Jun 2017 17:47:30 +0000 (10:47 -0700)] 
Merge branch 'dev' into list

8 years agominor man update on -B# option in benchmark mode
Yann Collet [Mon, 12 Jun 2017 12:19:15 +0000 (05:19 -0700)] 
minor man update on -B# option in benchmark mode

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 agodisabled MT code path when ZSTD_MULTITHREAD is not defined
Yann Collet [Mon, 12 Jun 2017 01:46:09 +0000 (18:46 -0700)] 
disabled MT code path when ZSTD_MULTITHREAD is not defined

8 years agoadded MT support to NEWAPI
Yann Collet [Mon, 12 Jun 2017 01:39:46 +0000 (18:39 -0700)] 
added MT support to NEWAPI

8 years agoadded control stage to MT mode
Yann Collet [Mon, 12 Jun 2017 01:32:36 +0000 (18:32 -0700)] 
added control stage to MT mode

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 agoadded code to extend the offset when a dictionary is detected
Paul Cruz [Fri, 9 Jun 2017 16:48:56 +0000 (09:48 -0700)] 
added code to extend the offset when a dictionary is detected

8 years agomade sure dictionary ID was being written in the frame header of each file
Paul Cruz [Fri, 9 Jun 2017 00:27:15 +0000 (17:27 -0700)] 
made sure dictionary ID was being written in the frame header of each file

8 years agoset the lower bits of frame header descriptor if dictionary is needed
Paul Cruz [Fri, 9 Jun 2017 00:11:33 +0000 (17:11 -0700)] 
set the lower bits of frame header descriptor if dictionary is needed

8 years agoadded code for generating dictionary/test files randomly. Still need to make sure...
Paul Cruz [Fri, 9 Jun 2017 00:06:30 +0000 (17:06 -0700)] 
added code for generating dictionary/test files randomly. Still need to make sure dictionary ID matches

8 years agoadded display for compressed size
Paul Cruz [Tue, 6 Jun 2017 16:21:42 +0000 (09:21 -0700)] 
added display for compressed size

8 years agolinked newAPI to ZSTDMT
Yann Collet [Tue, 6 Jun 2017 01:32:48 +0000 (18:32 -0700)] 
linked newAPI to ZSTDMT

8 years agoadded in check suffix check to ensure file was compressed with zstd
Paul Cruz [Mon, 5 Jun 2017 22:00:06 +0000 (15:00 -0700)] 
added in check suffix check to ensure file was compressed with zstd

8 years agosetup basic functions for adding --list functionality
Paul Cruz [Mon, 5 Jun 2017 21:45:31 +0000 (14:45 -0700)] 
setup basic functions for adding --list functionality

8 years agominor fix for -Wdocumentation
cyan4973 [Mon, 5 Jun 2017 07:12:13 +0000 (00:12 -0700)] 
minor fix for -Wdocumentation

8 years agofixed g++ prototype mismatch
cyan4973 [Mon, 5 Jun 2017 06:52:00 +0000 (23:52 -0700)] 
fixed g++ prototype mismatch

8 years agofixed fullbench project for VS2010+
cyan4973 [Mon, 5 Jun 2017 05:06:25 +0000 (22:06 -0700)] 
fixed fullbench project for VS2010+

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 agoupdated ZSTDMT streaming API
Yann Collet [Sat, 3 Jun 2017 08:15:02 +0000 (01:15 -0700)] 
updated ZSTDMT streaming API

ZSTDMT streaming API is now similar
and has same capabilites as single-thread streaming API.
It makes it easier to blend them together.

8 years agomade debug definitions common within zstd_internal.h
Yann Collet [Sat, 3 Jun 2017 01:20:48 +0000 (18:20 -0700)] 
made debug definitions common within zstd_internal.h

8 years agocompleted NEWS for v1.3.0
Yann Collet [Sat, 3 Jun 2017 00:43:55 +0000 (17:43 -0700)] 
completed NEWS for v1.3.0

8 years agoupdated NEWS for v1.3.0
Yann Collet [Sat, 3 Jun 2017 00:35:11 +0000 (17:35 -0700)] 
updated NEWS for v1.3.0

8 years agofixed missing initialization
Yann Collet [Sat, 3 Jun 2017 00:16:49 +0000 (17:16 -0700)] 
fixed missing initialization

8 years agosignificant zlib wrapper code refactoring
Yann Collet [Sat, 3 Jun 2017 00:10:49 +0000 (17:10 -0700)] 
significant zlib wrapper code refactoring

code indentation
variable scope and names
constify

Only coding style changes.
The logic should remain the same.

8 years agozlib_wrapper's uncompress() uses ZSTD_isFrame() for routing
Yann Collet [Fri, 2 Jun 2017 21:24:58 +0000 (14:24 -0700)] 
zlib_wrapper's uncompress() uses ZSTD_isFrame() for routing

more generic and safer than using own routing for magic number comparison

8 years agoensure zlibwrapper uses ZSTD_malloc() and ZSTD_free()
Yann Collet [Fri, 2 Jun 2017 21:01:21 +0000 (14:01 -0700)] 
ensure zlibwrapper uses ZSTD_malloc() and ZSTD_free()

which is compatible with { NULL, NULL, NULL }

8 years agominor indent
Yann Collet [Fri, 2 Jun 2017 20:47:11 +0000 (13:47 -0700)] 
minor indent

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 POOL_sizeof() for single-thread
Yann Collet [Fri, 2 Jun 2017 18:36:47 +0000 (11:36 -0700)] 
added POOL_sizeof() for single-thread

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 agoadded support for multithreading parameters
Yann Collet [Fri, 2 Jun 2017 01:44:06 +0000 (18:44 -0700)] 
added support for multithreading parameters

8 years agocreated ZSTDMT_sizeof_CCtx() and POOL_sizeof()
Yann Collet [Fri, 2 Jun 2017 00:56:14 +0000 (17:56 -0700)] 
created ZSTDMT_sizeof_CCtx() and POOL_sizeof()

required by ZSTD_sizeofCCtx() while adding a ZSTDMT_CCtx*

8 years agoprotected impossible switch(){default:} with assert(0)
Yann Collet [Thu, 1 Jun 2017 16:44:54 +0000 (09:44 -0700)] 
protected impossible switch(){default:} with assert(0)

can be converted into assume(0) in some future

8 years agoMerge branch 'advancedAPI2' of github.com:facebook/zstd into advancedAPI2
Yann Collet [Wed, 31 May 2017 17:03:20 +0000 (10:03 -0700)] 
Merge branch 'advancedAPI2' of github.com:facebook/zstd into advancedAPI2

8 years agofixed visual warning
Yann Collet [Wed, 31 May 2017 16:59:22 +0000 (09:59 -0700)] 
fixed visual warning

8 years agofixed visual warnings
Yann Collet [Wed, 31 May 2017 08:17:44 +0000 (01:17 -0700)] 
fixed visual warnings

8 years agofinally converted ZSTD_compressStream_generic() to use {in,ou}Buffer
Yann Collet [Wed, 31 May 2017 01:10:26 +0000 (18:10 -0700)] 
finally converted ZSTD_compressStream_generic() to use {in,ou}Buffer

replacing the older read/write variables from ZBUFF_* era.
Mostly to help code readability.

Fixed relevant callers.

8 years agoZSTD_createCCtx_advanced() now uses ZSTD_calloc()
Yann Collet [Wed, 31 May 2017 00:45:37 +0000 (17:45 -0700)] 
ZSTD_createCCtx_advanced() now uses ZSTD_calloc()

initially uses calloc() instead of memset().

Performance improvement is unlikely measurable,
since ZSTD_CCtx is now very small,
with all tables transferred into workSpace.

8 years agoexpose ZSTD_compress_generic_simpleArgs()
Yann Collet [Wed, 31 May 2017 00:42:00 +0000 (17:42 -0700)] 
expose ZSTD_compress_generic_simpleArgs()

which is a binding towards ZSTD_compress_generic()
using only integral types for arguments.

8 years agoremoved defaultCustomMem
Yann Collet [Wed, 31 May 2017 00:11:39 +0000 (17:11 -0700)] 
removed defaultCustomMem

now ZSTD_customCMem is promoted as new default.

Advantages : ZSTD_customCMem = { NULL, NULL, NULL},
so it's natural default after a memset.

ZSTD_customCMem is public constant
(defaultCustomMem was private only).

Also : makes it possible to introduce ZSTD_calloc(),
which can now default to stdlib's calloc()
when it detects system default.

Fixed zlibwrapper which depended on defaultCustomMem.

8 years agoremoved mtctx->cstream
Yann Collet [Tue, 30 May 2017 23:37:19 +0000 (16:37 -0700)] 
removed mtctx->cstream

use the first cctx in pool when ZSTDMT is used in single-thread mode
now that cctx and cstream are the same object.

8 years agoMerge branch 'dev' into advancedAPI2
Yann Collet [Tue, 30 May 2017 23:18:57 +0000 (16:18 -0700)] 
Merge branch 'dev' into advancedAPI2

Fixed conflic in zstd_decompress.c

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

make it possible to use custom allocators

8 years agoMerge branch 'advancedAPI2' of github.com:facebook/zstd into advancedAPI2
Yann Collet [Tue, 30 May 2017 17:02:03 +0000 (10:02 -0700)] 
Merge branch 'advancedAPI2' of github.com:facebook/zstd into advancedAPI2

8 years agofixed minor cast warning
Yann Collet [Sun, 28 May 2017 00:09:06 +0000 (17:09 -0700)] 
fixed minor cast warning

8 years agomtctx->jobs allocate its own memory space
Yann Collet [Sat, 27 May 2017 07:21:33 +0000 (00:21 -0700)] 
mtctx->jobs allocate its own memory space

to make ZSTDMT_CCtx_s size predictable
so that it can be included in CCtx

8 years agostatic dctx is incompatible with legacy support
Yann Collet [Sat, 27 May 2017 07:03:08 +0000 (00:03 -0700)] 
static dctx is incompatible with legacy support

documented, and runtime tested

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 agofixed a few code comments : ZSTD_getFrameParams => ZSTD_getFrameHeader
Yann Collet [Fri, 26 May 2017 01:29:08 +0000 (18:29 -0700)] 
fixed a few code comments : ZSTD_getFrameParams => ZSTD_getFrameHeader

8 years agoAdded ZSTD_initStaticCDict()
Yann Collet [Fri, 26 May 2017 01:05:49 +0000 (18:05 -0700)] 
Added ZSTD_initStaticCDict()

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 agoadded ZSTD_initStaticDDict()
Yann Collet [Thu, 25 May 2017 22:44:06 +0000 (15:44 -0700)] 
added ZSTD_initStaticDDict()

8 years agoupdated ZSTD_estimate?DictSize() to pass parameter byReference
Yann Collet [Thu, 25 May 2017 22:07:37 +0000 (15:07 -0700)] 
updated ZSTD_estimate?DictSize() to pass parameter byReference

resulting ?Dict object is smaller when created byReference.
Seems better than a documentation note.

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 agoadded ZSTD_initStaticDCtx()
Yann Collet [Thu, 25 May 2017 00:41:41 +0000 (17:41 -0700)] 
added ZSTD_initStaticDCtx()

8 years agomerged DStream's inBuff and outBuff into a single buffer
Yann Collet [Wed, 24 May 2017 22:42:24 +0000 (15:42 -0700)] 
merged DStream's inBuff and outBuff into a single buffer

Saves one malloc().
Also : makes it easier to implement static allocation

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