zstdlib 0.6.0-x86-mingw32 → 0.9.0-x86-mingw32

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 (141) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/README.md +7 -1
  4. data/Rakefile +38 -8
  5. data/ext/{zstdlib → zstdlib_c}/extconf.rb +10 -5
  6. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.2/zstdlib.c +2 -2
  7. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.3/zstdlib.c +2 -2
  8. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.4/zstdlib.c +2 -2
  9. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.5/zstdlib.c +2 -2
  10. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.6/zstdlib.c +2 -2
  11. data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.7/zstdlib.c +2 -2
  12. data/ext/zstdlib_c/ruby/zlib-3.0/zstdlib.c +4994 -0
  13. data/ext/zstdlib_c/ruby/zlib-3.1/zstdlib.c +5076 -0
  14. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/adler32.c +0 -0
  15. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/compress.c +0 -0
  16. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.c +0 -0
  17. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.h +0 -0
  18. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.c +0 -0
  19. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.h +0 -0
  20. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzclose.c +0 -0
  21. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzguts.h +0 -0
  22. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzlib.c +0 -0
  23. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzread.c +0 -0
  24. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzwrite.c +0 -0
  25. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/infback.c +0 -0
  26. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.c +0 -0
  27. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.h +0 -0
  28. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffixed.h +0 -0
  29. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.c +0 -0
  30. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.h +0 -0
  31. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.c +0 -0
  32. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.h +0 -0
  33. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.c +0 -0
  34. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.h +0 -0
  35. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/uncompr.c +0 -0
  36. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zconf.h +0 -0
  37. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zlib.h +0 -0
  38. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.c +0 -0
  39. data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.h +0 -0
  40. data/ext/{zstdlib → zstdlib_c}/zlib.mk +0 -0
  41. data/ext/{zstdlib → zstdlib_c}/zlibwrapper/zlibwrapper.c +1 -5
  42. data/ext/{zstdlib → zstdlib_c}/zlibwrapper.mk +0 -0
  43. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/bitstream.h +75 -57
  44. data/ext/zstdlib_c/zstd-1.5.2/lib/common/compiler.h +335 -0
  45. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/cpu.h +1 -3
  46. data/ext/zstdlib_c/zstd-1.5.2/lib/common/debug.c +24 -0
  47. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/debug.h +22 -49
  48. data/ext/zstdlib_c/zstd-1.5.2/lib/common/entropy_common.c +368 -0
  49. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/error_private.c +3 -1
  50. data/ext/zstdlib_c/zstd-1.5.2/lib/common/error_private.h +159 -0
  51. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/fse.h +51 -42
  52. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/fse_decompress.c +149 -57
  53. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/huf.h +60 -54
  54. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/mem.h +87 -98
  55. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/pool.c +34 -23
  56. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/pool.h +5 -5
  57. data/ext/zstdlib_c/zstd-1.5.2/lib/common/portability_macros.h +137 -0
  58. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/threading.c +10 -8
  59. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/threading.h +4 -3
  60. data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.c +24 -0
  61. data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.h +5686 -0
  62. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_common.c +10 -10
  63. data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_deps.h +111 -0
  64. data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_internal.h +493 -0
  65. data/ext/zstdlib_c/zstd-1.5.2/lib/common/zstd_trace.h +163 -0
  66. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/clevels.h +134 -0
  67. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/fse_compress.c +105 -85
  68. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.c +41 -63
  69. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.h +13 -33
  70. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/huf_compress.c +1370 -0
  71. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress.c +6327 -0
  72. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_internal.h +537 -82
  73. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.c +21 -16
  74. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.h +4 -2
  75. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.c +61 -34
  76. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.h +10 -3
  77. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.c +573 -0
  78. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_compress_superblock.h +32 -0
  79. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_cwksp.h +236 -95
  80. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.c +321 -143
  81. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.h +2 -2
  82. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.c +328 -137
  83. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.h +2 -2
  84. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.c +2104 -0
  85. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_lazy.h +125 -0
  86. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.c +336 -209
  87. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.h +15 -3
  88. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstd_ldm_geartab.h +106 -0
  89. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.c +439 -239
  90. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.h +1 -1
  91. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/compress/zstdmt_compress.c +205 -462
  92. data/ext/zstdlib_c/zstd-1.5.2/lib/compress/zstdmt_compress.h +113 -0
  93. data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress.c +1889 -0
  94. data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress_amd64.S +585 -0
  95. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.c +20 -16
  96. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.h +3 -3
  97. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress.c +691 -230
  98. data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/zstd_decompress_block.c +2072 -0
  99. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_block.h +16 -7
  100. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_internal.h +71 -10
  101. data/ext/zstdlib_c/zstd-1.5.2/lib/zdict.h +452 -0
  102. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/lib/zstd.h +760 -234
  103. data/ext/{zstdlib/zstd-1.4.4/lib/common → zstdlib_c/zstd-1.5.2/lib}/zstd_errors.h +3 -1
  104. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzclose.c +0 -0
  105. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzcompatibility.h +1 -1
  106. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzguts.h +0 -0
  107. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzlib.c +0 -0
  108. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzread.c +0 -0
  109. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzwrite.c +0 -0
  110. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.c +133 -44
  111. data/ext/{zstdlib/zstd-1.4.4 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.h +1 -1
  112. data/ext/zstdlib_c/zstd.mk +15 -0
  113. data/lib/2.4/zstdlib_c.so +0 -0
  114. data/lib/2.5/zstdlib_c.so +0 -0
  115. data/lib/2.6/zstdlib_c.so +0 -0
  116. data/lib/2.7/zstdlib_c.so +0 -0
  117. data/lib/3.0/zstdlib_c.so +0 -0
  118. data/lib/3.1/zstdlib_c.so +0 -0
  119. data/lib/zstdlib.rb +2 -2
  120. metadata +125 -114
  121. data/ext/zstdlib/zstd-1.4.4/lib/common/compiler.h +0 -159
  122. data/ext/zstdlib/zstd-1.4.4/lib/common/debug.c +0 -44
  123. data/ext/zstdlib/zstd-1.4.4/lib/common/entropy_common.c +0 -236
  124. data/ext/zstdlib/zstd-1.4.4/lib/common/error_private.h +0 -76
  125. data/ext/zstdlib/zstd-1.4.4/lib/common/xxhash.c +0 -882
  126. data/ext/zstdlib/zstd-1.4.4/lib/common/xxhash.h +0 -305
  127. data/ext/zstdlib/zstd-1.4.4/lib/common/zstd_internal.h +0 -350
  128. data/ext/zstdlib/zstd-1.4.4/lib/compress/huf_compress.c +0 -798
  129. data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress.c +0 -4103
  130. data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.c +0 -1115
  131. data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.h +0 -67
  132. data/ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.h +0 -192
  133. data/ext/zstdlib/zstd-1.4.4/lib/decompress/huf_decompress.c +0 -1234
  134. data/ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.c +0 -1323
  135. data/ext/zstdlib/zstd.mk +0 -14
  136. data/lib/2.2/zstdlib.so +0 -0
  137. data/lib/2.3/zstdlib.so +0 -0
  138. data/lib/2.4/zstdlib.so +0 -0
  139. data/lib/2.5/zstdlib.so +0 -0
  140. data/lib/2.6/zstdlib.so +0 -0
  141. 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.6.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: 2020-01-09 00:00:00.000000000 Z
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.0.0
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.0.0
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/zstdlib/extconf.rb
96
- - ext/zstdlib/ruby/zlib-2.2/zstdlib.c
97
- - ext/zstdlib/ruby/zlib-2.3/zstdlib.c
98
- - ext/zstdlib/ruby/zlib-2.4/zstdlib.c
99
- - ext/zstdlib/ruby/zlib-2.5/zstdlib.c
100
- - ext/zstdlib/ruby/zlib-2.6/zstdlib.c
101
- - ext/zstdlib/ruby/zlib-2.7/zstdlib.c
102
- - ext/zstdlib/zlib-1.2.11/adler32.c
103
- - ext/zstdlib/zlib-1.2.11/compress.c
104
- - ext/zstdlib/zlib-1.2.11/crc32.c
105
- - ext/zstdlib/zlib-1.2.11/crc32.h
106
- - ext/zstdlib/zlib-1.2.11/deflate.c
107
- - ext/zstdlib/zlib-1.2.11/deflate.h
108
- - ext/zstdlib/zlib-1.2.11/gzclose.c
109
- - ext/zstdlib/zlib-1.2.11/gzguts.h
110
- - ext/zstdlib/zlib-1.2.11/gzlib.c
111
- - ext/zstdlib/zlib-1.2.11/gzread.c
112
- - ext/zstdlib/zlib-1.2.11/gzwrite.c
113
- - ext/zstdlib/zlib-1.2.11/infback.c
114
- - ext/zstdlib/zlib-1.2.11/inffast.c
115
- - ext/zstdlib/zlib-1.2.11/inffast.h
116
- - ext/zstdlib/zlib-1.2.11/inffixed.h
117
- - ext/zstdlib/zlib-1.2.11/inflate.c
118
- - ext/zstdlib/zlib-1.2.11/inflate.h
119
- - ext/zstdlib/zlib-1.2.11/inftrees.c
120
- - ext/zstdlib/zlib-1.2.11/inftrees.h
121
- - ext/zstdlib/zlib-1.2.11/trees.c
122
- - ext/zstdlib/zlib-1.2.11/trees.h
123
- - ext/zstdlib/zlib-1.2.11/uncompr.c
124
- - ext/zstdlib/zlib-1.2.11/zconf.h
125
- - ext/zstdlib/zlib-1.2.11/zlib.h
126
- - ext/zstdlib/zlib-1.2.11/zutil.c
127
- - ext/zstdlib/zlib-1.2.11/zutil.h
128
- - ext/zstdlib/zlib.mk
129
- - ext/zstdlib/zlibwrapper.mk
130
- - ext/zstdlib/zlibwrapper/zlibwrapper.c
131
- - ext/zstdlib/zstd-1.4.4/lib/common/bitstream.h
132
- - ext/zstdlib/zstd-1.4.4/lib/common/compiler.h
133
- - ext/zstdlib/zstd-1.4.4/lib/common/cpu.h
134
- - ext/zstdlib/zstd-1.4.4/lib/common/debug.c
135
- - ext/zstdlib/zstd-1.4.4/lib/common/debug.h
136
- - ext/zstdlib/zstd-1.4.4/lib/common/entropy_common.c
137
- - ext/zstdlib/zstd-1.4.4/lib/common/error_private.c
138
- - ext/zstdlib/zstd-1.4.4/lib/common/error_private.h
139
- - ext/zstdlib/zstd-1.4.4/lib/common/fse.h
140
- - ext/zstdlib/zstd-1.4.4/lib/common/fse_decompress.c
141
- - ext/zstdlib/zstd-1.4.4/lib/common/huf.h
142
- - ext/zstdlib/zstd-1.4.4/lib/common/mem.h
143
- - ext/zstdlib/zstd-1.4.4/lib/common/pool.c
144
- - ext/zstdlib/zstd-1.4.4/lib/common/pool.h
145
- - ext/zstdlib/zstd-1.4.4/lib/common/threading.c
146
- - ext/zstdlib/zstd-1.4.4/lib/common/threading.h
147
- - ext/zstdlib/zstd-1.4.4/lib/common/xxhash.c
148
- - ext/zstdlib/zstd-1.4.4/lib/common/xxhash.h
149
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_common.c
150
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_errors.h
151
- - ext/zstdlib/zstd-1.4.4/lib/common/zstd_internal.h
152
- - ext/zstdlib/zstd-1.4.4/lib/compress/fse_compress.c
153
- - ext/zstdlib/zstd-1.4.4/lib/compress/hist.c
154
- - ext/zstdlib/zstd-1.4.4/lib/compress/hist.h
155
- - ext/zstdlib/zstd-1.4.4/lib/compress/huf_compress.c
156
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress.c
157
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_internal.h
158
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.c
159
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.h
160
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.c
161
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.h
162
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_cwksp.h
163
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.c
164
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.h
165
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.c
166
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.h
167
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.c
168
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.h
169
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.c
170
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.h
171
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.c
172
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.h
173
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.c
174
- - ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.h
175
- - ext/zstdlib/zstd-1.4.4/lib/decompress/huf_decompress.c
176
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.c
177
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.h
178
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress.c
179
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.c
180
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.h
181
- - ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_internal.h
182
- - ext/zstdlib/zstd-1.4.4/lib/zstd.h
183
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzclose.c
184
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzcompatibility.h
185
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzguts.h
186
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzlib.c
187
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzread.c
188
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/gzwrite.c
189
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.c
190
- - ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.h
191
- - ext/zstdlib/zstd.mk
192
- - lib/2.2/zstdlib.so
193
- - lib/2.3/zstdlib.so
194
- - lib/2.4/zstdlib.so
195
- - lib/2.5/zstdlib.so
196
- - lib/2.6/zstdlib.so
197
- - lib/2.7/zstdlib.so
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.2'
223
+ version: '2.4'
213
224
  - - "<"
214
225
  - !ruby/object:Gem::Version
215
- version: 2.8.dev
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.1.2
223
- signing_key:
233
+ rubygems_version: 3.3.4
234
+ signing_key:
224
235
  specification_version: 4
225
- summary: Ruby interface for the Zstd data compression library
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;