Home
last modified time | relevance | path

Searched +full:- +full:h (Results 1 – 25 of 93) sorted by relevance

1234

/lz4-3.4.0-2.7.6/lib/
DMakefile2 # LZ4 library - Makefile
3 # Copyright (C) Yann Collet 2011-2020
31 # - LZ4 source repository : https://github.com/lz4/lz4
32 # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c
37 LIBVER_MAJOR_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' <…
38 LIBVER_MINOR_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' <…
39 LIBVER_PATCH_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p'…
49 CPPFLAGS+= -DXXH_NAMESPACE=LZ4_
51 CFLAGS ?= -O3
52 DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
[all …]
DREADME.md1 LZ4 - Library Files
9 The minimum required is **`lz4.c`** and **`lz4.h`**,
18 Add files **`lz4hc.c`** and **`lz4hc.h`**.
28 Its public API is described in `lib/lz4frame.h`.
31 So it's necessary to include all `*.c` and `*.h` files present in `/lib`.
51 - `LZ4_FAST_DEC_LOOP` : this triggers a speed optimized decompression loop, more powerful on modern…
54 For example, with `gcc` : `-DLZ4_FAST_DEC_LOOP=1`,
55 and with `make` : `CPPFLAGS+=-DLZ4_FAST_DEC_LOOP=1 make lz4`.
57 - `LZ4_DISTANCE_MAX` : control the maximum offset that the compressor will allow.
64 - `LZ4_DISABLE_DEPRECATE_WARNINGS` : invoking a deprecated function will make the compiler generate…
[all …]
/lz4-3.4.0-2.7.6/contrib/gen_manual/
Dgen-lz4-manual.sh3 LIBVER_MAJOR_SCRIPT=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../…
4 LIBVER_MINOR_SCRIPT=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../…
5 LIBVER_PATCH_SCRIPT=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < .…
9 ./gen_manual "lz4 $LIBVER_SCRIPT" ../../lib/lz4.h ./lz4_manual.html
10 ./gen_manual "lz4frame $LIBVER_SCRIPT" ../../lib/lz4frame.h ./lz4frame_manual.html
/lz4-3.4.0-2.7.6/programs/
Dplatform.h2 platform.h - compiler and OS detection
3 Copyright (C) 2016-2020, Przemyslaw Skibinski, Yann Collet
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
35 # define _CRT_SECURE_NO_DEPRECATE /* VS2005 - must be declared before <io.h> and <windows.h> */
42 * Detect 64-bit OS
46 …__ppc64__ || defined __PPC64__ /* POWER 64-bit */ \
47 …arcv9 || defined __sparc_v9__ || defined __arch64__)) || defined __sparc64__ /* SPARC 64-bit */ \
48 …_X64 /* x86 64-bit */ \
49 …rch64__ || defined __ARM64_ARCH_8__ /* ARM 64-bit */ \
50 … || __mips == 4 || __mips == 3)) /* MIPS 64-bit */ \
[all …]
Dutil.h2 util.h - utility functions
3 Copyright (C) 2016-2020, Przemyslaw Skibinski, Yann Collet
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 /*-****************************************
32 #include "platform.h" /* PLATFORM_POSIX_VERSION */
33 #include <stddef.h> /* size_t, ptrdiff_t */
34 #include <stdlib.h> /* malloc */
35 #include <string.h> /* strlen, strncpy */
36 #include <stdio.h> /* fprintf, fileno */
37 #include <assert.h>
[all …]
DREADME.md8 …all [standard conventions](https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html),
13 - `lz4` : default CLI, with a command line syntax close to gzip
14 - `lz4c` : Same as `lz4` with additional support legacy lz4 commands (incompatible with gzip)
15 - `lz4c32` : Same as `lz4c`, but forced to compile in 32-bits mode
17 The CLI generates and decodes [LZ4-compressed frames](../doc/lz4_Frame_format.md).
21 CLI supports aggregation of parameters i.e. `-b1`, `-e18`, and `-i1` can be joined into `-b1e18i1`.
25 CLI includes in-memory compression benchmark module for lz4.
31 One can select compression levels starting from `-b` and ending with `-e`.
32 The `-i` parameter selects a number of seconds used for each of tested levels.
37 The full list of commands can be obtained with `-h` or `-H` parameter:
[all …]
Ddatagen.c2 datagen.c - compressible data generator test tool
3 Copyright (C) Yann Collet 2012-2020
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 - LZ4 source repository : https://github.com/lz4/lz4
23 - Public forum : https://groups.google.com/forum/#!forum/lz4c
29 #include "platform.h" /* Compiler options, SET_BINARY_MODE */
30 #include "util.h" /* U32 */
31 #include <stdlib.h> /* malloc */
32 #include <stdio.h> /* FILE, fwrite */
33 #include <string.h> /* memcpy */
[all …]
/lz4-3.4.0-2.7.6/tests/
DcheckFrame.c2 checkFrame - verify frame headers
3 Copyright (C) Yann Collet 2014-2020
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 - LZ4 homepage : http://www.lz4.org
23 - LZ4 source repository : https://github.com/lz4/lz4
26 /*-************************************
29 #include "util.h" /* U32 */
30 #include <stdlib.h> /* malloc, free */
31 #include <stdio.h> /* fprintf */
32 #include <string.h> /* strcmp */
[all …]
DroundTripTest.c2 * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
5 * This source code is licensed under both the BSD-style license (found in the
8 * You may select, at your option, one of the above-listed licenses.
13 * performs an LZ4 round-trip test (compress + decompress)
24 # define MIN_CLEVEL (int)(-5)
32 #include <stddef.h> /* size_t */
33 #include <stdlib.h> /* malloc, free, exit */
34 #include <stdio.h> /* fprintf */
35 #include <string.h> /* strcmp */
36 #include <assert.h>
[all …]
Ddatagencli.c4 Copyright (C) Yann Collet 2012-2020
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 - LZ4 source repository : https://github.com/lz4/lz4
24 - Public forum : https://groups.google.com/forum/#!forum/lz4c
30 #include "util.h" /* U32 */
31 #include <stdio.h> /* fprintf, stderr */
32 #include "datagen.h" /* RDG_generate */
33 #include "lz4.h" /* LZ4_VERSION_STRING */
66 DISPLAY( " -g# : generate # data (default:%i)\n", SIZE_DEFAULT); in usage()
67 DISPLAY( " -s# : Select seed (default:%i)\n", SEED_DEFAULT); in usage()
[all …]
DcheckTag.c2 checkTag.c - Version validation tool for LZ4
3 Copyright (C) Yann Collet 2018-2020
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 - LZ4 homepage : http://www.lz4.org
23 - LZ4 source repo : https://github.com/lz4/lz4
28 * checkTag validates tags of following format : v[0-9].[0-9].[0-9]{any}
38 #include <stdio.h> /* printf */
39 #include <string.h> /* strlen, strncmp */
40 #include "lz4.h" /* LZ4_VERSION_STRING */
/lz4-3.4.0-2.7.6/build/cmake/
DCMakeLists.txt19 file(STRINGS "${LZ4_TOP_SOURCE_DIR}/lib/lz4.h" LZ4_VERSION_MAJOR REGEX "^#define LZ4_VERSION_MAJOR …
20 string(REGEX REPLACE "^#define LZ4_VERSION_MAJOR +([0-9]+) +.*$" "\\1" LZ4_VERSION_MAJOR "${LZ4_VER…
21 file(STRINGS "${LZ4_TOP_SOURCE_DIR}/lib/lz4.h" LZ4_VERSION_MINOR REGEX "^#define LZ4_VERSION_MINOR …
22 string(REGEX REPLACE "^#define LZ4_VERSION_MINOR +([0-9]+) +.*$" "\\1" LZ4_VERSION_MINOR "${LZ4_VER…
23 file(STRINGS "${LZ4_TOP_SOURCE_DIR}/lib/lz4.h" LZ4_VERSION_RELEASE REGEX "^#define LZ4_VERSION_RELE…
24 string(REGEX REPLACE "^#define LZ4_VERSION_RELEASE +([0-9]+) +.*$" "\\1" LZ4_VERSION_RELEASE "${LZ4…
46 # depending on whether or not we are the top-level project.
86 "${LZ4_LIB_SOURCE_DIR}/lz4.h"
87 "${LZ4_LIB_SOURCE_DIR}/lz4hc.h"
89 "${LZ4_LIB_SOURCE_DIR}/lz4frame.h"
[all …]
/lz4-3.4.0-2.7.6/examples/
Dsimple_buffer.c4 …* License : Follows same licensing as the lz4.c/lz4.h program at any given time. Currently, BS…
5 …ple program to demonstrate the basic usage of the compress/decompress functions within lz4.c/lz4.h.
7 * Both of these are documented in the lz4.h header file; I recommend reading them.
11 #include <stdio.h> // For printf()
12 #include <string.h> // For memcmp()
13 #include <stdlib.h> // For exit()
14 #include "lz4.h" // This is all that is required to expose the prototypes for basic compression…
17 * Simple show-error-and-bail function.
33 // Read lz4.h if you're unsure what a given code means. in main()
37 …ay need to do some casting or set the right -Wno compiler flags to ignore those warnings (e.g.: -W… in main()
[all …]
DHCStreaming_ringBuffer.c15 # pragma GCC diagnostic ignored "-Wmissing-braces" /* GCC bug 53119 : doesn't accept { 0 } as in…
22 #include "lz4hc.h"
23 #include "lz4.h"
25 #include <stdio.h>
26 #include <stdint.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <assert.h>
83 if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_compress()
123 if(decOffset >= DEC_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_decompress()
[all …]
Dcompress_functions.c4 …* License : Follows same licensing as the lz4.c/lz4.h program at any given time. Currently, BS…
28 … can help avoid some test cases and branching which might be useful in some implementation-specific
30 * wrapper function because this function isn't exposed with lz4.h.
42 …* size of the compressed buffer (it will simply be read-to-end, hence it's non-saf…
46 * exposed for anyone using lz4.h to utilize.
54 /* Since lz4 compiles with c99 and not gnu/std99 we need to enable POSIX linking for time.h structs…
64 #include "lz4.h"
65 #include <stdio.h> /* for printf() */
66 #include <stdlib.h> /* for exit() */
67 #include <string.h> /* for atoi() memcmp() */
[all …]
DblockStreaming_doubleBuffer.c9 #include "lz4.h"
11 #include <stdio.h>
12 #include <stdint.h>
13 #include <stdlib.h>
14 #include <string.h>
125 result = (int) r0 - (int) r1; in compare()
151 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], BLOCK_BYTES); in main()
152 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES); in main()
163 printf("compress : %s -> %s\n", inpFilename, lz4Filename); in main()
176 printf("decompress : %s -> %s\n", lz4Filename, decFilename); in main()
[all …]
/lz4-3.4.0-2.7.6/ossfuzz/
Ddecompress_fuzzer.c6 #include <stddef.h>
7 #include <stdint.h>
8 #include <stdlib.h>
9 #include <string.h>
11 #include "fuzz_helpers.h"
12 #include "fuzz_data_producer.h"
13 #include "lz4.h"
23 size_t const largeDictSize = 64 * 1024 - 1; in LLVMFuzzerTestOneInput()
29 char* const smallDict = dataAfterDict - smallDictSize; in LLVMFuzzerTestOneInput()
Dround_trip_frame_fuzzer.c2 * This fuzz target performs a lz4 round-trip test (compress & decompress),
6 #include <stddef.h>
7 #include <stdint.h>
8 #include <stdlib.h>
9 #include <string.h>
11 #include "fuzz_helpers.h"
12 #include "lz4.h"
13 #include "lz4frame.h"
14 #include "lz4_helpers.h"
15 #include "fuzz_data_producer.h"
Dround_trip_hc_fuzzer.c2 * This fuzz target performs a lz4 round-trip test (compress & decompress),
6 #include <stddef.h>
7 #include <stdint.h>
8 #include <stdlib.h>
9 #include <string.h>
11 #include "fuzz_helpers.h"
12 #include "fuzz_data_producer.h"
13 #include "lz4.h"
14 #include "lz4hc.h"
Dfuzz_helpers.h2 * Copyright (c) 2016-present, Facebook, Inc.
5 * This source code is licensed under both the BSD-style license (found in the
17 #include "fuzz.h"
18 #include "xxhash.h"
19 #include <stdint.h>
20 #include <stdio.h>
21 #include <stdlib.h>
66 *size -= toHash; in FUZZ_seed()
71 #define FUZZ_rotl32(x, r) (((x) << (r)) | ((x) >> (32 - (r))))
87 return min + (random % (max - min + 1)); in FUZZ_rand32()
Dround_trip_fuzzer.c2 * This fuzz target performs a lz4 round-trip test (compress & decompress),
6 #include <stddef.h>
7 #include <stdint.h>
8 #include <stdlib.h>
9 #include <string.h>
11 #include "fuzz_helpers.h"
12 #include "lz4.h"
13 #include "fuzz_data_producer.h"
Dround_trip_stream_fuzzer.c2 * This fuzz target performs a lz4 streaming round-trip test
7 #include <stddef.h>
8 #include <stdint.h>
9 #include <stdlib.h>
10 #include <string.h>
12 #include "fuzz_helpers.h"
14 #include "lz4.h"
16 #include "lz4hc.h"
93 state->level = FUZZ_rand32(&seed, LZ4HC_CLEVEL_MIN, LZ4HC_CLEVEL_MAX); in state_reset()
94 LZ4_resetStream_fast(state->cstream); in state_reset()
[all …]
/lz4-3.4.0-2.7.6/contrib/meson/meson/lib/
Dmeson.build2 # Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
5 # This source code is licensed under both the BSD-style license (found in the
21 liblz4_c_args += '-DLZ4_DEBUG=@0@'.format(debug_level)
23 liblz4_debug_cflags = ['-Wextra', '-Wcast-qual', '-Wcast-align', '-Wshadow',
24 '-Wswitch-enum', '-Wdeclaration-after-statement', '-Wstrict-prototypes',
25 '-Wundef', '-Wpointer-arith', '-Wstrict-aliasing=1']
31 liblz4_c_args += '-DLZ4_DLL_EXPORT=1'
51 install_headers(join_paths(lz4_root_dir, 'lib/lz4.h'),
52 join_paths(lz4_root_dir, 'lib/lz4hc.h'),
53 join_paths(lz4_root_dir, 'lib/lz4frame.h'))
[all …]
/lz4-3.4.0-2.7.6/
Dappveyor.yml4 - COMPILER: "gcc"
6 - COMPILER: "gcc"
8 - COMPILER: "visual"
11 - COMPILER: "visual"
14 - COMPILER: "visual"
17 - COMPILER: "visual"
20 - COMPILER: "gcc"
24 - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
25 - MKDIR bin
26 - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
[all …]
/lz4-3.4.0-2.7.6/build/
DREADME.md7 - `cmake` - CMake project
8 - `VS2010` - Visual Studio 2010 project (which also works well with Visual Studio 2012, 2013, 2015)
9 - `VS2017` - Visual Studio 2017 project
19 6. Change `Debug` to `Release` and if you have 64-bit Windows change also `Win32` to `x64`.
31 - `lz4` : Command Line Utility, supporting gzip-like arguments
32 - `datagen` : Synthetic and parametrable data generator, for tests
33 - `frametest` : Test tool that checks lz4frame integrity on target platform
34 - `fullbench` : Precisely measure speed for each lz4 inner functions
35 - `fuzzer` : Test tool, to check lz4 integrity on target platform
36 - `liblz4` : A static LZ4 library compiled to `liblz4_static.lib`
[all …]

1234