zstdlib 0.10.0-arm64-darwin → 0.12.0-arm64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +17 -0
  3. data/ext/zstdlib_c/extconf.rb +9 -4
  4. data/ext/zstdlib_c/ruby/zlib-3.2/zstdlib.c +5090 -0
  5. data/ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c +5090 -0
  6. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/adler32.c +5 -27
  7. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/compress.c +5 -16
  8. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/crc32.c +94 -161
  9. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/deflate.c +362 -434
  10. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/deflate.h +43 -12
  11. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/gzclose.c +1 -3
  12. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/gzguts.h +13 -18
  13. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/gzlib.c +28 -85
  14. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/gzread.c +23 -73
  15. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/gzwrite.c +19 -65
  16. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/infback.c +17 -30
  17. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inffast.c +1 -4
  18. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inffast.h +1 -1
  19. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inflate.c +36 -102
  20. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inftrees.c +6 -11
  21. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inftrees.h +6 -6
  22. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/trees.c +290 -355
  23. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/uncompr.c +4 -12
  24. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/zconf.h +23 -14
  25. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/zlib.h +202 -199
  26. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/zutil.c +18 -44
  27. data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/zutil.h +13 -33
  28. data/ext/zstdlib_c/zstd-1.5.5/lib/common/allocations.h +55 -0
  29. data/ext/zstdlib_c/zstd-1.5.5/lib/common/bits.h +200 -0
  30. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/bitstream.h +19 -60
  31. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/compiler.h +26 -3
  32. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/cpu.h +1 -1
  33. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/debug.c +1 -1
  34. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/debug.h +1 -1
  35. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/entropy_common.c +12 -40
  36. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/error_private.c +9 -2
  37. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/error_private.h +1 -1
  38. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/fse.h +5 -83
  39. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/fse_decompress.c +7 -99
  40. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/huf.h +65 -156
  41. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/mem.h +39 -46
  42. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/pool.c +26 -10
  43. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/pool.h +7 -1
  44. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/portability_macros.h +22 -3
  45. data/ext/zstdlib_c/zstd-1.5.5/lib/common/threading.c +176 -0
  46. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/threading.h +5 -10
  47. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/xxhash.c +2 -2
  48. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/xxhash.h +8 -8
  49. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/zstd_common.c +1 -36
  50. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/zstd_deps.h +1 -1
  51. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/zstd_internal.h +17 -118
  52. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/common/zstd_trace.h +3 -3
  53. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/clevels.h +1 -1
  54. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/fse_compress.c +7 -124
  55. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/hist.c +1 -1
  56. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/hist.h +1 -1
  57. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/huf_compress.c +234 -169
  58. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress.c +1243 -538
  59. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_internal.h +225 -151
  60. data/ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_literals.c +235 -0
  61. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_literals.h +16 -8
  62. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_sequences.c +3 -3
  63. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_sequences.h +1 -1
  64. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_superblock.c +25 -21
  65. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_compress_superblock.h +1 -1
  66. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_cwksp.h +128 -62
  67. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_double_fast.c +95 -33
  68. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_double_fast.h +3 -2
  69. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_fast.c +433 -148
  70. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_fast.h +3 -2
  71. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_lazy.c +398 -345
  72. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_lazy.h +4 -2
  73. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_ldm.c +5 -5
  74. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_ldm.h +1 -1
  75. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_ldm_geartab.h +1 -1
  76. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_opt.c +106 -80
  77. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstd_opt.h +1 -1
  78. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstdmt_compress.c +17 -9
  79. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/compress/zstdmt_compress.h +1 -1
  80. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/huf_decompress.c +434 -441
  81. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/huf_decompress_amd64.S +30 -39
  82. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_ddict.c +4 -4
  83. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_ddict.h +1 -1
  84. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_decompress.c +205 -80
  85. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_decompress_block.c +201 -81
  86. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_decompress_block.h +6 -1
  87. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/decompress/zstd_decompress_internal.h +4 -2
  88. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/zdict.h +53 -31
  89. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/zstd.h +580 -135
  90. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/lib/zstd_errors.h +27 -8
  91. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzclose.c +1 -1
  92. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzcompatibility.h +8 -8
  93. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzguts.h +10 -10
  94. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzlib.c +3 -3
  95. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzread.c +10 -10
  96. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/gzwrite.c +5 -5
  97. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/zstd_zlibwrapper.c +46 -44
  98. data/ext/zstdlib_c/{zstd-1.5.2 → zstd-1.5.5}/zlibWrapper/zstd_zlibwrapper.h +4 -1
  99. data/lib/2.4/zstdlib_c.bundle +0 -0
  100. data/lib/2.5/zstdlib_c.bundle +0 -0
  101. data/lib/2.6/zstdlib_c.bundle +0 -0
  102. data/lib/2.7/zstdlib_c.bundle +0 -0
  103. data/lib/3.0/zstdlib_c.bundle +0 -0
  104. data/lib/3.1/zstdlib_c.bundle +0 -0
  105. data/lib/3.2/zstdlib_c.bundle +0 -0
  106. data/lib/3.3/zstdlib_c.bundle +0 -0
  107. metadata +111 -105
  108. data/ext/zstdlib_c/zstd-1.5.2/lib/common/threading.c +0 -122
  109. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_literals.c +0 -159
  110. /data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/crc32.h +0 -0
  111. /data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inffixed.h +0 -0
  112. /data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/inflate.h +0 -0
  113. /data/ext/zstdlib_c/{zlib-1.2.12 → zlib-1.3.1}/trees.h +0 -0
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.10.0
4
+ version: 0.12.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Oleg A. Khlybov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: 1.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0
68
+ version: 1.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: test-unit
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -101,104 +101,108 @@ files:
101
101
  - ext/zstdlib_c/ruby/zlib-2.7/zstdlib.c
102
102
  - ext/zstdlib_c/ruby/zlib-3.0/zstdlib.c
103
103
  - ext/zstdlib_c/ruby/zlib-3.1/zstdlib.c
104
- - ext/zstdlib_c/zlib-1.2.12/adler32.c
105
- - ext/zstdlib_c/zlib-1.2.12/compress.c
106
- - ext/zstdlib_c/zlib-1.2.12/crc32.c
107
- - ext/zstdlib_c/zlib-1.2.12/crc32.h
108
- - ext/zstdlib_c/zlib-1.2.12/deflate.c
109
- - ext/zstdlib_c/zlib-1.2.12/deflate.h
110
- - ext/zstdlib_c/zlib-1.2.12/gzclose.c
111
- - ext/zstdlib_c/zlib-1.2.12/gzguts.h
112
- - ext/zstdlib_c/zlib-1.2.12/gzlib.c
113
- - ext/zstdlib_c/zlib-1.2.12/gzread.c
114
- - ext/zstdlib_c/zlib-1.2.12/gzwrite.c
115
- - ext/zstdlib_c/zlib-1.2.12/infback.c
116
- - ext/zstdlib_c/zlib-1.2.12/inffast.c
117
- - ext/zstdlib_c/zlib-1.2.12/inffast.h
118
- - ext/zstdlib_c/zlib-1.2.12/inffixed.h
119
- - ext/zstdlib_c/zlib-1.2.12/inflate.c
120
- - ext/zstdlib_c/zlib-1.2.12/inflate.h
121
- - ext/zstdlib_c/zlib-1.2.12/inftrees.c
122
- - ext/zstdlib_c/zlib-1.2.12/inftrees.h
123
- - ext/zstdlib_c/zlib-1.2.12/trees.c
124
- - ext/zstdlib_c/zlib-1.2.12/trees.h
125
- - ext/zstdlib_c/zlib-1.2.12/uncompr.c
126
- - ext/zstdlib_c/zlib-1.2.12/zconf.h
127
- - ext/zstdlib_c/zlib-1.2.12/zlib.h
128
- - ext/zstdlib_c/zlib-1.2.12/zutil.c
129
- - ext/zstdlib_c/zlib-1.2.12/zutil.h
104
+ - ext/zstdlib_c/ruby/zlib-3.2/zstdlib.c
105
+ - ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c
106
+ - ext/zstdlib_c/zlib-1.3.1/adler32.c
107
+ - ext/zstdlib_c/zlib-1.3.1/compress.c
108
+ - ext/zstdlib_c/zlib-1.3.1/crc32.c
109
+ - ext/zstdlib_c/zlib-1.3.1/crc32.h
110
+ - ext/zstdlib_c/zlib-1.3.1/deflate.c
111
+ - ext/zstdlib_c/zlib-1.3.1/deflate.h
112
+ - ext/zstdlib_c/zlib-1.3.1/gzclose.c
113
+ - ext/zstdlib_c/zlib-1.3.1/gzguts.h
114
+ - ext/zstdlib_c/zlib-1.3.1/gzlib.c
115
+ - ext/zstdlib_c/zlib-1.3.1/gzread.c
116
+ - ext/zstdlib_c/zlib-1.3.1/gzwrite.c
117
+ - ext/zstdlib_c/zlib-1.3.1/infback.c
118
+ - ext/zstdlib_c/zlib-1.3.1/inffast.c
119
+ - ext/zstdlib_c/zlib-1.3.1/inffast.h
120
+ - ext/zstdlib_c/zlib-1.3.1/inffixed.h
121
+ - ext/zstdlib_c/zlib-1.3.1/inflate.c
122
+ - ext/zstdlib_c/zlib-1.3.1/inflate.h
123
+ - ext/zstdlib_c/zlib-1.3.1/inftrees.c
124
+ - ext/zstdlib_c/zlib-1.3.1/inftrees.h
125
+ - ext/zstdlib_c/zlib-1.3.1/trees.c
126
+ - ext/zstdlib_c/zlib-1.3.1/trees.h
127
+ - ext/zstdlib_c/zlib-1.3.1/uncompr.c
128
+ - ext/zstdlib_c/zlib-1.3.1/zconf.h
129
+ - ext/zstdlib_c/zlib-1.3.1/zlib.h
130
+ - ext/zstdlib_c/zlib-1.3.1/zutil.c
131
+ - ext/zstdlib_c/zlib-1.3.1/zutil.h
130
132
  - ext/zstdlib_c/zlib.mk
131
133
  - ext/zstdlib_c/zlibwrapper.mk
132
134
  - ext/zstdlib_c/zlibwrapper/zlibwrapper.c
133
- - ext/zstdlib_c/zstd-1.5.2/lib/common/bitstream.h
134
- - ext/zstdlib_c/zstd-1.5.2/lib/common/compiler.h
135
- - ext/zstdlib_c/zstd-1.5.2/lib/common/cpu.h
136
- - ext/zstdlib_c/zstd-1.5.2/lib/common/debug.c
137
- - ext/zstdlib_c/zstd-1.5.2/lib/common/debug.h
138
- - ext/zstdlib_c/zstd-1.5.2/lib/common/entropy_common.c
139
- - ext/zstdlib_c/zstd-1.5.2/lib/common/error_private.c
140
- - ext/zstdlib_c/zstd-1.5.2/lib/common/error_private.h
141
- - ext/zstdlib_c/zstd-1.5.2/lib/common/fse.h
142
- - ext/zstdlib_c/zstd-1.5.2/lib/common/fse_decompress.c
143
- - ext/zstdlib_c/zstd-1.5.2/lib/common/huf.h
144
- - ext/zstdlib_c/zstd-1.5.2/lib/common/mem.h
145
- - ext/zstdlib_c/zstd-1.5.2/lib/common/pool.c
146
- - ext/zstdlib_c/zstd-1.5.2/lib/common/pool.h
147
- - ext/zstdlib_c/zstd-1.5.2/lib/common/portability_macros.h
148
- - ext/zstdlib_c/zstd-1.5.2/lib/common/threading.c
149
- - ext/zstdlib_c/zstd-1.5.2/lib/common/threading.h
150
- - ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.c
151
- - ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.h
152
- - ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_common.c
153
- - ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_deps.h
154
- - ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_internal.h
155
- - ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_trace.h
156
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/clevels.h
157
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/fse_compress.c
158
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/hist.c
159
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/hist.h
160
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/huf_compress.c
161
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress.c
162
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_internal.h
163
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_literals.c
164
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_literals.h
165
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_sequences.c
166
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_sequences.h
167
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.c
168
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.h
169
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_cwksp.h
170
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_double_fast.c
171
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_double_fast.h
172
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_fast.c
173
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_fast.h
174
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.c
175
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.h
176
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_ldm.c
177
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_ldm.h
178
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_ldm_geartab.h
179
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_opt.c
180
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_opt.h
181
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstdmt_compress.c
182
- - ext/zstdlib_c/zstd-1.5.2/lib/compress/zstdmt_compress.h
183
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress.c
184
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress_amd64.S
185
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_ddict.c
186
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_ddict.h
187
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress.c
188
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress_block.c
189
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress_block.h
190
- - ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress_internal.h
191
- - ext/zstdlib_c/zstd-1.5.2/lib/zdict.h
192
- - ext/zstdlib_c/zstd-1.5.2/lib/zstd.h
193
- - ext/zstdlib_c/zstd-1.5.2/lib/zstd_errors.h
194
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzclose.c
195
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzcompatibility.h
196
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzguts.h
197
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzlib.c
198
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzread.c
199
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/gzwrite.c
200
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/zstd_zlibwrapper.c
201
- - ext/zstdlib_c/zstd-1.5.2/zlibWrapper/zstd_zlibwrapper.h
135
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/allocations.h
136
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/bits.h
137
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/bitstream.h
138
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/compiler.h
139
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/cpu.h
140
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/debug.c
141
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/debug.h
142
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/entropy_common.c
143
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/error_private.c
144
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/error_private.h
145
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/fse.h
146
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/fse_decompress.c
147
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/huf.h
148
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/mem.h
149
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/pool.c
150
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/pool.h
151
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/portability_macros.h
152
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/threading.c
153
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/threading.h
154
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/xxhash.c
155
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/xxhash.h
156
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/zstd_common.c
157
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/zstd_deps.h
158
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/zstd_internal.h
159
+ - ext/zstdlib_c/zstd-1.5.5/lib/common/zstd_trace.h
160
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/clevels.h
161
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/fse_compress.c
162
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/hist.c
163
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/hist.h
164
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/huf_compress.c
165
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress.c
166
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_internal.h
167
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_literals.c
168
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_literals.h
169
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_sequences.c
170
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_sequences.h
171
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_superblock.c
172
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_compress_superblock.h
173
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_cwksp.h
174
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_double_fast.c
175
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_double_fast.h
176
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_fast.c
177
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_fast.h
178
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_lazy.c
179
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_lazy.h
180
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_ldm.c
181
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_ldm.h
182
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_ldm_geartab.h
183
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_opt.c
184
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstd_opt.h
185
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstdmt_compress.c
186
+ - ext/zstdlib_c/zstd-1.5.5/lib/compress/zstdmt_compress.h
187
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/huf_decompress.c
188
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/huf_decompress_amd64.S
189
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_ddict.c
190
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_ddict.h
191
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_decompress.c
192
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_decompress_block.c
193
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_decompress_block.h
194
+ - ext/zstdlib_c/zstd-1.5.5/lib/decompress/zstd_decompress_internal.h
195
+ - ext/zstdlib_c/zstd-1.5.5/lib/zdict.h
196
+ - ext/zstdlib_c/zstd-1.5.5/lib/zstd.h
197
+ - ext/zstdlib_c/zstd-1.5.5/lib/zstd_errors.h
198
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzclose.c
199
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzcompatibility.h
200
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzguts.h
201
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzlib.c
202
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzread.c
203
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/gzwrite.c
204
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/zstd_zlibwrapper.c
205
+ - ext/zstdlib_c/zstd-1.5.5/zlibWrapper/zstd_zlibwrapper.h
202
206
  - ext/zstdlib_c/zstd.mk
203
207
  - lib/2.4/zstdlib_c.bundle
204
208
  - lib/2.5/zstdlib_c.bundle
@@ -206,13 +210,15 @@ files:
206
210
  - lib/2.7/zstdlib_c.bundle
207
211
  - lib/3.0/zstdlib_c.bundle
208
212
  - lib/3.1/zstdlib_c.bundle
213
+ - lib/3.2/zstdlib_c.bundle
214
+ - lib/3.3/zstdlib_c.bundle
209
215
  - lib/zstdlib.rb
210
216
  - test/zstdlib_test.rb
211
217
  homepage: https://github.com/okhlybov/zstdlib
212
218
  licenses:
213
219
  - BSD-3-Clause
214
220
  metadata: {}
215
- post_install_message:
221
+ post_install_message:
216
222
  rdoc_options: []
217
223
  require_paths:
218
224
  - lib
@@ -223,15 +229,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
229
  version: '2.4'
224
230
  - - "<"
225
231
  - !ruby/object:Gem::Version
226
- version: 3.2.dev
232
+ version: 3.4.dev
227
233
  required_rubygems_version: !ruby/object:Gem::Requirement
228
234
  requirements:
229
235
  - - ">="
230
236
  - !ruby/object:Gem::Version
231
237
  version: '0'
232
238
  requirements: []
233
- rubygems_version: 3.3.4
234
- signing_key:
239
+ rubygems_version: 3.3.26
240
+ signing_key:
235
241
  specification_version: 4
236
- summary: Ruby interface for the Zstdandard data compression library
242
+ summary: Ruby interface for the Zstandard data compression library
237
243
  test_files: []
@@ -1,122 +0,0 @@
1
- /**
2
- * Copyright (c) 2016 Tino Reichardt
3
- * All rights reserved.
4
- *
5
- * You can contact the author at:
6
- * - zstdmt source repository: https://github.com/mcmilk/zstdmt
7
- *
8
- * This source code is licensed under both the BSD-style license (found in the
9
- * LICENSE file in the root directory of this source tree) and the GPLv2 (found
10
- * in the COPYING file in the root directory of this source tree).
11
- * You may select, at your option, one of the above-listed licenses.
12
- */
13
-
14
- /**
15
- * This file will hold wrapper for systems, which do not support pthreads
16
- */
17
-
18
- #include "threading.h"
19
-
20
- /* create fake symbol to avoid empty translation unit warning */
21
- int g_ZSTD_threading_useless_symbol;
22
-
23
- #if defined(ZSTD_MULTITHREAD) && defined(_WIN32)
24
-
25
- /**
26
- * Windows minimalist Pthread Wrapper, based on :
27
- * http://www.cse.wustl.edu/~schmidt/win32-cv-1.html
28
- */
29
-
30
-
31
- /* === Dependencies === */
32
- #include <process.h>
33
- #include <errno.h>
34
-
35
-
36
- /* === Implementation === */
37
-
38
- static unsigned __stdcall worker(void *arg)
39
- {
40
- ZSTD_pthread_t* const thread = (ZSTD_pthread_t*) arg;
41
- thread->arg = thread->start_routine(thread->arg);
42
- return 0;
43
- }
44
-
45
- int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused,
46
- void* (*start_routine) (void*), void* arg)
47
- {
48
- (void)unused;
49
- thread->arg = arg;
50
- thread->start_routine = start_routine;
51
- thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL);
52
-
53
- if (!thread->handle)
54
- return errno;
55
- else
56
- return 0;
57
- }
58
-
59
- int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr)
60
- {
61
- DWORD result;
62
-
63
- if (!thread.handle) return 0;
64
-
65
- result = WaitForSingleObject(thread.handle, INFINITE);
66
- switch (result) {
67
- case WAIT_OBJECT_0:
68
- if (value_ptr) *value_ptr = thread.arg;
69
- return 0;
70
- case WAIT_ABANDONED:
71
- return EINVAL;
72
- default:
73
- return GetLastError();
74
- }
75
- }
76
-
77
- #endif /* ZSTD_MULTITHREAD */
78
-
79
- #if defined(ZSTD_MULTITHREAD) && DEBUGLEVEL >= 1 && !defined(_WIN32)
80
-
81
- #define ZSTD_DEPS_NEED_MALLOC
82
- #include "zstd_deps.h"
83
-
84
- int ZSTD_pthread_mutex_init(ZSTD_pthread_mutex_t* mutex, pthread_mutexattr_t const* attr)
85
- {
86
- *mutex = (pthread_mutex_t*)ZSTD_malloc(sizeof(pthread_mutex_t));
87
- if (!*mutex)
88
- return 1;
89
- return pthread_mutex_init(*mutex, attr);
90
- }
91
-
92
- int ZSTD_pthread_mutex_destroy(ZSTD_pthread_mutex_t* mutex)
93
- {
94
- if (!*mutex)
95
- return 0;
96
- {
97
- int const ret = pthread_mutex_destroy(*mutex);
98
- ZSTD_free(*mutex);
99
- return ret;
100
- }
101
- }
102
-
103
- int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr)
104
- {
105
- *cond = (pthread_cond_t*)ZSTD_malloc(sizeof(pthread_cond_t));
106
- if (!*cond)
107
- return 1;
108
- return pthread_cond_init(*cond, attr);
109
- }
110
-
111
- int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond)
112
- {
113
- if (!*cond)
114
- return 0;
115
- {
116
- int const ret = pthread_cond_destroy(*cond);
117
- ZSTD_free(*cond);
118
- return ret;
119
- }
120
- }
121
-
122
- #endif
@@ -1,159 +0,0 @@
1
- /*
2
- * Copyright (c) Yann Collet, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under both the BSD-style license (found in the
6
- * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7
- * in the COPYING file in the root directory of this source tree).
8
- * You may select, at your option, one of the above-listed licenses.
9
- */
10
-
11
- /*-*************************************
12
- * Dependencies
13
- ***************************************/
14
- #include "zstd_compress_literals.h"
15
-
16
- size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize)
17
- {
18
- BYTE* const ostart = (BYTE*)dst;
19
- U32 const flSize = 1 + (srcSize>31) + (srcSize>4095);
20
-
21
- RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, "");
22
-
23
- switch(flSize)
24
- {
25
- case 1: /* 2 - 1 - 5 */
26
- ostart[0] = (BYTE)((U32)set_basic + (srcSize<<3));
27
- break;
28
- case 2: /* 2 - 2 - 12 */
29
- MEM_writeLE16(ostart, (U16)((U32)set_basic + (1<<2) + (srcSize<<4)));
30
- break;
31
- case 3: /* 2 - 2 - 20 */
32
- MEM_writeLE32(ostart, (U32)((U32)set_basic + (3<<2) + (srcSize<<4)));
33
- break;
34
- default: /* not necessary : flSize is {1,2,3} */
35
- assert(0);
36
- }
37
-
38
- ZSTD_memcpy(ostart + flSize, src, srcSize);
39
- DEBUGLOG(5, "Raw literals: %u -> %u", (U32)srcSize, (U32)(srcSize + flSize));
40
- return srcSize + flSize;
41
- }
42
-
43
- size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize)
44
- {
45
- BYTE* const ostart = (BYTE*)dst;
46
- U32 const flSize = 1 + (srcSize>31) + (srcSize>4095);
47
-
48
- (void)dstCapacity; /* dstCapacity already guaranteed to be >=4, hence large enough */
49
-
50
- switch(flSize)
51
- {
52
- case 1: /* 2 - 1 - 5 */
53
- ostart[0] = (BYTE)((U32)set_rle + (srcSize<<3));
54
- break;
55
- case 2: /* 2 - 2 - 12 */
56
- MEM_writeLE16(ostart, (U16)((U32)set_rle + (1<<2) + (srcSize<<4)));
57
- break;
58
- case 3: /* 2 - 2 - 20 */
59
- MEM_writeLE32(ostart, (U32)((U32)set_rle + (3<<2) + (srcSize<<4)));
60
- break;
61
- default: /* not necessary : flSize is {1,2,3} */
62
- assert(0);
63
- }
64
-
65
- ostart[flSize] = *(const BYTE*)src;
66
- DEBUGLOG(5, "RLE literals: %u -> %u", (U32)srcSize, (U32)flSize + 1);
67
- return flSize+1;
68
- }
69
-
70
- size_t ZSTD_compressLiterals (ZSTD_hufCTables_t const* prevHuf,
71
- ZSTD_hufCTables_t* nextHuf,
72
- ZSTD_strategy strategy, int disableLiteralCompression,
73
- void* dst, size_t dstCapacity,
74
- const void* src, size_t srcSize,
75
- void* entropyWorkspace, size_t entropyWorkspaceSize,
76
- const int bmi2,
77
- unsigned suspectUncompressible)
78
- {
79
- size_t const minGain = ZSTD_minGain(srcSize, strategy);
80
- size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB);
81
- BYTE* const ostart = (BYTE*)dst;
82
- U32 singleStream = srcSize < 256;
83
- symbolEncodingType_e hType = set_compressed;
84
- size_t cLitSize;
85
-
86
- DEBUGLOG(5,"ZSTD_compressLiterals (disableLiteralCompression=%i srcSize=%u)",
87
- disableLiteralCompression, (U32)srcSize);
88
-
89
- /* Prepare nextEntropy assuming reusing the existing table */
90
- ZSTD_memcpy(nextHuf, prevHuf, sizeof(*prevHuf));
91
-
92
- if (disableLiteralCompression)
93
- return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
94
-
95
- /* small ? don't even attempt compression (speed opt) */
96
- # define COMPRESS_LITERALS_SIZE_MIN 63
97
- { size_t const minLitSize = (prevHuf->repeatMode == HUF_repeat_valid) ? 6 : COMPRESS_LITERALS_SIZE_MIN;
98
- if (srcSize <= minLitSize) return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
99
- }
100
-
101
- RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression");
102
- { HUF_repeat repeat = prevHuf->repeatMode;
103
- int const preferRepeat = strategy < ZSTD_lazy ? srcSize <= 1024 : 0;
104
- if (repeat == HUF_repeat_valid && lhSize == 3) singleStream = 1;
105
- cLitSize = singleStream ?
106
- HUF_compress1X_repeat(
107
- ostart+lhSize, dstCapacity-lhSize, src, srcSize,
108
- HUF_SYMBOLVALUE_MAX, HUF_TABLELOG_DEFAULT, entropyWorkspace, entropyWorkspaceSize,
109
- (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2, suspectUncompressible) :
110
- HUF_compress4X_repeat(
111
- ostart+lhSize, dstCapacity-lhSize, src, srcSize,
112
- HUF_SYMBOLVALUE_MAX, HUF_TABLELOG_DEFAULT, entropyWorkspace, entropyWorkspaceSize,
113
- (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2, suspectUncompressible);
114
- if (repeat != HUF_repeat_none) {
115
- /* reused the existing table */
116
- DEBUGLOG(5, "Reusing previous huffman table");
117
- hType = set_repeat;
118
- }
119
- }
120
-
121
- if ((cLitSize==0) || (cLitSize >= srcSize - minGain) || ERR_isError(cLitSize)) {
122
- ZSTD_memcpy(nextHuf, prevHuf, sizeof(*prevHuf));
123
- return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
124
- }
125
- if (cLitSize==1) {
126
- ZSTD_memcpy(nextHuf, prevHuf, sizeof(*prevHuf));
127
- return ZSTD_compressRleLiteralsBlock(dst, dstCapacity, src, srcSize);
128
- }
129
-
130
- if (hType == set_compressed) {
131
- /* using a newly constructed table */
132
- nextHuf->repeatMode = HUF_repeat_check;
133
- }
134
-
135
- /* Build header */
136
- switch(lhSize)
137
- {
138
- case 3: /* 2 - 2 - 10 - 10 */
139
- { U32 const lhc = hType + ((!singleStream) << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<14);
140
- MEM_writeLE24(ostart, lhc);
141
- break;
142
- }
143
- case 4: /* 2 - 2 - 14 - 14 */
144
- { U32 const lhc = hType + (2 << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<18);
145
- MEM_writeLE32(ostart, lhc);
146
- break;
147
- }
148
- case 5: /* 2 - 2 - 18 - 18 */
149
- { U32 const lhc = hType + (3 << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<22);
150
- MEM_writeLE32(ostart, lhc);
151
- ostart[4] = (BYTE)(cLitSize >> 10);
152
- break;
153
- }
154
- default: /* not possible : lhSize is {3,4,5} */
155
- assert(0);
156
- }
157
- DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)srcSize, (U32)(lhSize+cLitSize));
158
- return lhSize+cLitSize;
159
- }
File without changes
File without changes