diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ff2f1c..0bebfce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,11 @@ +# +# CMakeLists.txt +# +# This is the build file for libdeflate. +# +# This file has no copyright assigned and is placed in the Public Domain. +# + cmake_minimum_required(VERSION 2.6) project(libdeflate C) diff --git a/src/adler32.c b/src/adler32.c index e5dc9a5..d0040ff 100644 --- a/src/adler32.c +++ b/src/adler32.c @@ -2,6 +2,8 @@ * adler32.c * * Adler-32 checksum algorithm. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include "adler32.h" diff --git a/src/adler32.h b/src/adler32.h index d1964bf..7c3dee4 100644 --- a/src/adler32.h +++ b/src/adler32.h @@ -2,6 +2,8 @@ * adler32.h * * Adler-32 checksum algorithm. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/bitops.h b/src/bitops.h index 97fa7a1..6925d47 100644 --- a/src/bitops.h +++ b/src/bitops.h @@ -2,6 +2,8 @@ * bitops.h * * Inline functions for bit manipulation. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/bt_matchfinder.h b/src/bt_matchfinder.h index 57b8efa..df1179c 100644 --- a/src/bt_matchfinder.h +++ b/src/bt_matchfinder.h @@ -1,7 +1,9 @@ /* * bt_matchfinder.h * - * ---------------------------------------------------------------------------- + * This file has no copyright assigned and is placed in the Public Domain. + * + * --------------------------------------------------------------------------- * * This is a Binary Trees (bt) based matchfinder. * diff --git a/src/compiler-gcc.h b/src/compiler-gcc.h index e7bfef0..184d620 100644 --- a/src/compiler-gcc.h +++ b/src/compiler-gcc.h @@ -2,6 +2,8 @@ * compiler-gcc.h * * Compiler and platform-specific definitions for the GNU C compiler. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/compiler.h b/src/compiler.h index f48dbb5..668aa64 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -2,6 +2,8 @@ * compiler.h * * Compiler and platform-specific definitions. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/crc32.c b/src/crc32.c index ae03c79..865f7dc 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -2,6 +2,8 @@ * crc32.c * * CRC-32 checksum computation for the gzip format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ /* diff --git a/src/crc32.h b/src/crc32.h index 78d0e0e..c58fa14 100644 --- a/src/crc32.h +++ b/src/crc32.h @@ -2,6 +2,8 @@ * crc32.h * * CRC-32 checksum computation for the gzip format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/deflate_compress.c b/src/deflate_compress.c index ae0d176..e730eea 100644 --- a/src/deflate_compress.c +++ b/src/deflate_compress.c @@ -1,5 +1,7 @@ /* * deflate_compress.c + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include diff --git a/src/deflate_compress.h b/src/deflate_compress.h index ccf943e..acf83fb 100644 --- a/src/deflate_compress.h +++ b/src/deflate_compress.h @@ -1,3 +1,9 @@ +/* + * deflate_compress.h + * + * This file has no copyright assigned and is placed in the Public Domain. + */ + #pragma once /* 'struct deflate_compressor' is private to deflate_compress.c, but zlib header diff --git a/src/deflate_constants.h b/src/deflate_constants.h index cb07c07..16f7345 100644 --- a/src/deflate_constants.h +++ b/src/deflate_constants.h @@ -2,6 +2,8 @@ * deflate_constants.h * * Constants for the DEFLATE compression format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/deflate_decompress.c b/src/deflate_decompress.c index eacf6fd..8ab7644 100644 --- a/src/deflate_decompress.c +++ b/src/deflate_decompress.c @@ -1,6 +1,10 @@ /* * deflate_decompress.c * + * This file has no copyright assigned and is placed in the Public Domain. + * + * --------------------------------------------------------------------------- + * * This is a highly optimized DEFLATE decompressor. On x86_64 it decompresses * data in about 59% of the time of zlib. On other architectures it should * still be significantly faster than zlib, but the difference may be smaller. diff --git a/src/endianness.h b/src/endianness.h index 7f1e9a1..4ff4aa9 100644 --- a/src/endianness.h +++ b/src/endianness.h @@ -2,6 +2,8 @@ * endianness.h * * Macros and inline functions for endianness conversion. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/gzip_compress.c b/src/gzip_compress.c index acf462f..f2aec21 100644 --- a/src/gzip_compress.c +++ b/src/gzip_compress.c @@ -2,6 +2,8 @@ * gzip_compress.c * * Generate DEFLATE-compressed data in the gzip wrapper format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include "libdeflate.h" diff --git a/src/gzip_constants.h b/src/gzip_constants.h index 87df327..54e673e 100644 --- a/src/gzip_constants.h +++ b/src/gzip_constants.h @@ -2,6 +2,8 @@ * gzip_constants.h * * Constants for the gzip wrapper format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/gzip_decompress.c b/src/gzip_decompress.c index ac4fcd3..d91e81b 100644 --- a/src/gzip_decompress.c +++ b/src/gzip_decompress.c @@ -2,6 +2,8 @@ * gzip_decompress.c * * Decompress DEFLATE-compressed data wrapped in the gzip format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include "libdeflate.h" diff --git a/src/hc_matchfinder.h b/src/hc_matchfinder.h index 7b1d8bd..7a43615 100644 --- a/src/hc_matchfinder.h +++ b/src/hc_matchfinder.h @@ -1,6 +1,8 @@ /* * hc_matchfinder.h * + * This file has no copyright assigned and is placed in the Public Domain. + * * --------------------------------------------------------------------------- * * Algorithm diff --git a/src/lz_extend.h b/src/lz_extend.h index be5a677..14db2cd 100644 --- a/src/lz_extend.h +++ b/src/lz_extend.h @@ -2,6 +2,8 @@ * lz_extend.h * * Fast match extension for Lempel-Ziv matchfinding. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/lz_hash.h b/src/lz_hash.h index 419baa6..08b86b9 100644 --- a/src/lz_hash.h +++ b/src/lz_hash.h @@ -2,6 +2,8 @@ * lz_hash.h * * Hashing for Lempel-Ziv matchfinding. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #ifndef _LZ_HASH_H diff --git a/src/matchfinder_avx2.h b/src/matchfinder_avx2.h index 3bdb1a9..553106a 100644 --- a/src/matchfinder_avx2.h +++ b/src/matchfinder_avx2.h @@ -2,6 +2,8 @@ * matchfinder_avx2.h * * Matchfinding routines optimized for Intel AVX2 (Advanced Vector Extensions). + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include diff --git a/src/matchfinder_common.h b/src/matchfinder_common.h index 1ffbed9..eae61ed 100644 --- a/src/matchfinder_common.h +++ b/src/matchfinder_common.h @@ -2,6 +2,8 @@ * matchfinder_common.h * * Common code for Lempel-Ziv matchfinding. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/matchfinder_nonsliding.h b/src/matchfinder_nonsliding.h index 4717214..6486333 100644 --- a/src/matchfinder_nonsliding.h +++ b/src/matchfinder_nonsliding.h @@ -4,6 +4,8 @@ * Definitions for nonsliding window matchfinders. * * "Nonsliding window" means that any prior sequence can be matched. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #if MATCHFINDER_WINDOW_ORDER <= 16 diff --git a/src/matchfinder_sliding.h b/src/matchfinder_sliding.h index 2fb715a..d7e3398 100644 --- a/src/matchfinder_sliding.h +++ b/src/matchfinder_sliding.h @@ -5,6 +5,8 @@ * * "Sliding window" means that only sequences beginning in the most recent * MATCHFINDER_WINDOW_SIZE bytes can be matched. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #if MATCHFINDER_WINDOW_ORDER <= 15 diff --git a/src/matchfinder_sse2.h b/src/matchfinder_sse2.h index 574f9b2..80b82f4 100644 --- a/src/matchfinder_sse2.h +++ b/src/matchfinder_sse2.h @@ -2,6 +2,8 @@ * matchfinder_sse2.h * * Matchfinding routines optimized for Intel SSE2 (Streaming SIMD Extensions). + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include diff --git a/src/types.h b/src/types.h index eff0404..c98252f 100644 --- a/src/types.h +++ b/src/types.h @@ -2,6 +2,8 @@ * types.h * * Definitions of fixed-width integers, 'bool', 'size_t', and 'machine_word_t'. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/unaligned.h b/src/unaligned.h index 24a588f..26b27f1 100644 --- a/src/unaligned.h +++ b/src/unaligned.h @@ -2,6 +2,8 @@ * unaligned.h * * Inline functions for unaligned memory accesses. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/zlib_compress.c b/src/zlib_compress.c index 9fdb359..93f4630 100644 --- a/src/zlib_compress.c +++ b/src/zlib_compress.c @@ -2,6 +2,8 @@ * zlib_compress.c * * Generate DEFLATE-compressed data in the zlib wrapper format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include "libdeflate.h" diff --git a/src/zlib_constants.h b/src/zlib_constants.h index faec03b..60a16cd 100644 --- a/src/zlib_constants.h +++ b/src/zlib_constants.h @@ -1,7 +1,7 @@ /* * zlib_constants.h * - * Constants for the zlib wrapper format. + * This file has no copyright assigned and is placed in the Public Domain. */ #pragma once diff --git a/src/zlib_decompress.c b/src/zlib_decompress.c index bd7fc6b..f8be067 100644 --- a/src/zlib_decompress.c +++ b/src/zlib_decompress.c @@ -2,6 +2,8 @@ * zlib_decompress.c * * Decompress DEFLATE-compressed data wrapped in the zlib format. + * + * This file has no copyright assigned and is placed in the Public Domain. */ #include "libdeflate.h" diff --git a/test/gen_crc32_table.c b/test/gen_crc32_table.c index 148ade4..cbff6e9 100644 --- a/test/gen_crc32_table.c +++ b/test/gen_crc32_table.c @@ -1,7 +1,9 @@ /* * gen_crc32_table.c * - * A program for CRC-32 table generation. + * This file has no copyright assigned and is placed in the Public Domain. + * + * This is a program for CRC-32 table generation. * * See crc32.c for more details about CRC computation. */