zstdlib 0.6.0-x86-mingw32 → 0.9.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +20 -0
- data/README.md +7 -1
- data/Rakefile +38 -8
- data/ext/{zstdlib → zstdlib_c}/extconf.rb +10 -5
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.2/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.3/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.4/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.5/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.6/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.7/zstdlib.c +2 -2
- data/ext/zstdlib_c/ruby/zlib-3.0/zstdlib.c +4994 -0
- data/ext/zstdlib_c/ruby/zlib-3.1/zstdlib.c +5076 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/adler32.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/compress.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzclose.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzguts.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzlib.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzread.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzwrite.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/infback.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffixed.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/uncompr.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zconf.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zlib.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib.mk +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlibwrapper/zlibwrapper.c +1 -5
- data/ext/{zstdlib → zstdlib_c}/zlibwrapper.mk +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/bitstream.h +75 -57
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/compiler.h +335 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/cpu.h +1 -3
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/debug.c +24 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/debug.h +22 -49
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/entropy_common.c +368 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/error_private.c +3 -1
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/error_private.h +159 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/fse.h +51 -42
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/fse_decompress.c +149 -57
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/huf.h +60 -54
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/mem.h +87 -98
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/pool.c +34 -23
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/pool.h +5 -5
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/portability_macros.h +137 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/threading.c +10 -8
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/threading.h +4 -3
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.c +24 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.h +5686 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_common.c +10 -10
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_deps.h +111 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_internal.h +493 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_trace.h +163 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/clevels.h +134 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/fse_compress.c +105 -85
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.c +41 -63
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.h +13 -33
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/huf_compress.c +1370 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress.c +6327 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_internal.h +537 -82
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.c +21 -16
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.h +4 -2
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.c +61 -34
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.h +10 -3
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.c +573 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.h +32 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_cwksp.h +236 -95
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.c +321 -143
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.h +2 -2
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.c +328 -137
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.h +2 -2
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.c +2104 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.h +125 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.c +336 -209
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.h +15 -3
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_ldm_geartab.h +106 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.c +439 -239
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.h +1 -1
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstdmt_compress.c +205 -462
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstdmt_compress.h +113 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress.c +1889 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress_amd64.S +585 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.c +20 -16
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.h +3 -3
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress.c +691 -230
- data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress_block.c +2072 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_block.h +16 -7
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_internal.h +71 -10
- data/ext/zstdlib_c/zstd-1.5.2/lib/zdict.h +452 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/zstd.h +760 -234
- data/ext/{zstdlib/zstd-1.4.4/lib/common → zstdlib_c/zstd-1.5.2/lib}/zstd_errors.h +3 -1
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzclose.c +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzcompatibility.h +1 -1
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzguts.h +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzlib.c +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzread.c +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzwrite.c +0 -0
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.c +133 -44
- data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.h +1 -1
- data/ext/zstdlib_c/zstd.mk +15 -0
- data/lib/2.4/zstdlib_c.so +0 -0
- data/lib/2.5/zstdlib_c.so +0 -0
- data/lib/2.6/zstdlib_c.so +0 -0
- data/lib/2.7/zstdlib_c.so +0 -0
- data/lib/3.0/zstdlib_c.so +0 -0
- data/lib/3.1/zstdlib_c.so +0 -0
- data/lib/zstdlib.rb +2 -2
- metadata +125 -114
- data/ext/zstdlib/zstd-1.4.4/lib/common/compiler.h +0 -159
- data/ext/zstdlib/zstd-1.4.4/lib/common/debug.c +0 -44
- data/ext/zstdlib/zstd-1.4.4/lib/common/entropy_common.c +0 -236
- data/ext/zstdlib/zstd-1.4.4/lib/common/error_private.h +0 -76
- data/ext/zstdlib/zstd-1.4.4/lib/common/xxhash.c +0 -882
- data/ext/zstdlib/zstd-1.4.4/lib/common/xxhash.h +0 -305
- data/ext/zstdlib/zstd-1.4.4/lib/common/zstd_internal.h +0 -350
- data/ext/zstdlib/zstd-1.4.4/lib/compress/huf_compress.c +0 -798
- data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress.c +0 -4103
- data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.c +0 -1115
- data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.h +0 -67
- data/ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.h +0 -192
- data/ext/zstdlib/zstd-1.4.4/lib/decompress/huf_decompress.c +0 -1234
- data/ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.c +0 -1323
- data/ext/zstdlib/zstd.mk +0 -14
- data/lib/2.2/zstdlib.so +0 -0
- data/lib/2.3/zstdlib.so +0 -0
- data/lib/2.4/zstdlib.so +0 -0
- data/lib/2.5/zstdlib.so +0 -0
- data/lib/2.6/zstdlib.so +0 -0
- data/lib/2.7/zstdlib.so +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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Oleg A. Khlybov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-17 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.
|
61
|
+
version: 1.2.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.
|
68
|
+
version: 1.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: test-unit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,116 +92,127 @@ files:
|
|
92
92
|
- Gemfile
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
|
-
- ext/
|
96
|
-
- ext/
|
97
|
-
- ext/
|
98
|
-
- ext/
|
99
|
-
- ext/
|
100
|
-
- ext/
|
101
|
-
- ext/
|
102
|
-
- ext/
|
103
|
-
- ext/
|
104
|
-
- ext/
|
105
|
-
- ext/
|
106
|
-
- ext/
|
107
|
-
- ext/
|
108
|
-
- ext/
|
109
|
-
- ext/
|
110
|
-
- ext/
|
111
|
-
- ext/
|
112
|
-
- ext/
|
113
|
-
- ext/
|
114
|
-
- ext/
|
115
|
-
- ext/
|
116
|
-
- ext/
|
117
|
-
- ext/
|
118
|
-
- ext/
|
119
|
-
- ext/
|
120
|
-
- ext/
|
121
|
-
- ext/
|
122
|
-
- ext/
|
123
|
-
- ext/
|
124
|
-
- ext/
|
125
|
-
- ext/
|
126
|
-
- ext/
|
127
|
-
- ext/
|
128
|
-
- ext/
|
129
|
-
- ext/
|
130
|
-
- ext/
|
131
|
-
- ext/
|
132
|
-
- ext/
|
133
|
-
- ext/
|
134
|
-
- ext/
|
135
|
-
- ext/
|
136
|
-
- ext/
|
137
|
-
- ext/
|
138
|
-
- ext/
|
139
|
-
- ext/
|
140
|
-
- ext/
|
141
|
-
- ext/
|
142
|
-
- ext/
|
143
|
-
- ext/
|
144
|
-
- ext/
|
145
|
-
- ext/
|
146
|
-
- ext/
|
147
|
-
- ext/
|
148
|
-
- ext/
|
149
|
-
- ext/
|
150
|
-
- ext/
|
151
|
-
- ext/
|
152
|
-
- ext/
|
153
|
-
- ext/
|
154
|
-
- ext/
|
155
|
-
- ext/
|
156
|
-
- ext/
|
157
|
-
- ext/
|
158
|
-
- ext/
|
159
|
-
- ext/
|
160
|
-
- ext/
|
161
|
-
- ext/
|
162
|
-
- ext/
|
163
|
-
- ext/
|
164
|
-
- ext/
|
165
|
-
- ext/
|
166
|
-
- ext/
|
167
|
-
- ext/
|
168
|
-
- ext/
|
169
|
-
- ext/
|
170
|
-
- ext/
|
171
|
-
- ext/
|
172
|
-
- ext/
|
173
|
-
- ext/
|
174
|
-
- ext/
|
175
|
-
- ext/
|
176
|
-
- ext/
|
177
|
-
- ext/
|
178
|
-
- ext/
|
179
|
-
- ext/
|
180
|
-
- ext/
|
181
|
-
- ext/
|
182
|
-
- ext/
|
183
|
-
- ext/
|
184
|
-
- ext/
|
185
|
-
- ext/
|
186
|
-
- ext/
|
187
|
-
- ext/
|
188
|
-
- ext/
|
189
|
-
- ext/
|
190
|
-
- ext/
|
191
|
-
- ext/
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
95
|
+
- ext/zstdlib_c/extconf.rb
|
96
|
+
- ext/zstdlib_c/ruby/zlib-2.2/zstdlib.c
|
97
|
+
- ext/zstdlib_c/ruby/zlib-2.3/zstdlib.c
|
98
|
+
- ext/zstdlib_c/ruby/zlib-2.4/zstdlib.c
|
99
|
+
- ext/zstdlib_c/ruby/zlib-2.5/zstdlib.c
|
100
|
+
- ext/zstdlib_c/ruby/zlib-2.6/zstdlib.c
|
101
|
+
- ext/zstdlib_c/ruby/zlib-2.7/zstdlib.c
|
102
|
+
- ext/zstdlib_c/ruby/zlib-3.0/zstdlib.c
|
103
|
+
- ext/zstdlib_c/ruby/zlib-3.1/zstdlib.c
|
104
|
+
- ext/zstdlib_c/zlib-1.2.11/adler32.c
|
105
|
+
- ext/zstdlib_c/zlib-1.2.11/compress.c
|
106
|
+
- ext/zstdlib_c/zlib-1.2.11/crc32.c
|
107
|
+
- ext/zstdlib_c/zlib-1.2.11/crc32.h
|
108
|
+
- ext/zstdlib_c/zlib-1.2.11/deflate.c
|
109
|
+
- ext/zstdlib_c/zlib-1.2.11/deflate.h
|
110
|
+
- ext/zstdlib_c/zlib-1.2.11/gzclose.c
|
111
|
+
- ext/zstdlib_c/zlib-1.2.11/gzguts.h
|
112
|
+
- ext/zstdlib_c/zlib-1.2.11/gzlib.c
|
113
|
+
- ext/zstdlib_c/zlib-1.2.11/gzread.c
|
114
|
+
- ext/zstdlib_c/zlib-1.2.11/gzwrite.c
|
115
|
+
- ext/zstdlib_c/zlib-1.2.11/infback.c
|
116
|
+
- ext/zstdlib_c/zlib-1.2.11/inffast.c
|
117
|
+
- ext/zstdlib_c/zlib-1.2.11/inffast.h
|
118
|
+
- ext/zstdlib_c/zlib-1.2.11/inffixed.h
|
119
|
+
- ext/zstdlib_c/zlib-1.2.11/inflate.c
|
120
|
+
- ext/zstdlib_c/zlib-1.2.11/inflate.h
|
121
|
+
- ext/zstdlib_c/zlib-1.2.11/inftrees.c
|
122
|
+
- ext/zstdlib_c/zlib-1.2.11/inftrees.h
|
123
|
+
- ext/zstdlib_c/zlib-1.2.11/trees.c
|
124
|
+
- ext/zstdlib_c/zlib-1.2.11/trees.h
|
125
|
+
- ext/zstdlib_c/zlib-1.2.11/uncompr.c
|
126
|
+
- ext/zstdlib_c/zlib-1.2.11/zconf.h
|
127
|
+
- ext/zstdlib_c/zlib-1.2.11/zlib.h
|
128
|
+
- ext/zstdlib_c/zlib-1.2.11/zutil.c
|
129
|
+
- ext/zstdlib_c/zlib-1.2.11/zutil.h
|
130
|
+
- ext/zstdlib_c/zlib.mk
|
131
|
+
- ext/zstdlib_c/zlibwrapper.mk
|
132
|
+
- 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
|
202
|
+
- ext/zstdlib_c/zstd.mk
|
203
|
+
- lib/2.4/zstdlib_c.so
|
204
|
+
- lib/2.5/zstdlib_c.so
|
205
|
+
- lib/2.6/zstdlib_c.so
|
206
|
+
- lib/2.7/zstdlib_c.so
|
207
|
+
- lib/3.0/zstdlib_c.so
|
208
|
+
- lib/3.1/zstdlib_c.so
|
198
209
|
- lib/zstdlib.rb
|
199
210
|
- test/zstdlib_test.rb
|
200
211
|
homepage: https://github.com/okhlybov/zstdlib
|
201
212
|
licenses:
|
202
213
|
- BSD-3-Clause
|
203
214
|
metadata: {}
|
204
|
-
post_install_message:
|
215
|
+
post_install_message:
|
205
216
|
rdoc_options: []
|
206
217
|
require_paths:
|
207
218
|
- lib
|
@@ -209,18 +220,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
220
|
requirements:
|
210
221
|
- - ">="
|
211
222
|
- !ruby/object:Gem::Version
|
212
|
-
version: '2.
|
223
|
+
version: '2.4'
|
213
224
|
- - "<"
|
214
225
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.
|
226
|
+
version: 3.2.dev
|
216
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
228
|
requirements:
|
218
229
|
- - ">="
|
219
230
|
- !ruby/object:Gem::Version
|
220
231
|
version: '0'
|
221
232
|
requirements: []
|
222
|
-
rubygems_version: 3.
|
223
|
-
signing_key:
|
233
|
+
rubygems_version: 3.3.4
|
234
|
+
signing_key:
|
224
235
|
specification_version: 4
|
225
|
-
summary: Ruby interface for the
|
236
|
+
summary: Ruby interface for the Zstdandard data compression library
|
226
237
|
test_files: []
|
@@ -1,159 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2016-present, 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
|
-
#ifndef ZSTD_COMPILER_H
|
12
|
-
#define ZSTD_COMPILER_H
|
13
|
-
|
14
|
-
/*-*******************************************************
|
15
|
-
* Compiler specifics
|
16
|
-
*********************************************************/
|
17
|
-
/* force inlining */
|
18
|
-
|
19
|
-
#if !defined(ZSTD_NO_INLINE)
|
20
|
-
#if defined (__GNUC__) || defined(__cplusplus) || defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 */
|
21
|
-
# define INLINE_KEYWORD inline
|
22
|
-
#else
|
23
|
-
# define INLINE_KEYWORD
|
24
|
-
#endif
|
25
|
-
|
26
|
-
#if defined(__GNUC__) || defined(__ICCARM__)
|
27
|
-
# define FORCE_INLINE_ATTR __attribute__((always_inline))
|
28
|
-
#elif defined(_MSC_VER)
|
29
|
-
# define FORCE_INLINE_ATTR __forceinline
|
30
|
-
#else
|
31
|
-
# define FORCE_INLINE_ATTR
|
32
|
-
#endif
|
33
|
-
|
34
|
-
#else
|
35
|
-
|
36
|
-
#define INLINE_KEYWORD
|
37
|
-
#define FORCE_INLINE_ATTR
|
38
|
-
|
39
|
-
#endif
|
40
|
-
|
41
|
-
/**
|
42
|
-
* FORCE_INLINE_TEMPLATE is used to define C "templates", which take constant
|
43
|
-
* parameters. They must be inlined for the compiler to eliminate the constant
|
44
|
-
* branches.
|
45
|
-
*/
|
46
|
-
#define FORCE_INLINE_TEMPLATE static INLINE_KEYWORD FORCE_INLINE_ATTR
|
47
|
-
/**
|
48
|
-
* HINT_INLINE is used to help the compiler generate better code. It is *not*
|
49
|
-
* used for "templates", so it can be tweaked based on the compilers
|
50
|
-
* performance.
|
51
|
-
*
|
52
|
-
* gcc-4.8 and gcc-4.9 have been shown to benefit from leaving off the
|
53
|
-
* always_inline attribute.
|
54
|
-
*
|
55
|
-
* clang up to 5.0.0 (trunk) benefit tremendously from the always_inline
|
56
|
-
* attribute.
|
57
|
-
*/
|
58
|
-
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 8 && __GNUC__ < 5
|
59
|
-
# define HINT_INLINE static INLINE_KEYWORD
|
60
|
-
#else
|
61
|
-
# define HINT_INLINE static INLINE_KEYWORD FORCE_INLINE_ATTR
|
62
|
-
#endif
|
63
|
-
|
64
|
-
/* UNUSED_ATTR tells the compiler it is okay if the function is unused. */
|
65
|
-
#if defined(__GNUC__)
|
66
|
-
# define UNUSED_ATTR __attribute__((unused))
|
67
|
-
#else
|
68
|
-
# define UNUSED_ATTR
|
69
|
-
#endif
|
70
|
-
|
71
|
-
/* force no inlining */
|
72
|
-
#ifdef _MSC_VER
|
73
|
-
# define FORCE_NOINLINE static __declspec(noinline)
|
74
|
-
#else
|
75
|
-
# if defined(__GNUC__) || defined(__ICCARM__)
|
76
|
-
# define FORCE_NOINLINE static __attribute__((__noinline__))
|
77
|
-
# else
|
78
|
-
# define FORCE_NOINLINE static
|
79
|
-
# endif
|
80
|
-
#endif
|
81
|
-
|
82
|
-
/* target attribute */
|
83
|
-
#ifndef __has_attribute
|
84
|
-
#define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
85
|
-
#endif
|
86
|
-
#if defined(__GNUC__) || defined(__ICCARM__)
|
87
|
-
# define TARGET_ATTRIBUTE(target) __attribute__((__target__(target)))
|
88
|
-
#else
|
89
|
-
# define TARGET_ATTRIBUTE(target)
|
90
|
-
#endif
|
91
|
-
|
92
|
-
/* Enable runtime BMI2 dispatch based on the CPU.
|
93
|
-
* Enabled for clang & gcc >=4.8 on x86 when BMI2 isn't enabled by default.
|
94
|
-
*/
|
95
|
-
#ifndef DYNAMIC_BMI2
|
96
|
-
#if ((defined(__clang__) && __has_attribute(__target__)) \
|
97
|
-
|| (defined(__GNUC__) \
|
98
|
-
&& (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)))) \
|
99
|
-
&& (defined(__x86_64__) || defined(_M_X86)) \
|
100
|
-
&& !defined(__BMI2__)
|
101
|
-
# define DYNAMIC_BMI2 1
|
102
|
-
#else
|
103
|
-
# define DYNAMIC_BMI2 0
|
104
|
-
#endif
|
105
|
-
#endif
|
106
|
-
|
107
|
-
/* prefetch
|
108
|
-
* can be disabled, by declaring NO_PREFETCH build macro */
|
109
|
-
#if defined(NO_PREFETCH)
|
110
|
-
# define PREFETCH_L1(ptr) (void)(ptr) /* disabled */
|
111
|
-
# define PREFETCH_L2(ptr) (void)(ptr) /* disabled */
|
112
|
-
#else
|
113
|
-
# if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_I86)) /* _mm_prefetch() is not defined outside of x86/x64 */
|
114
|
-
# include <mmintrin.h> /* https://msdn.microsoft.com/fr-fr/library/84szxsww(v=vs.90).aspx */
|
115
|
-
# define PREFETCH_L1(ptr) _mm_prefetch((const char*)(ptr), _MM_HINT_T0)
|
116
|
-
# define PREFETCH_L2(ptr) _mm_prefetch((const char*)(ptr), _MM_HINT_T1)
|
117
|
-
# elif defined(__GNUC__) && ( (__GNUC__ >= 4) || ( (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) ) )
|
118
|
-
# define PREFETCH_L1(ptr) __builtin_prefetch((ptr), 0 /* rw==read */, 3 /* locality */)
|
119
|
-
# define PREFETCH_L2(ptr) __builtin_prefetch((ptr), 0 /* rw==read */, 2 /* locality */)
|
120
|
-
# else
|
121
|
-
# define PREFETCH_L1(ptr) (void)(ptr) /* disabled */
|
122
|
-
# define PREFETCH_L2(ptr) (void)(ptr) /* disabled */
|
123
|
-
# endif
|
124
|
-
#endif /* NO_PREFETCH */
|
125
|
-
|
126
|
-
#define CACHELINE_SIZE 64
|
127
|
-
|
128
|
-
#define PREFETCH_AREA(p, s) { \
|
129
|
-
const char* const _ptr = (const char*)(p); \
|
130
|
-
size_t const _size = (size_t)(s); \
|
131
|
-
size_t _pos; \
|
132
|
-
for (_pos=0; _pos<_size; _pos+=CACHELINE_SIZE) { \
|
133
|
-
PREFETCH_L2(_ptr + _pos); \
|
134
|
-
} \
|
135
|
-
}
|
136
|
-
|
137
|
-
/* vectorization
|
138
|
-
* older GCC (pre gcc-4.3 picked as the cutoff) uses a different syntax */
|
139
|
-
#if !defined(__clang__) && defined(__GNUC__)
|
140
|
-
# if (__GNUC__ == 4 && __GNUC_MINOR__ > 3) || (__GNUC__ >= 5)
|
141
|
-
# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
|
142
|
-
# else
|
143
|
-
# define DONT_VECTORIZE _Pragma("GCC optimize(\"no-tree-vectorize\")")
|
144
|
-
# endif
|
145
|
-
#else
|
146
|
-
# define DONT_VECTORIZE
|
147
|
-
#endif
|
148
|
-
|
149
|
-
/* disable warnings */
|
150
|
-
#ifdef _MSC_VER /* Visual Studio */
|
151
|
-
# include <intrin.h> /* For Visual 2005 */
|
152
|
-
# pragma warning(disable : 4100) /* disable: C4100: unreferenced formal parameter */
|
153
|
-
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
|
154
|
-
# pragma warning(disable : 4204) /* disable: C4204: non-constant aggregate initializer */
|
155
|
-
# pragma warning(disable : 4214) /* disable: C4214: non-int bitfields */
|
156
|
-
# pragma warning(disable : 4324) /* disable: C4324: padded structure */
|
157
|
-
#endif
|
158
|
-
|
159
|
-
#endif /* ZSTD_COMPILER_H */
|
@@ -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;
|