]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
7 years agoUpdate Makefile 1238/head
Jennifer Liu [Thu, 19 Jul 2018 20:44:27 +0000 (13:44 -0700)] 
Update Makefile

7 years agoRename cleanup
Jennifer Liu [Wed, 18 Jul 2018 19:15:49 +0000 (12:15 -0700)] 
Rename cleanup

7 years agoAdd cleanup to trainfromFiles and move RANDOM_segment_t declaration
Jennifer Liu [Wed, 18 Jul 2018 17:40:13 +0000 (10:40 -0700)] 
Add cleanup to trainfromFiles and move RANDOM_segment_t declaration

7 years agoUpdate freeSampleInfo
Jennifer Liu [Tue, 17 Jul 2018 23:13:40 +0000 (16:13 -0700)] 
Update freeSampleInfo

7 years agoFix deallocation problem and add documentation
Jennifer Liu [Tue, 17 Jul 2018 23:01:44 +0000 (16:01 -0700)] 
Fix deallocation problem and add documentation

7 years agoMake test PHONY target
Jennifer Liu [Tue, 17 Jul 2018 19:42:53 +0000 (12:42 -0700)] 
Make test PHONY target

7 years agoMove file loading functions to new file for access by benchmarking tool
Jennifer Liu [Tue, 17 Jul 2018 19:35:09 +0000 (12:35 -0700)] 
Move file loading functions to new file for access by benchmarking tool

7 years agoRemove CLevel cli option which was accidentally added back in the last commit
Jennifer Liu [Tue, 17 Jul 2018 01:59:18 +0000 (18:59 -0700)] 
Remove CLevel cli option which was accidentally added back in the last commit

7 years agoFix spacing and Edit Makefile (now run with make instead of make run)
Jennifer Liu [Mon, 16 Jul 2018 23:31:59 +0000 (16:31 -0700)] 
Fix spacing and Edit Makefile (now run with make instead of make run)

7 years agoRefactor RANDOM
Jennifer Liu [Mon, 16 Jul 2018 23:03:04 +0000 (16:03 -0700)] 
Refactor RANDOM

7 years agoUpdate README
Jennifer Liu [Sat, 14 Jul 2018 00:41:09 +0000 (17:41 -0700)] 
Update README

7 years agoRemove clevel and update documentation
Jennifer Liu [Sat, 14 Jul 2018 00:38:53 +0000 (17:38 -0700)] 
Remove clevel and update documentation

7 years agoAdd random dictionary builder
Jennifer Liu [Fri, 13 Jul 2018 23:05:14 +0000 (16:05 -0700)] 
Add random dictionary builder

7 years agoAdd explanation for split=100 1225/head
Jennifer Liu [Wed, 11 Jul 2018 22:50:28 +0000 (15:50 -0700)] 
Add explanation for split=100

7 years agoChange default splitPoint to 100
Jennifer Liu [Tue, 10 Jul 2018 18:19:33 +0000 (11:19 -0700)] 
Change default splitPoint to 100

7 years agoChange back to splitPoint<=0
Jennifer Liu [Mon, 9 Jul 2018 20:53:25 +0000 (13:53 -0700)] 
Change back to splitPoint<=0

7 years agoOnly make 0.0 default splitPoint
Jennifer Liu [Mon, 9 Jul 2018 19:26:53 +0000 (12:26 -0700)] 
Only make 0.0 default splitPoint

7 years agoChange cover_sum back to 2 parameters and fix splitPoint issues
Jennifer Liu [Fri, 6 Jul 2018 21:24:18 +0000 (14:24 -0700)] 
Change cover_sum back to 2 parameters and fix splitPoint issues

7 years agoFix testing parameter
Jennifer Liu [Fri, 6 Jul 2018 05:40:32 +0000 (22:40 -0700)] 
Fix testing parameter

7 years agoUpdate doc for split==100
Jennifer Liu [Thu, 5 Jul 2018 18:05:31 +0000 (11:05 -0700)] 
Update doc for split==100

7 years agoAllow splitPoint==1.0 (using all samples for both training and testing)
Jennifer Liu [Thu, 5 Jul 2018 17:38:45 +0000 (10:38 -0700)] 
Allow splitPoint==1.0 (using all samples for both training and testing)

7 years agoSome edits based on pull request comments
Jennifer Liu [Wed, 4 Jul 2018 00:53:27 +0000 (17:53 -0700)] 
Some edits based on pull request comments

7 years agoUpdate minimal training sample size
Jennifer Liu [Tue, 3 Jul 2018 19:07:06 +0000 (12:07 -0700)] 
Update minimal training sample size

7 years agoUpdate COVER dictionary builder tests
Jennifer Liu [Mon, 2 Jul 2018 18:37:04 +0000 (11:37 -0700)] 
Update COVER dictionary builder tests

7 years agoUpdate documentation
Jennifer Liu [Mon, 2 Jul 2018 02:59:37 +0000 (19:59 -0700)] 
Update documentation

7 years agoFix another declaration issue
Jennifer Liu [Sat, 30 Jun 2018 01:02:02 +0000 (18:02 -0700)] 
Fix another declaration issue

7 years agoAdd split=# to cli
Jennifer Liu [Sat, 30 Jun 2018 00:54:41 +0000 (17:54 -0700)] 
Add split=# to cli

7 years agoExplicitly cast double to unsigned
Jennifer Liu [Fri, 29 Jun 2018 23:17:20 +0000 (16:17 -0700)] 
Explicitly cast double to unsigned

7 years agoFix variable declaration problem
Jennifer Liu [Fri, 29 Jun 2018 22:46:56 +0000 (15:46 -0700)] 
Fix variable declaration problem

7 years agoAnother fix to comparator
Jennifer Liu [Fri, 29 Jun 2018 22:38:08 +0000 (15:38 -0700)] 
Another fix to comparator

7 years agoFix splitPoint floating point comparison problem
Jennifer Liu [Fri, 29 Jun 2018 19:47:03 +0000 (12:47 -0700)] 
Fix splitPoint floating point comparison problem

7 years agoSplit samples into train and test sets
Jennifer Liu [Fri, 29 Jun 2018 19:33:34 +0000 (12:33 -0700)] 
Split samples into train and test sets

7 years agoRedirect failed test result to INTOVOID and update comment about parsing fast command 1214/head
Jennifer Liu [Wed, 27 Jun 2018 23:27:45 +0000 (16:27 -0700)] 
Redirect failed test result to INTOVOID and update comment about parsing fast command

7 years agoMake fast=0 fail
Jennifer Liu [Wed, 27 Jun 2018 21:27:27 +0000 (14:27 -0700)] 
Make fast=0 fail

7 years agoset up sample config.yml
Jennifer Liu [Wed, 20 Jun 2018 21:23:14 +0000 (14:23 -0700)] 
set up sample config.yml

7 years agoMerge pull request #1198 from facebook/msdebug
Yann Collet [Wed, 20 Jun 2018 19:26:31 +0000 (12:26 -0700)] 
Merge pull request #1198 from facebook/msdebug

made Visual Studio compatible with DEBUGLEVEL >= 2

7 years agomade Visual Studio compatible with DEBUGLEVEL >= 2 1198/head
cyan4973 [Wed, 20 Jun 2018 16:45:02 +0000 (09:45 -0700)] 
made Visual Studio compatible with DEBUGLEVEL >= 2

7 years agoMerge pull request #1190 from terrelln/ldm-adjust
Yann Collet [Tue, 19 Jun 2018 21:40:56 +0000 (14:40 -0700)] 
Merge pull request #1190 from terrelln/ldm-adjust

Adjust advanced parameters to source size

7 years agoMerge pull request #1179 from supertopher/dev
Yann Collet [Tue, 19 Jun 2018 21:36:30 +0000 (14:36 -0700)] 
Merge pull request #1179 from supertopher/dev

Improves UX for --list command's lack of support for pipes

7 years agoMerge pull request #1194 from facebook/no-opaqueapi
Yann Collet [Tue, 19 Jun 2018 17:24:26 +0000 (10:24 -0700)] 
Merge pull request #1194 from facebook/no-opaqueapi

removed specific --opaqueapi test

7 years agoTests to verify piped input to `--list` exits 1 1179/head
Topher Lubaway [Tue, 19 Jun 2018 16:56:37 +0000 (09:56 -0700)] 
Tests to verify piped input to `--list` exits 1

I'm following the pattern that i saw in the rest of the test file
please tell me if i am using the wrong conventions

7 years agoremoved specific --opaqueapi test 1194/head
Yann Collet [Tue, 19 Jun 2018 02:20:37 +0000 (19:20 -0700)] 
removed specific --opaqueapi test

from zstreamtest.

This test is now integrated within --newapi,
which dynamically switches between the 2 modes randomly.

The main outcome is reduced testing time.

7 years agoUse debug.h in fileio.c 1190/head
Nick Terrell [Fri, 15 Jun 2018 14:36:54 +0000 (07:36 -0700)] 
Use debug.h in fileio.c

7 years agoAdjust advanced parameters to source size
Nick Terrell [Thu, 14 Jun 2018 23:24:18 +0000 (16:24 -0700)] 
Adjust advanced parameters to source size

In the new advanced API, adjust the parameters even if they are explicitly
set. This mainly applies to the `windowLog`, and accordingly the `hashLog`
and `chainLog`, when the source size is known.

7 years agoMerge pull request #1185 from felixhandte/zstd-btlazy-in-place-dict
Yann Collet [Mon, 18 Jun 2018 20:29:44 +0000 (13:29 -0700)] 
Merge pull request #1185 from felixhandte/zstd-btlazy-in-place-dict

ZSTD_btlazy2: Support Searching the Dictionary Context In-Place

7 years agoMerge pull request #1191 from facebook/huf_rename
Yann Collet [Fri, 15 Jun 2018 15:25:08 +0000 (11:25 -0400)] 
Merge pull request #1191 from facebook/huf_rename

Rename huffman decompression functions

7 years agoMerge branch 'dev' into huf_rename 1191/head
Yann Collet [Fri, 15 Jun 2018 00:42:10 +0000 (20:42 -0400)] 
Merge branch 'dev' into huf_rename

7 years agogrouped X2 function together
Yann Collet [Fri, 15 Jun 2018 00:41:50 +0000 (20:41 -0400)] 
grouped X2 function together

7 years agoMerge pull request #1189 from facebook/hist
Yann Collet [Fri, 15 Jun 2018 00:39:52 +0000 (20:39 -0400)] 
Merge pull request #1189 from facebook/hist

histogram module

7 years agoadded debug.h for cmake 1189/head
Yann Collet [Thu, 14 Jun 2018 23:48:40 +0000 (19:48 -0400)] 
added debug.h for cmake

7 years agoavoid duplicate code comments
Yann Collet [Thu, 14 Jun 2018 23:47:05 +0000 (19:47 -0400)] 
avoid duplicate code comments

when a function is decribed in hist.h,
do not describe it again in hist.c
to avoid future doc synchronization issues.

7 years agoVisual Studio project blind fix
Yann Collet [Thu, 14 Jun 2018 19:51:31 +0000 (15:51 -0400)] 
Visual Studio project blind fix

7 years agoMerge pull request #1187 from facebook/fix1186
Yann Collet [Thu, 14 Jun 2018 20:22:22 +0000 (16:22 -0400)] 
Merge pull request #1187 from facebook/fix1186

fix dctx initialization within ZSTD_decompress in stack mode

7 years agoMerge pull request #1184 from facebook/debug
Yann Collet [Thu, 14 Jun 2018 20:21:53 +0000 (16:21 -0400)] 
Merge pull request #1184 from facebook/debug

Grouped debug functions into debug.h

7 years agoAdd CXXFLAGS to ALL_LDFLAGS (#1178)
Ryan Schmidt [Thu, 14 Jun 2018 20:05:33 +0000 (15:05 -0500)] 
Add CXXFLAGS to ALL_LDFLAGS (#1178)

pzstd requires C++11, which older C++ standard libraries like libstdc++
as used on OS X 10.8 and earlier don't support. The user might address
this by setting "CXXFLAGS=-stdlib=libc++". This flag must be used both
at compile time and at link time. Asking the user to also put the flag
in LDFLAGS is undesirable because then the flag would also be used when
linking C code, which would be inappropriate.

7 years agorenamed all HUF_decompress*X4*() functions into *X2
Yann Collet [Thu, 14 Jun 2018 19:17:03 +0000 (15:17 -0400)] 
renamed all HUF_decompress*X4*() functions into *X2

to underline they generate up to 2 symbols per decoding,
in preparation for a future *X3 variant.

7 years agorenamed all HUF_decompress*X2*() functions into *X1
Yann Collet [Thu, 14 Jun 2018 19:08:43 +0000 (15:08 -0400)] 
renamed all HUF_decompress*X2*() functions into *X1

to underline they generate one symbol per decoding operation.

The new naming scheme will make it easier to introduce an *X3 variant.

7 years agoForce Inline BtFindBestMatch 1185/head
W. Felix Handte [Thu, 14 Jun 2018 18:53:36 +0000 (14:53 -0400)] 
Force Inline BtFindBestMatch

7 years agofix dctx initialization within ZSTD_decompress in stack mode 1187/head
Yann Collet [Thu, 14 Jun 2018 14:22:24 +0000 (10:22 -0400)] 
fix dctx initialization within ZSTD_decompress in stack mode

when ZSTD_HEAPMODE=0 (which is not default).

Also : added an associated test (test-fuzzer-stackmode)
run on travis CI

fix #1186

7 years agofixed g_debuglevel variable name 1184/head
Yann Collet [Thu, 14 Jun 2018 00:02:33 +0000 (20:02 -0400)] 
fixed g_debuglevel variable name

in debug.h

7 years agogrouped all histogram functions into hist.c
Yann Collet [Wed, 13 Jun 2018 23:49:31 +0000 (19:49 -0400)] 
grouped all histogram functions into hist.c

renamed functions with HIST_* prefix

7 years agoReduce noise in diff
Topher Lubaway [Wed, 13 Jun 2018 21:32:59 +0000 (14:32 -0700)] 
Reduce noise in diff

putting the code block back on the exact line it came from

7 years agoRemoves duplicate IS_CONSOLE from PR
Topher Lubaway [Wed, 13 Jun 2018 20:39:23 +0000 (13:39 -0700)] 
Removes duplicate IS_CONSOLE from PR

I misunderstood that this function was included already

7 years agoSearch Dict for Matches
W. Felix Handte [Tue, 12 Jun 2018 22:38:10 +0000 (18:38 -0400)] 
Search Dict for Matches

7 years agoAttach Dicts when Using ZSTD_btlazy2
W. Felix Handte [Tue, 12 Jun 2018 22:32:57 +0000 (18:32 -0400)] 
Attach Dicts when Using ZSTD_btlazy2

7 years agoMerge pull request #1169 from felixhandte/zstd-lazy-in-place-dict
Yann Collet [Wed, 13 Jun 2018 20:05:41 +0000 (16:05 -0400)] 
Merge pull request #1169 from felixhandte/zstd-lazy-in-place-dict

ZSTD_lazy: Support Searching the Dictionary Context In-Place

7 years agogrouped debug functions into debug.h
Yann Collet [Wed, 13 Jun 2018 18:59:26 +0000 (14:59 -0400)] 
grouped debug functions into debug.h

There were 2 competing set of debug functions
within zstd_internal.h and bitstream.h.
They were mostly duplicate, and required care to avoid messing with each other.

There is now a single implementation, shared by both.

Significant change :
The macro variable ZSTD_DEBUG does no longer exist,
it has been replaced by DEBUGLEVEL,
which required modifying several source files.

7 years agoFix Cast Warning 1169/head
W. Felix Handte [Sat, 9 Jun 2018 21:19:04 +0000 (17:19 -0400)] 
Fix Cast Warning

7 years agoExtend Dictionary Matches Backwards
W. Felix Handte [Fri, 8 Jun 2018 19:06:47 +0000 (15:06 -0400)] 
Extend Dictionary Matches Backwards

7 years agoUpdate Dictionary Attachment Cutoff Values Again
W. Felix Handte [Thu, 7 Jun 2018 20:57:45 +0000 (16:57 -0400)] 
Update Dictionary Attachment Cutoff Values Again

7 years agoDo Not Inline DMS Search Function
W. Felix Handte [Thu, 7 Jun 2018 20:55:13 +0000 (16:55 -0400)] 
Do Not Inline DMS Search Function

7 years agoAlso Implement Depth Repcode Checks
W. Felix Handte [Wed, 6 Jun 2018 23:54:13 +0000 (19:54 -0400)] 
Also Implement Depth Repcode Checks

7 years agoApply Match Continuation Bug Fix
W. Felix Handte [Wed, 6 Jun 2018 21:34:29 +0000 (17:34 -0400)] 
Apply Match Continuation Bug Fix

7 years agoUpdate Dictionary Attachment Cutoff Values
W. Felix Handte [Thu, 31 May 2018 22:32:41 +0000 (18:32 -0400)] 
Update Dictionary Attachment Cutoff Values

7 years agoCheck Dict Match State in ZSTD_HcFindBestMatch_generic
W. Felix Handte [Tue, 29 May 2018 20:26:23 +0000 (16:26 -0400)] 
Check Dict Match State in ZSTD_HcFindBestMatch_generic

7 years agoFocus on Non-BT Impls for the Moment
W. Felix Handte [Tue, 29 May 2018 20:06:23 +0000 (16:06 -0400)] 
Focus on Non-BT Impls for the Moment

7 years agoRemove Pre-Existing Repcode Check
W. Felix Handte [Tue, 29 May 2018 20:05:48 +0000 (16:05 -0400)] 
Remove Pre-Existing Repcode Check

7 years agoSecond Repcode Check
W. Felix Handte [Wed, 23 May 2018 19:49:43 +0000 (15:49 -0400)] 
Second Repcode Check

7 years agoFirst Repcode Check
W. Felix Handte [Wed, 23 May 2018 19:06:24 +0000 (15:06 -0400)] 
First Repcode Check

7 years agoDisallow Too-Long Repcodes When Using an Attached Dict
W. Felix Handte [Wed, 23 May 2018 18:13:16 +0000 (14:13 -0400)] 
Disallow Too-Long Repcodes When Using an Attached Dict

7 years agoRename `base` -> `prefixLowest`
W. Felix Handte [Wed, 23 May 2018 19:10:18 +0000 (15:10 -0400)] 
Rename `base` -> `prefixLowest`

7 years agoGo Back to Separate Intermediate Functions for Different Dict Modes
W. Felix Handte [Fri, 1 Jun 2018 18:23:14 +0000 (14:23 -0400)] 
Go Back to Separate Intermediate Functions for Different Dict Modes

7 years agoFurther Templatize Intermediate Functions on dictMode
W. Felix Handte [Wed, 16 May 2018 08:32:21 +0000 (04:32 -0400)] 
Further Templatize Intermediate Functions on dictMode

7 years agoConvert Existing U32 extDict Vars to ZSTD_dictMode Enums
W. Felix Handte [Wed, 16 May 2018 08:07:09 +0000 (04:07 -0400)] 
Convert Existing U32 extDict Vars to ZSTD_dictMode Enums

7 years agoAttach Dict When Using ZSTD_lazy Strategies
W. Felix Handte [Wed, 16 May 2018 06:31:30 +0000 (02:31 -0400)] 
Attach Dict When Using ZSTD_lazy Strategies

7 years agoAdd _dictMatchState Stubs for ZSTD_lazy Functions
W. Felix Handte [Wed, 16 May 2018 06:30:20 +0000 (02:30 -0400)] 
Add _dictMatchState Stubs for ZSTD_lazy Functions

7 years agoAdd dictMode Param to ZSTD_compressBlock_lazy_generic
W. Felix Handte [Wed, 16 May 2018 06:26:07 +0000 (02:26 -0400)] 
Add dictMode Param to ZSTD_compressBlock_lazy_generic

7 years agoMerge pull request #1168 from GeorgeLu97/paramgrillfeatures
Yann Collet [Wed, 13 Jun 2018 15:38:29 +0000 (11:38 -0400)] 
Merge pull request #1168 from GeorgeLu97/paramgrillfeatures

Have paramgrill share bench.c benchmarking function

7 years agoMerge pull request #1175 from ryandesign/macos
Yann Collet [Wed, 13 Jun 2018 15:32:06 +0000 (11:32 -0400)] 
Merge pull request #1175 from ryandesign/macos

Fix name of macOS

7 years agoRequested changes 1168/head
George Lu [Mon, 11 Jun 2018 14:59:05 +0000 (10:59 -0400)] 
Requested changes

-Remove g_displaylevel/setNotificationLevel function
-Add extern "C"
-Remove averaging
-Reorder arguments

More fixes

-Added BMK_return_t (result + possible error)
-Correct comment'
-Nullcheck ctx, dctx when allocated
-Remove extra assert

7 years agoMerge pull request #1174 from duc0/document_default_level
Yann Collet [Tue, 12 Jun 2018 19:09:01 +0000 (12:09 -0700)] 
Merge pull request #1174 from duc0/document_default_level

Expose ZSTD_CLEVEL_DEFAULT and update documentation

7 years agoKeep windows specific headers
Topher Lubaway [Tue, 12 Jun 2018 17:16:27 +0000 (10:16 -0700)] 
Keep windows specific headers

Accidentially deleted this existing windows only header

7 years agoMulti-OS support for --list detecting stream input
Topher Lubaway [Tue, 12 Jun 2018 14:59:17 +0000 (07:59 -0700)] 
Multi-OS support for --list detecting stream input

IS_CONSOLE stolen wholesale from Options.cpp
not sure if i should have extracted that code for DRY-ness
tested in OSX and functionality seems appropriate
unstested in a windows environment

7 years agoOnly check for tty in non-windows environments
Topher Lubaway [Mon, 11 Jun 2018 22:26:35 +0000 (15:26 -0700)] 
Only check for tty in non-windows environments

unistd.h is for unix standard tools.
There does not appear to be a simple isatty for windows
this we only run the logic and header include in
non-windows environments

7 years agoProperly brackets isatty if statement
Topher Lubaway [Mon, 11 Jun 2018 19:19:15 +0000 (12:19 -0700)] 
Properly brackets isatty if statement

 ¯\_(ツ)_/¯ this is my first commit in c

7 years agoImproves UX for --list command's lack of support for pipes
Topher Lubaway [Mon, 11 Jun 2018 17:13:00 +0000 (10:13 -0700)] 
Improves UX for --list command's lack of support for pipes

--list does not support piped input
This checks for a terminal and exits 1 with a well formatted
error message if the STDIN is not from a terminal

7 years agoLine break 1174/head
Duc Ngo [Mon, 11 Jun 2018 17:02:15 +0000 (10:02 -0700)] 
Line break

7 years agoAddress comments
Duc Ngo [Mon, 11 Jun 2018 17:01:35 +0000 (10:01 -0700)] 
Address comments

7 years agoMerge pull request #1177 from ryandesign/gen_html-CXXFLAGS
Yann Collet [Mon, 11 Jun 2018 00:34:19 +0000 (17:34 -0700)] 
Merge pull request #1177 from ryandesign/gen_html-CXXFLAGS

Remove duplicate CXXFLAGS

7 years agoRemove duplicate CXXFLAGS 1177/head
Ryan Schmidt [Sun, 10 Jun 2018 23:04:21 +0000 (18:04 -0500)] 
Remove duplicate CXXFLAGS