zstdlib 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +5 -0
  3. data/ext/zstdlib/extconf.rb +1 -1
  4. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/bitstream.h +31 -37
  5. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/compiler.h +19 -3
  6. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/cpu.h +1 -1
  7. data/ext/zstdlib/zstd-1.4.5/lib/common/debug.c +24 -0
  8. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/debug.h +11 -31
  9. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/entropy_common.c +13 -33
  10. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/error_private.c +2 -1
  11. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/error_private.h +6 -2
  12. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/fse.h +11 -31
  13. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/fse_decompress.c +12 -37
  14. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/huf.h +15 -33
  15. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/mem.h +1 -1
  16. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/pool.c +1 -1
  17. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/pool.h +2 -2
  18. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/threading.c +4 -3
  19. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/threading.h +4 -3
  20. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/xxhash.c +15 -33
  21. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/xxhash.h +11 -31
  22. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/zstd_common.c +1 -1
  23. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/zstd_errors.h +2 -1
  24. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/common/zstd_internal.h +112 -15
  25. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/fse_compress.c +17 -40
  26. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/hist.c +15 -35
  27. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/hist.h +12 -32
  28. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/huf_compress.c +92 -92
  29. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress.c +450 -275
  30. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress_internal.h +136 -14
  31. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress_literals.c +10 -6
  32. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress_literals.h +1 -1
  33. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress_sequences.c +24 -20
  34. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_compress_sequences.h +10 -3
  35. data/ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_superblock.c +845 -0
  36. data/ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_superblock.h +32 -0
  37. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_cwksp.h +3 -13
  38. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_double_fast.c +11 -8
  39. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_double_fast.h +2 -2
  40. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_fast.c +36 -24
  41. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_fast.h +2 -2
  42. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_lazy.c +34 -11
  43. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_lazy.h +1 -1
  44. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_ldm.c +27 -5
  45. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_ldm.h +7 -2
  46. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_opt.c +38 -84
  47. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstd_opt.h +1 -1
  48. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstdmt_compress.c +48 -21
  49. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/compress/zstdmt_compress.h +2 -2
  50. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/huf_decompress.c +76 -62
  51. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_ddict.c +12 -8
  52. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_ddict.h +2 -2
  53. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_decompress.c +264 -148
  54. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_decompress_block.c +312 -203
  55. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_decompress_block.h +3 -3
  56. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/decompress/zstd_decompress_internal.h +18 -4
  57. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/lib/zstd.h +62 -21
  58. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzclose.c +0 -0
  59. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzcompatibility.h +1 -1
  60. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzguts.h +0 -0
  61. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzlib.c +0 -0
  62. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzread.c +0 -0
  63. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/gzwrite.c +0 -0
  64. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/zstd_zlibwrapper.c +1 -1
  65. data/ext/zstdlib/{zstd-1.4.4 → zstd-1.4.5}/zlibWrapper/zstd_zlibwrapper.h +1 -1
  66. metadata +65 -63
  67. data/ext/zstdlib/zstd-1.4.4/lib/common/debug.c +0 -44
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
@@ -16,8 +16,8 @@
16
16
  * Dependencies
17
17
  *********************************************************/
18
18
  #include <stddef.h> /* size_t */
19
- #include "zstd.h" /* DCtx, and some public functions */
20
- #include "zstd_internal.h" /* blockProperties_t, and some public functions */
19
+ #include "../zstd.h" /* DCtx, and some public functions */
20
+ #include "../common/zstd_internal.h" /* blockProperties_t, and some public functions */
21
21
  #include "zstd_decompress_internal.h" /* ZSTD_seqSymbol */
22
22
 
23
23
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
@@ -19,8 +19,8 @@
19
19
  /*-*******************************************************
20
20
  * Dependencies
21
21
  *********************************************************/
22
- #include "mem.h" /* BYTE, U16, U32 */
23
- #include "zstd_internal.h" /* ZSTD_seqSymbol */
22
+ #include "../common/mem.h" /* BYTE, U16, U32 */
23
+ #include "../common/zstd_internal.h" /* ZSTD_seqSymbol */
24
24
 
25
25
 
26
26
 
@@ -95,6 +95,11 @@ typedef enum {
95
95
  ZSTD_use_once = 1 /* Use the dictionary once and set to ZSTD_dont_use */
96
96
  } ZSTD_dictUses_e;
97
97
 
98
+ typedef enum {
99
+ ZSTD_obm_buffered = 0, /* Buffer the output */
100
+ ZSTD_obm_stable = 1 /* ZSTD_outBuffer is stable */
101
+ } ZSTD_outBufferMode_e;
102
+
98
103
  struct ZSTD_DCtx_s
99
104
  {
100
105
  const ZSTD_seqSymbol* LLTptr;
@@ -147,10 +152,19 @@ struct ZSTD_DCtx_s
147
152
  U32 legacyVersion;
148
153
  U32 hostageByte;
149
154
  int noForwardProgress;
155
+ ZSTD_outBufferMode_e outBufferMode;
156
+ ZSTD_outBuffer expectedOutBuffer;
150
157
 
151
158
  /* workspace */
152
159
  BYTE litBuffer[ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH];
153
160
  BYTE headerBuffer[ZSTD_FRAMEHEADERSIZE_MAX];
161
+
162
+ size_t oversizedDuration;
163
+
164
+ #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
165
+ void const* dictContentBeginForFuzzing;
166
+ void const* dictContentEndForFuzzing;
167
+ #endif
154
168
  }; /* typedef'd to ZSTD_DCtx within "zstd.h" */
155
169
 
156
170
 
@@ -160,7 +174,7 @@ struct ZSTD_DCtx_s
160
174
 
161
175
  /*! ZSTD_loadDEntropy() :
162
176
  * dict : must point at beginning of a valid zstd dictionary.
163
- * @return : size of entropy tables read */
177
+ * @return : size of dictionary header (size of magic number + dict ID + entropy tables) */
164
178
  size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy,
165
179
  const void* const dict, size_t const dictSize);
166
180
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
@@ -72,7 +72,7 @@ extern "C" {
72
72
  /*------ Version ------*/
73
73
  #define ZSTD_VERSION_MAJOR 1
74
74
  #define ZSTD_VERSION_MINOR 4
75
- #define ZSTD_VERSION_RELEASE 4
75
+ #define ZSTD_VERSION_RELEASE 5
76
76
 
77
77
  #define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
78
78
  ZSTDLIB_API unsigned ZSTD_versionNumber(void); /**< to check runtime library version */
@@ -274,7 +274,10 @@ typedef enum {
274
274
  * Default level is ZSTD_CLEVEL_DEFAULT==3.
275
275
  * Special: value 0 means default, which is controlled by ZSTD_CLEVEL_DEFAULT.
276
276
  * Note 1 : it's possible to pass a negative compression level.
277
- * Note 2 : setting a level resets all other compression parameters to default */
277
+ * Note 2 : setting a level does not automatically set all other compression parameters
278
+ * to default. Setting this will however eventually dynamically impact the compression
279
+ * parameters which have not been manually set. The manually set
280
+ * ones will 'stick'. */
278
281
  /* Advanced compression parameters :
279
282
  * It's possible to pin down compression parameters to some specific values.
280
283
  * In which case, these values are no longer dynamically selected by the compressor */
@@ -519,11 +522,13 @@ typedef enum {
519
522
  /* note : additional experimental parameters are also available
520
523
  * within the experimental section of the API.
521
524
  * At the time of this writing, they include :
522
- * ZSTD_c_format
525
+ * ZSTD_d_format
526
+ * ZSTD_d_stableOutBuffer
523
527
  * Because they are not stable, it's necessary to define ZSTD_STATIC_LINKING_ONLY to access them.
524
528
  * note : never ever use experimentalParam? names directly
525
529
  */
526
- ZSTD_d_experimentalParam1=1000
530
+ ZSTD_d_experimentalParam1=1000,
531
+ ZSTD_d_experimentalParam2=1001
527
532
 
528
533
  } ZSTD_dParameter;
529
534
 
@@ -763,7 +768,7 @@ ZSTDLIB_API size_t ZSTD_freeDStream(ZSTD_DStream* zds);
763
768
 
764
769
  /* This function is redundant with the advanced API and equivalent to:
765
770
  *
766
- * ZSTD_DCtx_reset(zds);
771
+ * ZSTD_DCtx_reset(zds, ZSTD_reset_session_only);
767
772
  * ZSTD_DCtx_refDDict(zds, NULL);
768
773
  */
769
774
  ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream* zds);
@@ -1263,23 +1268,28 @@ ZSTDLIB_API size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
1263
1268
  ***************************************/
1264
1269
 
1265
1270
  /*! ZSTD_estimate*() :
1266
- * These functions make it possible to estimate memory usage of a future
1267
- * {D,C}Ctx, before its creation.
1271
+ * These functions make it possible to estimate memory usage
1272
+ * of a future {D,C}Ctx, before its creation.
1273
+ *
1274
+ * ZSTD_estimateCCtxSize() will provide a memory budget large enough
1275
+ * for any compression level up to selected one.
1276
+ * Note : Unlike ZSTD_estimateCStreamSize*(), this estimate
1277
+ * does not include space for a window buffer.
1278
+ * Therefore, the estimation is only guaranteed for single-shot compressions, not streaming.
1279
+ * The estimate will assume the input may be arbitrarily large,
1280
+ * which is the worst case.
1268
1281
  *
1269
- * ZSTD_estimateCCtxSize() will provide a budget large enough for any
1270
- * compression level up to selected one. Unlike ZSTD_estimateCStreamSize*(),
1271
- * this estimate does not include space for a window buffer, so this estimate
1272
- * is guaranteed to be enough for single-shot compressions, but not streaming
1273
- * compressions. It will however assume the input may be arbitrarily large,
1274
- * which is the worst case. If srcSize is known to always be small,
1275
- * ZSTD_estimateCCtxSize_usingCParams() can provide a tighter estimation.
1276
- * ZSTD_estimateCCtxSize_usingCParams() can be used in tandem with
1277
- * ZSTD_getCParams() to create cParams from compressionLevel.
1278
- * ZSTD_estimateCCtxSize_usingCCtxParams() can be used in tandem with
1279
- * ZSTD_CCtxParams_setParameter().
1282
+ * When srcSize can be bound by a known and rather "small" value,
1283
+ * this fact can be used to provide a tighter estimation
1284
+ * because the CCtx compression context will need less memory.
1285
+ * This tighter estimation can be provided by more advanced functions
1286
+ * ZSTD_estimateCCtxSize_usingCParams(), which can be used in tandem with ZSTD_getCParams(),
1287
+ * and ZSTD_estimateCCtxSize_usingCCtxParams(), which can be used in tandem with ZSTD_CCtxParams_setParameter().
1288
+ * Both can be used to estimate memory using custom compression parameters and arbitrary srcSize limits.
1280
1289
  *
1281
- * Note: only single-threaded compression is supported. This function will
1282
- * return an error code if ZSTD_c_nbWorkers is >= 1. */
1290
+ * Note 2 : only single-threaded compression is supported.
1291
+ * ZSTD_estimateCCtxSize_usingCCtxParams() will return an error code if ZSTD_c_nbWorkers is >= 1.
1292
+ */
1283
1293
  ZSTDLIB_API size_t ZSTD_estimateCCtxSize(int compressionLevel);
1284
1294
  ZSTDLIB_API size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams);
1285
1295
  ZSTDLIB_API size_t ZSTD_estimateCCtxSize_usingCCtxParams(const ZSTD_CCtx_params* params);
@@ -1642,6 +1652,37 @@ ZSTDLIB_API size_t ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx* dctx, size_t maxWindowS
1642
1652
  * allowing selection between ZSTD_format_e input compression formats
1643
1653
  */
1644
1654
  #define ZSTD_d_format ZSTD_d_experimentalParam1
1655
+ /* ZSTD_d_stableOutBuffer
1656
+ * Experimental parameter.
1657
+ * Default is 0 == disabled. Set to 1 to enable.
1658
+ *
1659
+ * Tells the decompressor that the ZSTD_outBuffer will ALWAYS be the same
1660
+ * between calls, except for the modifications that zstd makes to pos (the
1661
+ * caller must not modify pos). This is checked by the decompressor, and
1662
+ * decompression will fail if it ever changes. Therefore the ZSTD_outBuffer
1663
+ * MUST be large enough to fit the entire decompressed frame. This will be
1664
+ * checked when the frame content size is known. The data in the ZSTD_outBuffer
1665
+ * in the range [dst, dst + pos) MUST not be modified during decompression
1666
+ * or you will get data corruption.
1667
+ *
1668
+ * When this flags is enabled zstd won't allocate an output buffer, because
1669
+ * it can write directly to the ZSTD_outBuffer, but it will still allocate
1670
+ * an input buffer large enough to fit any compressed block. This will also
1671
+ * avoid the memcpy() from the internal output buffer to the ZSTD_outBuffer.
1672
+ * If you need to avoid the input buffer allocation use the buffer-less
1673
+ * streaming API.
1674
+ *
1675
+ * NOTE: So long as the ZSTD_outBuffer always points to valid memory, using
1676
+ * this flag is ALWAYS memory safe, and will never access out-of-bounds
1677
+ * memory. However, decompression WILL fail if you violate the preconditions.
1678
+ *
1679
+ * WARNING: The data in the ZSTD_outBuffer in the range [dst, dst + pos) MUST
1680
+ * not be modified during decompression or you will get data corruption. This
1681
+ * is because zstd needs to reference data in the ZSTD_outBuffer to regenerate
1682
+ * matches. Normally zstd maintains its own buffer for this purpose, but passing
1683
+ * this flag tells zstd to use the user provided buffer.
1684
+ */
1685
+ #define ZSTD_d_stableOutBuffer ZSTD_d_experimentalParam2
1645
1686
 
1646
1687
  /*! ZSTD_DCtx_setFormat() :
1647
1688
  * Instruct the decoder context about what kind of data to decode next.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
2
+ * Copyright (c) 2016-2020, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under both the BSD-style license (found in the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zstdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg A. Khlybov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -129,66 +129,68 @@ files:
129
129
  - ext/zstdlib/zlib.mk
130
130
  - ext/zstdlib/zlibwrapper.mk
131
131
  - ext/zstdlib/zlibwrapper/zlibwrapper.c
132
- - ext/zstdlib/zstd-1.4.4/lib/common/bitstream.h
133
- - ext/zstdlib/zstd-1.4.4/lib/common/compiler.h
134
- - ext/zstdlib/zstd-1.4.4/lib/common/cpu.h
135
- - ext/zstdlib/zstd-1.4.4/lib/common/debug.c
136
- - ext/zstdlib/zstd-1.4.4/lib/common/debug.h
137
- - ext/zstdlib/zstd-1.4.4/lib/common/entropy_common.c
138
- - ext/zstdlib/zstd-1.4.4/lib/common/error_private.c
139
- - ext/zstdlib/zstd-1.4.4/lib/common/error_private.h
140
- - ext/zstdlib/zstd-1.4.4/lib/common/fse.h
141
- - ext/zstdlib/zstd-1.4.4/lib/common/fse_decompress.c
142
- - ext/zstdlib/zstd-1.4.4/lib/common/huf.h
143
- - ext/zstdlib/zstd-1.4.4/lib/common/mem.h
144
- - ext/zstdlib/zstd-1.4.4/lib/common/pool.c
145
- - ext/zstdlib/zstd-1.4.4/lib/common/pool.h
146
- - ext/zstdlib/zstd-1.4.4/lib/common/threading.c
147
- - ext/zstdlib/zstd-1.4.4/lib/common/threading.h
148
- - ext/zstdlib/zstd-1.4.4/lib/common/xxhash.c
149
- - ext/zstdlib/zstd-1.4.4/lib/common/xxhash.h
150
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_common.c
151
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_errors.h
152
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_internal.h
153
- - ext/zstdlib/zstd-1.4.4/lib/compress/fse_compress.c
154
- - ext/zstdlib/zstd-1.4.4/lib/compress/hist.c
155
- - ext/zstdlib/zstd-1.4.4/lib/compress/hist.h
156
- - ext/zstdlib/zstd-1.4.4/lib/compress/huf_compress.c
157
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress.c
158
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_internal.h
159
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.c
160
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.h
161
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.c
162
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.h
163
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_cwksp.h
164
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.c
165
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.h
166
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.c
167
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.h
168
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.c
169
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.h
170
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.c
171
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.h
172
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.c
173
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.h
174
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.c
175
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.h
176
- - ext/zstdlib/zstd-1.4.4/lib/decompress/huf_decompress.c
177
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.c
178
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.h
179
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress.c
180
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.c
181
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.h
182
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_internal.h
183
- - ext/zstdlib/zstd-1.4.4/lib/zstd.h
184
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzclose.c
185
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzcompatibility.h
186
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzguts.h
187
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzlib.c
188
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzread.c
189
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzwrite.c
190
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.c
191
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.h
132
+ - ext/zstdlib/zstd-1.4.5/lib/common/bitstream.h
133
+ - ext/zstdlib/zstd-1.4.5/lib/common/compiler.h
134
+ - ext/zstdlib/zstd-1.4.5/lib/common/cpu.h
135
+ - ext/zstdlib/zstd-1.4.5/lib/common/debug.c
136
+ - ext/zstdlib/zstd-1.4.5/lib/common/debug.h
137
+ - ext/zstdlib/zstd-1.4.5/lib/common/entropy_common.c
138
+ - ext/zstdlib/zstd-1.4.5/lib/common/error_private.c
139
+ - ext/zstdlib/zstd-1.4.5/lib/common/error_private.h
140
+ - ext/zstdlib/zstd-1.4.5/lib/common/fse.h
141
+ - ext/zstdlib/zstd-1.4.5/lib/common/fse_decompress.c
142
+ - ext/zstdlib/zstd-1.4.5/lib/common/huf.h
143
+ - ext/zstdlib/zstd-1.4.5/lib/common/mem.h
144
+ - ext/zstdlib/zstd-1.4.5/lib/common/pool.c
145
+ - ext/zstdlib/zstd-1.4.5/lib/common/pool.h
146
+ - ext/zstdlib/zstd-1.4.5/lib/common/threading.c
147
+ - ext/zstdlib/zstd-1.4.5/lib/common/threading.h
148
+ - ext/zstdlib/zstd-1.4.5/lib/common/xxhash.c
149
+ - ext/zstdlib/zstd-1.4.5/lib/common/xxhash.h
150
+ - ext/zstdlib/zstd-1.4.5/lib/common/zstd_common.c
151
+ - ext/zstdlib/zstd-1.4.5/lib/common/zstd_errors.h
152
+ - ext/zstdlib/zstd-1.4.5/lib/common/zstd_internal.h
153
+ - ext/zstdlib/zstd-1.4.5/lib/compress/fse_compress.c
154
+ - ext/zstdlib/zstd-1.4.5/lib/compress/hist.c
155
+ - ext/zstdlib/zstd-1.4.5/lib/compress/hist.h
156
+ - ext/zstdlib/zstd-1.4.5/lib/compress/huf_compress.c
157
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress.c
158
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_internal.h
159
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_literals.c
160
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_literals.h
161
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_sequences.c
162
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_sequences.h
163
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_superblock.c
164
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_compress_superblock.h
165
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_cwksp.h
166
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_double_fast.c
167
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_double_fast.h
168
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_fast.c
169
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_fast.h
170
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_lazy.c
171
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_lazy.h
172
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_ldm.c
173
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_ldm.h
174
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_opt.c
175
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstd_opt.h
176
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstdmt_compress.c
177
+ - ext/zstdlib/zstd-1.4.5/lib/compress/zstdmt_compress.h
178
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/huf_decompress.c
179
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_ddict.c
180
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_ddict.h
181
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_decompress.c
182
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_decompress_block.c
183
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_decompress_block.h
184
+ - ext/zstdlib/zstd-1.4.5/lib/decompress/zstd_decompress_internal.h
185
+ - ext/zstdlib/zstd-1.4.5/lib/zstd.h
186
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzclose.c
187
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzcompatibility.h
188
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzguts.h
189
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzlib.c
190
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzread.c
191
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/gzwrite.c
192
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/zstd_zlibwrapper.c
193
+ - ext/zstdlib/zstd-1.4.5/zlibWrapper/zstd_zlibwrapper.h
192
194
  - ext/zstdlib/zstd.mk
193
195
  - lib/zstdlib.rb
194
196
  - test/zstdlib_test.rb
@@ -211,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
213
  - !ruby/object:Gem::Version
212
214
  version: '0'
213
215
  requirements: []
214
- rubygems_version: 3.0.4
216
+ rubygems_version: 3.1.2
215
217
  signing_key:
216
218
  specification_version: 4
217
219
  summary: Ruby interface for the Zstd data compression library
@@ -1,44 +0,0 @@
1
- /* ******************************************************************
2
- debug
3
- Part of FSE library
4
- Copyright (C) 2013-present, Yann Collet.
5
-
6
- BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
7
-
8
- Redistribution and use in source and binary forms, with or without
9
- modification, are permitted provided that the following conditions are
10
- met:
11
-
12
- * Redistributions of source code must retain the above copyright
13
- notice, this list of conditions and the following disclaimer.
14
- * Redistributions in binary form must reproduce the above
15
- copyright notice, this list of conditions and the following disclaimer
16
- in the documentation and/or other materials provided with the
17
- distribution.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
31
- You can contact the author at :
32
- - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
33
- ****************************************************************** */
34
-
35
-
36
- /*
37
- * This module only hosts one global variable
38
- * which can be used to dynamically influence the verbosity of traces,
39
- * such as DEBUGLOG and RAWLOG
40
- */
41
-
42
- #include "debug.h"
43
-
44
- int g_debuglevel = DEBUGLEVEL;