Nick Terrell
9c257dc268
Fix up xxhash
2017-04-04 15:54:39 -07:00
Nick Terrell
0888251fb1
Switch intptr_t to ptrdiff_t
2017-04-04 15:49:38 -07:00
Nick Terrell
675839254d
Move zstd.h to linux/zstd.h
2017-04-04 15:44:27 -07:00
Yann Collet
c2007388a5
fixed bench.c : optional advanced parameters applied
...
before creating cdict
2017-04-04 15:35:06 -07:00
Yann Collet
81d6380139
minor bench.c adjustments
...
shorter debug messages
no need to check decompressedLength==0 twice
2017-04-04 15:21:09 -07:00
Nick Terrell
b06507221e
Test module macros
2017-04-04 12:56:44 -07:00
Nick Terrell
b1b582b9fa
Add module macros
2017-04-04 12:56:35 -07:00
Yann Collet
7cf78f1be7
Protects ZSTD_compressBegin_usingCDict() vs NULL cdict dereference
...
Will issue an error (GENERIC) is cdict==NULL
2017-04-04 12:38:14 -07:00
Nick Terrell
b5e3e3c9a8
Add zstd kernel module Makefile
2017-04-04 12:10:47 -07:00
Nick Terrell
79298bf187
Add userland test with mock kernel headers
2017-04-04 11:53:22 -07:00
Nick Terrell
33fc0ad56a
Fix ZSTD_createCStream_usingCDict() and ZSTD_compress_usingCDict()
2017-04-04 11:52:49 -07:00
Yann Collet
ac11607715
Merge pull request #645 from terrelln/cdict
...
Fix ZSTD_initCStream_usingCDict() and ZSTD_compress_usingCDict()
2017-04-04 07:12:15 -07:00
Nick Terrell
26b046a7c4
Remove unnecessary dictID store
2017-04-03 21:46:28 -07:00
Nick Terrell
39a6cc5172
Make ZSTD_compress_usingCDict() respect contentSizeFlag
2017-04-03 21:09:55 -07:00
Nick Terrell
62ecad3819
Fix ZSTD_initCStream_usingCDict() to use dictionary
2017-04-03 21:05:59 -07:00
Yann Collet
40a78a7b5a
Merge pull request #643 from facebook/zstdmt
...
Optimize ZSTDMT_compress() memory usage
2017-04-03 17:25:05 -07:00
Nick Terrell
87cec8fd56
Fix compilation errors
2017-04-03 16:08:20 -07:00
Nick Terrell
59aadc85dc
Preallocate workSpace for cctx and combine create and init for cstream
2017-04-03 15:23:09 -07:00
Yann Collet
a36330a27d
minor man update, for overlapSize
2017-04-03 14:57:24 -07:00
Yann Collet
805c5a3efb
updated documentation on multithreading modes
2017-04-01 00:36:31 -07:00
Yann Collet
30c7698970
optimize ZSTDMT_compress() memory usage
...
does no longer allocate temporary buffers
when there is enough room in dstBuffer to decompress directly there.
(previous method would skip that for 1st chunk only).
Also : fix ZSTD_compressBound() for small srcSize
2017-03-31 18:27:03 -07:00
Nick Terrell
21b6c53b9f
Working on API
2017-03-31 18:07:32 -07:00
Yann Collet
3f75d52527
Changed ZSTD_compressBound()
...
required so that if Total = A+B
compressBound(Total) <= compressBound(A) + compressBound(B)
under condition of a minimum size for A and B
Will help for ZSTDMT_compress() memory allocation
2017-03-31 17:11:38 -07:00
Yann Collet
7b70a1969e
Merge branch 'dev' into zstdmt
2017-03-31 16:22:33 -07:00
Yann Collet
d11c7bf9bf
Merge branch 'dev' of github.com:facebook/zstd into dev
2017-03-31 16:19:52 -07:00
Yann Collet
271bff63d6
Merge pull request #642 from terrelln/no-sparse
...
Turn off sparse mode for OS X by default
2017-03-31 16:19:46 -07:00
Yann Collet
596ee423bb
Merge branch 'dev' of github.com:facebook/zstd into dev
2017-03-31 16:19:33 -07:00
Yann Collet
a935d67bf1
minor typo fixes in specification
2017-03-31 16:19:04 -07:00
Yann Collet
53203e7c38
Merge pull request #640 from facebook/memAccess
...
Changed memory strategy to __packed for gcc
2017-03-31 15:49:12 -07:00
Yann Collet
14433ca1ad
numerous typos and clarifications in format specification
...
fix limit values of Window_Size
bump version to 0.2.5
2017-03-31 15:45:58 -07:00
Nick Terrell
eb38617175
Clean up default sparse logic
2017-03-31 15:20:50 -07:00
Nick Terrell
96fe545a18
Turn off sparse mode for OS X by default
2017-03-31 15:16:43 -07:00
Yann Collet
eea7858e2b
fixed minor warnings in debug code
2017-03-30 16:47:19 -07:00
Yann Collet
34cc487d05
overlap at full windowSize for max compression level
...
as it provides max compression ratio
2017-03-30 16:23:22 -07:00
Yann Collet
458e955c23
improved ZSTDMT_compress()
...
Use a bit more threads by default.
Uses overlap segments to boost compression ratio (like the streaming variant)
2017-03-30 15:51:58 -07:00
Nick Terrell
e48b135521
Remove STATIC_LINKING_ONLY defines
2017-03-30 14:54:33 -07:00
Nick Terrell
6ce58897da
Use <asm/unaligned.h> for unaligned memory access
2017-03-30 14:53:57 -07:00
Nick Terrell
be7da5d98b
Change stdlib includes to linux includes
2017-03-30 14:53:52 -07:00
Nick Terrell
b3b41d0f6d
Remove platform specific macros
2017-03-30 14:53:23 -07:00
Nick Terrell
1075c12078
Convert all spaces to tabs
2017-03-30 14:49:45 -07:00
Nick Terrell
78063ca2bd
spaces to tabs
2017-03-30 14:47:42 -07:00
Nick Terrell
b1c6bb8702
Copy files into contrib/linux-kernel/
2017-03-30 14:47:35 -07:00
Sean Purcell
137efc0077
Make pzstd and cmake use gcc/g++
2017-03-30 14:46:24 -07:00
Sean Purcell
0fcb5d70b6
Build windows releases on appveyor as artifacts
2017-03-30 14:46:23 -07:00
Yann Collet
6476c51b86
Merge pull request #637 from facebook/zstdmt
...
Zstdmt
2017-03-30 14:18:37 -07:00
Yann Collet
274f59919d
Changed memory strategy to __packed for gcc
...
Method 1 __packed is always as good or better than memcpy().
But it's not portable, as it depends on compiler extension.
For gcc, __pakced directive works fine.
Furthermore, gcc has serious performance issues with memcpy() on ARM 32 bits.
See #620
2017-03-30 12:52:14 -07:00
Yann Collet
6851db48e0
created contrib/cleanTabs
2017-03-30 12:42:44 -07:00
Yann Collet
b6f9303af7
Merge pull request #638 from terrelln/tabs
...
Convert all tabs to spaces
2017-03-30 12:32:40 -07:00
Yann Collet
3d58a1f9b9
fixed Visual fuzzer project
2017-03-30 12:28:09 -07:00
Yann Collet
2bcefcc50d
fixed Visual Studio projects
2017-03-29 22:03:27 -07:00