Skip to content
Permalink
Browse files

Import unmodified ZStandard v1.4.3

Only the required files from lib/ are imported

Signed-off-by: Allan Jude <allanjude@freebsd.org>
  • Loading branch information...
allanjude committed Jul 12, 2019
1 parent 88ff460 commit 943788090137699e8819f91495a406a292230442
Showing with 26,639 additions and 0 deletions.
  1. +2 −0 contrib/zstd/.gitignore
  2. +21 −0 contrib/zstd/zstd-1.4.3/.gitattributes
  3. +65 −0 contrib/zstd/zstd-1.4.3/.gitignore
  4. +339 −0 contrib/zstd/zstd-1.4.3/COPYING
  5. +30 −0 contrib/zstd/zstd-1.4.3/LICENSE
  6. +13 −0 contrib/zstd/zstd-1.4.3/lib/.gitignore
  7. +459 −0 contrib/zstd/zstd-1.4.3/lib/common/bitstream.h
  8. +147 −0 contrib/zstd/zstd-1.4.3/lib/common/compiler.h
  9. +215 −0 contrib/zstd/zstd-1.4.3/lib/common/cpu.h
  10. +44 −0 contrib/zstd/zstd-1.4.3/lib/common/debug.c
  11. +134 −0 contrib/zstd/zstd-1.4.3/lib/common/debug.h
  12. +236 −0 contrib/zstd/zstd-1.4.3/lib/common/entropy_common.c
  13. +54 −0 contrib/zstd/zstd-1.4.3/lib/common/error_private.c
  14. +76 −0 contrib/zstd/zstd-1.4.3/lib/common/error_private.h
  15. +708 −0 contrib/zstd/zstd-1.4.3/lib/common/fse.h
  16. +309 −0 contrib/zstd/zstd-1.4.3/lib/common/fse_decompress.c
  17. +358 −0 contrib/zstd/zstd-1.4.3/lib/common/huf.h
  18. +380 −0 contrib/zstd/zstd-1.4.3/lib/common/mem.h
  19. +340 −0 contrib/zstd/zstd-1.4.3/lib/common/pool.c
  20. +84 −0 contrib/zstd/zstd-1.4.3/lib/common/pool.h
  21. +75 −0 contrib/zstd/zstd-1.4.3/lib/common/threading.c
  22. +123 −0 contrib/zstd/zstd-1.4.3/lib/common/threading.h
  23. +882 −0 contrib/zstd/zstd-1.4.3/lib/common/xxhash.c
  24. +305 −0 contrib/zstd/zstd-1.4.3/lib/common/xxhash.h
  25. +83 −0 contrib/zstd/zstd-1.4.3/lib/common/zstd_common.c
  26. +93 −0 contrib/zstd/zstd-1.4.3/lib/common/zstd_errors.h
  27. +373 −0 contrib/zstd/zstd-1.4.3/lib/common/zstd_internal.h
  28. +721 −0 contrib/zstd/zstd-1.4.3/lib/compress/fse_compress.c
  29. +203 −0 contrib/zstd/zstd-1.4.3/lib/compress/hist.c
  30. +95 −0 contrib/zstd/zstd-1.4.3/lib/compress/hist.h
  31. +798 −0 contrib/zstd/zstd-1.4.3/lib/compress/huf_compress.c
  32. +3,906 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress.c
  33. +961 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress_internal.h
  34. +149 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress_literals.c
  35. +29 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress_literals.h
  36. +415 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress_sequences.c
  37. +47 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_compress_sequences.h
  38. +518 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_double_fast.c
  39. +38 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_double_fast.h
  40. +493 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_fast.c
  41. +37 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_fast.h
  42. +1,115 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_lazy.c
  43. +67 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_lazy.h
  44. +597 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_ldm.c
  45. +105 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_ldm.h
  46. +1,246 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_opt.c
  47. +56 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstd_opt.h
  48. +2,110 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstdmt_compress.c
  49. +192 −0 contrib/zstd/zstd-1.4.3/lib/compress/zstdmt_compress.h
  50. +1,232 −0 contrib/zstd/zstd-1.4.3/lib/decompress/huf_decompress.c
  51. +240 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_ddict.c
  52. +44 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_ddict.h
  53. +1,771 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_decompress.c
  54. +1,325 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_decompress_block.c
  55. +59 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_decompress_block.h
  56. +175 −0 contrib/zstd/zstd-1.4.3/lib/decompress/zstd_decompress_internal.h
  57. +1,947 −0 contrib/zstd/zstd-1.4.3/lib/zstd.h
@@ -0,0 +1,2 @@
.*.cmd

@@ -0,0 +1,21 @@
# Set the default behavior
* text eol=lf

# Explicitly declare source files
*.c text eol=lf
*.h text eol=lf

# Denote files that should not be modified.
*.odt binary
*.png binary

# Visual Studio
*.sln text eol=crlf
*.vcxproj* text eol=crlf
*.vcproj* text eol=crlf
*.suo binary
*.rc text eol=crlf

# Windows
*.bat text eol=crlf
*.cmd text eol=crlf
@@ -0,0 +1,65 @@
# Object files
*.o
*.ko
*.dSYM

# Libraries
*.lib
*.a

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
/zstd
zstdmt
*.exe
*.out
*.app

# Test artefacts
tmp*
dictionary.
NUL

# Build artefacts
projects/
bin/
.buckd/
buck-out/

# Other files
.directory
_codelite/
_zstdbench/
.clang_complete
*.idea
*.swp
.DS_Store
googletest/
*.d

# Files we don't need in ZFS:
.buckconfig
.buckversion
.circleci/
.cirrus.yml
.travis.yml
CHANGELOG
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Makefile
README.md
TESTING.md
appveyor.yml
build/
contrib/
doc/
examples/
programs/
tests/
zlibWrapper/
*.vscode

Large diffs are not rendered by default.

@@ -0,0 +1,30 @@
BSD License

For Zstandard software

Copyright (c) 2016-present, Facebook, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,13 @@
# make install artefact
libzstd.pc
libzstd-nomt

# Files we don't need in ZFS:
BUCK
Makefile
README.md
deprecated/
dictBuilder/
dll/
legacy/
libzstd.pc.in

0 comments on commit 9437880

Please sign in to comment.
You can’t perform that action at this time.