Skip to content
Permalink
Browse files

Import unmodified ZStandard v1.4.4

This imports the unmodified ZStandard source to contrib/ which will be
used by ZFS. This code shall not be modified in any way to keep it
easily updatable.

Only the required files from lib/ are imported.

contrib/zstd is excluded from codecov calculation as dependencies don't
need full codecov.

Signed-off-by: Allan Jude <allanjude@freebsd.org>
Signed-off-by: Kjeld Schouten-Lebbing kjeld@schouten-lebbing.nl
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
  • Loading branch information...
c0d3z3r0 committed Dec 1, 2019
1 parent 0c46813 commit 60bc89549a00eaba9f7db2ab1156815385b452f5
Showing with 27,677 additions and 2 deletions.
  1. +3 −0 .github/codecov.yml
  2. +2 −1 Makefile.am
  3. +6 −0 configure.ac
  4. +1 −1 contrib/Makefile.am
  5. +2 −0 contrib/zstd/.gitignore
  6. +1 −0 contrib/zstd/Makefile.am
  7. +21 −0 contrib/zstd/zstd-1.4.4/.gitattributes
  8. +66 −0 contrib/zstd/zstd-1.4.4/.gitignore
  9. +339 −0 contrib/zstd/zstd-1.4.4/COPYING
  10. +30 −0 contrib/zstd/zstd-1.4.4/LICENSE
  11. +1 −0 contrib/zstd/zstd-1.4.4/Makefile.am
  12. +13 −0 contrib/zstd/zstd-1.4.4/lib/.gitignore
  13. +2 −0 contrib/zstd/zstd-1.4.4/lib/Makefile.am
  14. 0 contrib/zstd/zstd-1.4.4/lib/common/Makefile.am
  15. +460 −0 contrib/zstd/zstd-1.4.4/lib/common/bitstream.h
  16. +159 −0 contrib/zstd/zstd-1.4.4/lib/common/compiler.h
  17. +215 −0 contrib/zstd/zstd-1.4.4/lib/common/cpu.h
  18. +44 −0 contrib/zstd/zstd-1.4.4/lib/common/debug.c
  19. +134 −0 contrib/zstd/zstd-1.4.4/lib/common/debug.h
  20. +236 −0 contrib/zstd/zstd-1.4.4/lib/common/entropy_common.c
  21. +54 −0 contrib/zstd/zstd-1.4.4/lib/common/error_private.c
  22. +76 −0 contrib/zstd/zstd-1.4.4/lib/common/error_private.h
  23. +708 −0 contrib/zstd/zstd-1.4.4/lib/common/fse.h
  24. +311 −0 contrib/zstd/zstd-1.4.4/lib/common/fse_decompress.c
  25. +358 −0 contrib/zstd/zstd-1.4.4/lib/common/huf.h
  26. +453 −0 contrib/zstd/zstd-1.4.4/lib/common/mem.h
  27. +344 −0 contrib/zstd/zstd-1.4.4/lib/common/pool.c
  28. +84 −0 contrib/zstd/zstd-1.4.4/lib/common/pool.h
  29. +120 −0 contrib/zstd/zstd-1.4.4/lib/common/threading.c
  30. +154 −0 contrib/zstd/zstd-1.4.4/lib/common/threading.h
  31. +882 −0 contrib/zstd/zstd-1.4.4/lib/common/xxhash.c
  32. +305 −0 contrib/zstd/zstd-1.4.4/lib/common/xxhash.h
  33. +83 −0 contrib/zstd/zstd-1.4.4/lib/common/zstd_common.c
  34. +93 −0 contrib/zstd/zstd-1.4.4/lib/common/zstd_errors.h
  35. +350 −0 contrib/zstd/zstd-1.4.4/lib/common/zstd_internal.h
  36. 0 contrib/zstd/zstd-1.4.4/lib/compress/Makefile.am
  37. +721 −0 contrib/zstd/zstd-1.4.4/lib/compress/fse_compress.c
  38. +203 −0 contrib/zstd/zstd-1.4.4/lib/compress/hist.c
  39. +95 −0 contrib/zstd/zstd-1.4.4/lib/compress/hist.h
  40. +798 −0 contrib/zstd/zstd-1.4.4/lib/compress/huf_compress.c
  41. +4,103 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress.c
  42. +1,003 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress_internal.h
  43. +154 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress_literals.c
  44. +29 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress_literals.h
  45. +415 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress_sequences.c
  46. +47 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_compress_sequences.h
  47. +535 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_cwksp.h
  48. +518 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_double_fast.c
  49. +38 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_double_fast.h
  50. +484 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_fast.c
  51. +37 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_fast.h
  52. +1,115 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_lazy.c
  53. +67 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_lazy.h
  54. +597 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_ldm.c
  55. +105 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_ldm.h
  56. +1,246 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_opt.c
  57. +56 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstd_opt.h
  58. +2,116 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstdmt_compress.c
  59. +192 −0 contrib/zstd/zstd-1.4.4/lib/compress/zstdmt_compress.h
  60. 0 contrib/zstd/zstd-1.4.4/lib/decompress/Makefile.am
  61. +1,234 −0 contrib/zstd/zstd-1.4.4/lib/decompress/huf_decompress.c
  62. +240 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_ddict.c
  63. +44 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_ddict.h
  64. +1,769 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_decompress.c
  65. +1,323 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_decompress_block.c
  66. +59 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_decompress_block.h
  67. +175 −0 contrib/zstd/zstd-1.4.4/lib/decompress/zstd_decompress_internal.h
  68. +2,049 −0 contrib/zstd/zstd-1.4.4/lib/zstd.h
@@ -20,3 +20,6 @@ comment:
layout: "reach, diff, flags, footer"
behavior: once # update if exists; post new; skip if deleted
require_changes: yes # only post when coverage changes

ignore:
- "contrib/zstd" # Dependencies don't need coverage testing
@@ -104,7 +104,8 @@ commitcheck:
fi

cstyle:
@find ${top_srcdir} -name build -prune -o -name '*.[hc]' \
@find ${top_srcdir} \( -name build -o -path ./contrib/zstd \) -prune \
-o -name '*.[hc]' \
! -name 'zfs_config.*' ! -name '*.mod.c' -type f \
-exec ${top_srcdir}/scripts/cstyle.pl -cpP {} \+

@@ -97,6 +97,12 @@ AC_CONFIG_FILES([
contrib/pyzfs/Makefile
contrib/pyzfs/setup.py
contrib/zcp/Makefile
contrib/zstd/Makefile
contrib/zstd/zstd-1.4.4/Makefile
contrib/zstd/zstd-1.4.4/lib/Makefile
contrib/zstd/zstd-1.4.4/lib/common/Makefile
contrib/zstd/zstd-1.4.4/lib/compress/Makefile
contrib/zstd/zstd-1.4.4/lib/decompress/Makefile
etc/Makefile
etc/init.d/Makefile
etc/modules-load.d/Makefile
@@ -1,2 +1,2 @@
SUBDIRS = bash_completion.d bpftrace dracut initramfs pyzfs zcp
DIST_SUBDIRS = bash_completion.d bpftrace dracut initramfs pyzfs zcp
DIST_SUBDIRS = bash_completion.d bpftrace dracut initramfs pyzfs zcp zstd
@@ -0,0 +1,2 @@
.*.cmd

@@ -0,0 +1 @@
SUBDIRS = zstd-1.4.4
@@ -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,66 @@
# 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.
dictionary
NUL

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

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

# 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/

0 comments on commit 60bc895

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