/src/zstd/lib/common/mem.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) Meta Platforms, Inc. and affiliates. |
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 MEM_H_MODULE |
12 | | #define MEM_H_MODULE |
13 | | |
14 | | /*-**************************************** |
15 | | * Dependencies |
16 | | ******************************************/ |
17 | | #include <stddef.h> /* size_t, ptrdiff_t */ |
18 | | #include "compiler.h" /* __has_builtin */ |
19 | | #include "debug.h" /* DEBUG_STATIC_ASSERT */ |
20 | | #include "zstd_deps.h" /* ZSTD_memcpy */ |
21 | | |
22 | | |
23 | | /*-**************************************** |
24 | | * Compiler specifics |
25 | | ******************************************/ |
26 | | #if defined(_MSC_VER) /* Visual Studio */ |
27 | | # include <stdlib.h> /* _byteswap_ulong */ |
28 | | # include <intrin.h> /* _byteswap_* */ |
29 | | #elif defined(__ICCARM__) |
30 | | # include <intrinsics.h> |
31 | | #endif |
32 | | |
33 | | /*-************************************************************** |
34 | | * Basic Types |
35 | | *****************************************************************/ |
36 | | #if !defined (__VMS) && (defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) |
37 | | # if defined(_AIX) |
38 | | # include <inttypes.h> |
39 | | # else |
40 | | # include <stdint.h> /* intptr_t */ |
41 | | # endif |
42 | | typedef uint8_t BYTE; |
43 | | typedef uint8_t U8; |
44 | | typedef int8_t S8; |
45 | | typedef uint16_t U16; |
46 | | typedef int16_t S16; |
47 | | typedef uint32_t U32; |
48 | | typedef int32_t S32; |
49 | | typedef uint64_t U64; |
50 | | typedef int64_t S64; |
51 | | #else |
52 | | # include <limits.h> |
53 | | #if CHAR_BIT != 8 |
54 | | # error "this implementation requires char to be exactly 8-bit type" |
55 | | #endif |
56 | | typedef unsigned char BYTE; |
57 | | typedef unsigned char U8; |
58 | | typedef signed char S8; |
59 | | #if USHRT_MAX != 65535 |
60 | | # error "this implementation requires short to be exactly 16-bit type" |
61 | | #endif |
62 | | typedef unsigned short U16; |
63 | | typedef signed short S16; |
64 | | #if UINT_MAX != 4294967295 |
65 | | # error "this implementation requires int to be exactly 32-bit type" |
66 | | #endif |
67 | | typedef unsigned int U32; |
68 | | typedef signed int S32; |
69 | | /* note : there are no limits defined for long long type in C90. |
70 | | * limits exist in C99, however, in such case, <stdint.h> is preferred */ |
71 | | typedef unsigned long long U64; |
72 | | typedef signed long long S64; |
73 | | #endif |
74 | | |
75 | | /*-************************************************************** |
76 | | * Memory I/O API |
77 | | *****************************************************************/ |
78 | | /*=== Static platform detection ===*/ |
79 | | MEM_STATIC unsigned MEM_32bits(void); |
80 | | MEM_STATIC unsigned MEM_64bits(void); |
81 | | MEM_STATIC unsigned MEM_isLittleEndian(void); |
82 | | |
83 | | /*=== Native unaligned read/write ===*/ |
84 | | MEM_STATIC U16 MEM_read16(const void* memPtr); |
85 | | MEM_STATIC U32 MEM_read32(const void* memPtr); |
86 | | MEM_STATIC U64 MEM_read64(const void* memPtr); |
87 | | MEM_STATIC size_t MEM_readST(const void* memPtr); |
88 | | |
89 | | MEM_STATIC void MEM_write16(void* memPtr, U16 value); |
90 | | MEM_STATIC void MEM_write32(void* memPtr, U32 value); |
91 | | MEM_STATIC void MEM_write64(void* memPtr, U64 value); |
92 | | |
93 | | /*=== Little endian unaligned read/write ===*/ |
94 | | MEM_STATIC U16 MEM_readLE16(const void* memPtr); |
95 | | MEM_STATIC U32 MEM_readLE24(const void* memPtr); |
96 | | MEM_STATIC U32 MEM_readLE32(const void* memPtr); |
97 | | MEM_STATIC U64 MEM_readLE64(const void* memPtr); |
98 | | MEM_STATIC size_t MEM_readLEST(const void* memPtr); |
99 | | |
100 | | MEM_STATIC void MEM_writeLE16(void* memPtr, U16 val); |
101 | | MEM_STATIC void MEM_writeLE24(void* memPtr, U32 val); |
102 | | MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32); |
103 | | MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64); |
104 | | MEM_STATIC void MEM_writeLEST(void* memPtr, size_t val); |
105 | | |
106 | | /*=== Big endian unaligned read/write ===*/ |
107 | | MEM_STATIC U32 MEM_readBE32(const void* memPtr); |
108 | | MEM_STATIC U64 MEM_readBE64(const void* memPtr); |
109 | | MEM_STATIC size_t MEM_readBEST(const void* memPtr); |
110 | | |
111 | | MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32); |
112 | | MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64); |
113 | | MEM_STATIC void MEM_writeBEST(void* memPtr, size_t val); |
114 | | |
115 | | /*=== Byteswap ===*/ |
116 | | MEM_STATIC U32 MEM_swap32(U32 in); |
117 | | MEM_STATIC U64 MEM_swap64(U64 in); |
118 | | MEM_STATIC size_t MEM_swapST(size_t in); |
119 | | |
120 | | |
121 | | /*-************************************************************** |
122 | | * Memory I/O Implementation |
123 | | *****************************************************************/ |
124 | | /* MEM_FORCE_MEMORY_ACCESS : For accessing unaligned memory: |
125 | | * Method 0 : always use `memcpy()`. Safe and portable. |
126 | | * Method 1 : Use compiler extension to set unaligned access. |
127 | | * Method 2 : direct access. This method is portable but violate C standard. |
128 | | * It can generate buggy code on targets depending on alignment. |
129 | | * Default : method 1 if supported, else method 0 |
130 | | */ |
131 | | #ifndef MEM_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */ |
132 | | # ifdef __GNUC__ |
133 | | # define MEM_FORCE_MEMORY_ACCESS 1 |
134 | | # endif |
135 | | #endif |
136 | | |
137 | 609M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } Unexecuted instantiation: sequence_producer.c:MEM_32bits Unexecuted instantiation: util.c:MEM_32bits Unexecuted instantiation: entropy_common.c:MEM_32bits fse_decompress.c:MEM_32bits Line | Count | Source | 137 | 5.77M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: zstd_common.c:MEM_32bits fse_compress.c:MEM_32bits Line | Count | Source | 137 | 25.4M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: hist.c:MEM_32bits huf_compress.c:MEM_32bits Line | Count | Source | 137 | 54.1M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
zstd_compress.c:MEM_32bits Line | Count | Source | 137 | 141M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_32bits zstd_compress_sequences.c:MEM_32bits Line | Count | Source | 137 | 247M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
zstd_compress_superblock.c:MEM_32bits Line | Count | Source | 137 | 264k | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: zstd_double_fast.c:MEM_32bits Unexecuted instantiation: zstd_fast.c:MEM_32bits Unexecuted instantiation: zstd_lazy.c:MEM_32bits Unexecuted instantiation: zstd_ldm.c:MEM_32bits Unexecuted instantiation: zstd_opt.c:MEM_32bits Unexecuted instantiation: zstd_preSplit.c:MEM_32bits zstdmt_compress.c:MEM_32bits Line | Count | Source | 137 | 1.33k | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
huf_decompress.c:MEM_32bits Line | Count | Source | 137 | 6.50M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: zstd_ddict.c:MEM_32bits Unexecuted instantiation: zstd_decompress.c:MEM_32bits zstd_decompress_block.c:MEM_32bits Line | Count | Source | 137 | 127M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: cover.c:MEM_32bits Unexecuted instantiation: fastcover.c:MEM_32bits Unexecuted instantiation: zdict.c:MEM_32bits Unexecuted instantiation: zstd_v05.c:MEM_32bits |
138 | 710M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } sequence_producer.c:MEM_64bits Line | Count | Source | 138 | 5.42M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: util.c:MEM_64bits Unexecuted instantiation: entropy_common.c:MEM_64bits Unexecuted instantiation: fse_decompress.c:MEM_64bits Unexecuted instantiation: zstd_common.c:MEM_64bits Unexecuted instantiation: fse_compress.c:MEM_64bits Unexecuted instantiation: hist.c:MEM_64bits Unexecuted instantiation: huf_compress.c:MEM_64bits zstd_compress.c:MEM_64bits Line | Count | Source | 138 | 73.0M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_64bits Unexecuted instantiation: zstd_compress_sequences.c:MEM_64bits Unexecuted instantiation: zstd_compress_superblock.c:MEM_64bits zstd_double_fast.c:MEM_64bits Line | Count | Source | 138 | 7.33M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 13.5M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 127M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 10.4M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 438M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: zstd_preSplit.c:MEM_64bits Unexecuted instantiation: zstdmt_compress.c:MEM_64bits huf_decompress.c:MEM_64bits Line | Count | Source | 138 | 12.6M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: zstd_ddict.c:MEM_64bits Unexecuted instantiation: zstd_decompress.c:MEM_64bits zstd_decompress_block.c:MEM_64bits Line | Count | Source | 138 | 20.8M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: cover.c:MEM_64bits Unexecuted instantiation: fastcover.c:MEM_64bits Unexecuted instantiation: zdict.c:MEM_64bits Unexecuted instantiation: zstd_v05.c:MEM_64bits |
139 | | |
140 | | MEM_STATIC unsigned MEM_isLittleEndian(void) |
141 | 4.03G | { |
142 | 4.03G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) |
143 | 4.03G | return 1; |
144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) |
145 | | return 0; |
146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ |
147 | | return 1; |
148 | | #elif defined(__clang__) && __BIG_ENDIAN__ |
149 | | return 0; |
150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) |
151 | | return 1; |
152 | | #elif defined(__DMC__) && defined(_M_IX86) |
153 | | return 1; |
154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ |
155 | | return 1; |
156 | | #else |
157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ |
158 | | return one.c[0]; |
159 | | #endif |
160 | 4.03G | } sequence_producer.c:MEM_isLittleEndian Line | Count | Source | 141 | 16.9M | { | 142 | 16.9M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 16.9M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 16.9M | } |
Unexecuted instantiation: util.c:MEM_isLittleEndian entropy_common.c:MEM_isLittleEndian Line | Count | Source | 141 | 8.93M | { | 142 | 8.93M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 8.93M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 8.93M | } |
fse_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 5.77M | { | 142 | 5.77M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 5.77M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 5.77M | } |
Unexecuted instantiation: zstd_common.c:MEM_isLittleEndian fse_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 25.4M | { | 142 | 25.4M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 25.4M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 25.4M | } |
Unexecuted instantiation: hist.c:MEM_isLittleEndian huf_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 53.8M | { | 142 | 53.8M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 53.8M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 53.8M | } |
zstd_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 544k | { | 142 | 544k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 544k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 544k | } |
zstd_compress_literals.c:MEM_isLittleEndian Line | Count | Source | 141 | 328k | { | 142 | 328k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 328k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 328k | } |
zstd_compress_sequences.c:MEM_isLittleEndian Line | Count | Source | 141 | 53.0M | { | 142 | 53.0M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 53.0M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 53.0M | } |
zstd_compress_superblock.c:MEM_isLittleEndian Line | Count | Source | 141 | 418k | { | 142 | 418k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 418k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 418k | } |
zstd_double_fast.c:MEM_isLittleEndian Line | Count | Source | 141 | 342M | { | 142 | 342M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 342M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 342M | } |
zstd_fast.c:MEM_isLittleEndian Line | Count | Source | 141 | 249M | { | 142 | 249M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 249M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 249M | } |
zstd_lazy.c:MEM_isLittleEndian Line | Count | Source | 141 | 683M | { | 142 | 683M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 683M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 683M | } |
zstd_ldm.c:MEM_isLittleEndian Line | Count | Source | 141 | 10.1M | { | 142 | 10.1M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 10.1M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 10.1M | } |
zstd_opt.c:MEM_isLittleEndian Line | Count | Source | 141 | 1.04G | { | 142 | 1.04G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 1.04G | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 1.04G | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_isLittleEndian Unexecuted instantiation: zstdmt_compress.c:MEM_isLittleEndian huf_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 21.0M | { | 142 | 21.0M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 21.0M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 21.0M | } |
zstd_ddict.c:MEM_isLittleEndian Line | Count | Source | 141 | 37.5k | { | 142 | 37.5k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 37.5k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 37.5k | } |
zstd_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 176k | { | 142 | 176k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 176k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 176k | } |
zstd_decompress_block.c:MEM_isLittleEndian Line | Count | Source | 141 | 20.3M | { | 142 | 20.3M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 20.3M | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 20.3M | } |
Unexecuted instantiation: cover.c:MEM_isLittleEndian fastcover.c:MEM_isLittleEndian Line | Count | Source | 141 | 1.50G | { | 142 | 1.50G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 1.50G | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 1.50G | } |
zdict.c:MEM_isLittleEndian Line | Count | Source | 141 | 135k | { | 142 | 135k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 135k | return 1; | 144 | | #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) | 145 | | return 0; | 146 | | #elif defined(__clang__) && __LITTLE_ENDIAN__ | 147 | | return 1; | 148 | | #elif defined(__clang__) && __BIG_ENDIAN__ | 149 | | return 0; | 150 | | #elif defined(_MSC_VER) && (_M_X64 || _M_IX86) | 151 | | return 1; | 152 | | #elif defined(__DMC__) && defined(_M_IX86) | 153 | | return 1; | 154 | | #elif defined(__IAR_SYSTEMS_ICC__) && __LITTLE_ENDIAN__ | 155 | | return 1; | 156 | | #else | 157 | | const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ | 158 | | return one.c[0]; | 159 | | #endif | 160 | 135k | } |
Unexecuted instantiation: zstd_v05.c:MEM_isLittleEndian |
161 | | |
162 | | #if defined(MEM_FORCE_MEMORY_ACCESS) && (MEM_FORCE_MEMORY_ACCESS==2) |
163 | | |
164 | | /* violates C standard, by lying on structure alignment. |
165 | | Only use if no other choice to achieve best performance on target platform */ |
166 | | MEM_STATIC U16 MEM_read16(const void* memPtr) { return *(const U16*) memPtr; } |
167 | | MEM_STATIC U32 MEM_read32(const void* memPtr) { return *(const U32*) memPtr; } |
168 | | MEM_STATIC U64 MEM_read64(const void* memPtr) { return *(const U64*) memPtr; } |
169 | | MEM_STATIC size_t MEM_readST(const void* memPtr) { return *(const size_t*) memPtr; } |
170 | | |
171 | | MEM_STATIC void MEM_write16(void* memPtr, U16 value) { *(U16*)memPtr = value; } |
172 | | MEM_STATIC void MEM_write32(void* memPtr, U32 value) { *(U32*)memPtr = value; } |
173 | | MEM_STATIC void MEM_write64(void* memPtr, U64 value) { *(U64*)memPtr = value; } |
174 | | |
175 | | #elif defined(MEM_FORCE_MEMORY_ACCESS) && (MEM_FORCE_MEMORY_ACCESS==1) |
176 | | |
177 | | typedef __attribute__((aligned(1))) U16 unalign16; |
178 | | typedef __attribute__((aligned(1))) U32 unalign32; |
179 | | typedef __attribute__((aligned(1))) U64 unalign64; |
180 | | typedef __attribute__((aligned(1))) size_t unalignArch; |
181 | | |
182 | | MEM_STATIC U16 MEM_read16(const void* ptr) { return *(const unalign16*)ptr; } |
183 | | MEM_STATIC U32 MEM_read32(const void* ptr) { return *(const unalign32*)ptr; } |
184 | | MEM_STATIC U64 MEM_read64(const void* ptr) { return *(const unalign64*)ptr; } |
185 | | MEM_STATIC size_t MEM_readST(const void* ptr) { return *(const unalignArch*)ptr; } |
186 | | |
187 | | MEM_STATIC void MEM_write16(void* memPtr, U16 value) { *(unalign16*)memPtr = value; } |
188 | | MEM_STATIC void MEM_write32(void* memPtr, U32 value) { *(unalign32*)memPtr = value; } |
189 | | MEM_STATIC void MEM_write64(void* memPtr, U64 value) { *(unalign64*)memPtr = value; } |
190 | | |
191 | | #else |
192 | | |
193 | | /* default method, safe and standard. |
194 | | can sometimes prove slower */ |
195 | | |
196 | | MEM_STATIC U16 MEM_read16(const void* memPtr) |
197 | 41.5M | { |
198 | 41.5M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
199 | 41.5M | } sequence_producer.c:MEM_read16 Line | Count | Source | 197 | 30.3k | { | 198 | 30.3k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 30.3k | } |
Unexecuted instantiation: util.c:MEM_read16 Unexecuted instantiation: entropy_common.c:MEM_read16 Unexecuted instantiation: fse_decompress.c:MEM_read16 Unexecuted instantiation: zstd_common.c:MEM_read16 fse_compress.c:MEM_read16 Line | Count | Source | 197 | 866k | { | 198 | 866k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 866k | } |
Unexecuted instantiation: hist.c:MEM_read16 Unexecuted instantiation: huf_compress.c:MEM_read16 zstd_compress.c:MEM_read16 Line | Count | Source | 197 | 4.50k | { | 198 | 4.50k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 4.50k | } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_read16 zstd_compress_sequences.c:MEM_read16 Line | Count | Source | 197 | 4.89M | { | 198 | 4.89M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 4.89M | } |
Unexecuted instantiation: zstd_compress_superblock.c:MEM_read16 zstd_double_fast.c:MEM_read16 Line | Count | Source | 197 | 325k | { | 198 | 325k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 325k | } |
Line | Count | Source | 197 | 727k | { | 198 | 727k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 727k | } |
Line | Count | Source | 197 | 1.27M | { | 198 | 1.27M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 1.27M | } |
Line | Count | Source | 197 | 39.7k | { | 198 | 39.7k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 39.7k | } |
Line | Count | Source | 197 | 939k | { | 198 | 939k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 939k | } |
zstd_preSplit.c:MEM_read16 Line | Count | Source | 197 | 31.9M | { | 198 | 31.9M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 31.9M | } |
Unexecuted instantiation: zstdmt_compress.c:MEM_read16 huf_decompress.c:MEM_read16 Line | Count | Source | 197 | 131k | { | 198 | 131k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 131k | } |
Unexecuted instantiation: zstd_ddict.c:MEM_read16 zstd_decompress.c:MEM_read16 Line | Count | Source | 197 | 7.45k | { | 198 | 7.45k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 7.45k | } |
zstd_decompress_block.c:MEM_read16 Line | Count | Source | 197 | 325k | { | 198 | 325k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 325k | } |
Unexecuted instantiation: cover.c:MEM_read16 Unexecuted instantiation: fastcover.c:MEM_read16 Unexecuted instantiation: zdict.c:MEM_read16 Unexecuted instantiation: zstd_v05.c:MEM_read16 |
200 | | |
201 | | MEM_STATIC U32 MEM_read32(const void* memPtr) |
202 | 2.86G | { |
203 | 2.86G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
204 | 2.86G | } sequence_producer.c:MEM_read32 Line | Count | Source | 202 | 11.5M | { | 203 | 11.5M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 11.5M | } |
Unexecuted instantiation: util.c:MEM_read32 entropy_common.c:MEM_read32 Line | Count | Source | 202 | 8.93M | { | 203 | 8.93M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 8.93M | } |
Unexecuted instantiation: fse_decompress.c:MEM_read32 Unexecuted instantiation: zstd_common.c:MEM_read32 Unexecuted instantiation: fse_compress.c:MEM_read32 Line | Count | Source | 202 | 116M | { | 203 | 116M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 116M | } |
Unexecuted instantiation: huf_compress.c:MEM_read32 zstd_compress.c:MEM_read32 Line | Count | Source | 202 | 158k | { | 203 | 158k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 158k | } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_read32 Unexecuted instantiation: zstd_compress_sequences.c:MEM_read32 Unexecuted instantiation: zstd_compress_superblock.c:MEM_read32 zstd_double_fast.c:MEM_read32 Line | Count | Source | 202 | 264M | { | 203 | 264M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 264M | } |
Line | Count | Source | 202 | 271M | { | 203 | 271M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 271M | } |
Line | Count | Source | 202 | 1.16G | { | 203 | 1.16G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 1.16G | } |
Line | Count | Source | 202 | 45.9k | { | 203 | 45.9k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 45.9k | } |
Line | Count | Source | 202 | 1.03G | { | 203 | 1.03G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 1.03G | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_read32 Unexecuted instantiation: zstdmt_compress.c:MEM_read32 Unexecuted instantiation: huf_decompress.c:MEM_read32 Line | Count | Source | 202 | 37.5k | { | 203 | 37.5k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 37.5k | } |
zstd_decompress.c:MEM_read32 Line | Count | Source | 202 | 169k | { | 203 | 169k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 169k | } |
zstd_decompress_block.c:MEM_read32 Line | Count | Source | 202 | 125k | { | 203 | 125k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 125k | } |
Unexecuted instantiation: cover.c:MEM_read32 Unexecuted instantiation: fastcover.c:MEM_read32 Unexecuted instantiation: zdict.c:MEM_read32 Unexecuted instantiation: zstd_v05.c:MEM_read32 |
205 | | |
206 | | MEM_STATIC U64 MEM_read64(const void* memPtr) |
207 | 2.55G | { |
208 | 2.55G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
209 | 2.55G | } Unexecuted instantiation: sequence_producer.c:MEM_read64 Unexecuted instantiation: util.c:MEM_read64 Unexecuted instantiation: entropy_common.c:MEM_read64 fse_decompress.c:MEM_read64 Line | Count | Source | 207 | 5.77M | { | 208 | 5.77M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 5.77M | } |
Unexecuted instantiation: zstd_common.c:MEM_read64 Unexecuted instantiation: fse_compress.c:MEM_read64 Unexecuted instantiation: hist.c:MEM_read64 Unexecuted instantiation: huf_compress.c:MEM_read64 Unexecuted instantiation: zstd_compress.c:MEM_read64 Unexecuted instantiation: zstd_compress_literals.c:MEM_read64 Unexecuted instantiation: zstd_compress_sequences.c:MEM_read64 Unexecuted instantiation: zstd_compress_superblock.c:MEM_read64 zstd_double_fast.c:MEM_read64 Line | Count | Source | 207 | 387M | { | 208 | 387M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 387M | } |
Line | Count | Source | 207 | 220M | { | 208 | 220M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 220M | } |
Line | Count | Source | 207 | 349M | { | 208 | 349M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 349M | } |
Unexecuted instantiation: zstd_ldm.c:MEM_read64 Line | Count | Source | 207 | 66.6M | { | 208 | 66.6M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 66.6M | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_read64 Unexecuted instantiation: zstdmt_compress.c:MEM_read64 huf_decompress.c:MEM_read64 Line | Count | Source | 207 | 6.24M | { | 208 | 6.24M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 6.24M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_read64 Unexecuted instantiation: zstd_decompress.c:MEM_read64 zstd_decompress_block.c:MEM_read64 Line | Count | Source | 207 | 19.9M | { | 208 | 19.9M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 19.9M | } |
Unexecuted instantiation: cover.c:MEM_read64 Line | Count | Source | 207 | 1.50G | { | 208 | 1.50G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 1.50G | } |
Unexecuted instantiation: zdict.c:MEM_read64 Unexecuted instantiation: zstd_v05.c:MEM_read64 |
210 | | |
211 | | MEM_STATIC size_t MEM_readST(const void* memPtr) |
212 | 2.58G | { |
213 | 2.58G | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
214 | 2.58G | } sequence_producer.c:MEM_readST Line | Count | Source | 212 | 13.3M | { | 213 | 13.3M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 13.3M | } |
Unexecuted instantiation: util.c:MEM_readST Unexecuted instantiation: entropy_common.c:MEM_readST Unexecuted instantiation: fse_decompress.c:MEM_readST Unexecuted instantiation: zstd_common.c:MEM_readST Unexecuted instantiation: fse_compress.c:MEM_readST Unexecuted instantiation: hist.c:MEM_readST Unexecuted instantiation: huf_compress.c:MEM_readST zstd_compress.c:MEM_readST Line | Count | Source | 212 | 8.99M | { | 213 | 8.99M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 8.99M | } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_readST Unexecuted instantiation: zstd_compress_sequences.c:MEM_readST Unexecuted instantiation: zstd_compress_superblock.c:MEM_readST zstd_double_fast.c:MEM_readST Line | Count | Source | 212 | 30.7M | { | 213 | 30.7M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 30.7M | } |
Line | Count | Source | 212 | 113M | { | 213 | 113M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 113M | } |
Line | Count | Source | 212 | 716M | { | 213 | 716M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 716M | } |
Line | Count | Source | 212 | 35.8M | { | 213 | 35.8M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 35.8M | } |
Line | Count | Source | 212 | 1.66G | { | 213 | 1.66G | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 1.66G | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_readST Unexecuted instantiation: zstdmt_compress.c:MEM_readST Unexecuted instantiation: huf_decompress.c:MEM_readST Unexecuted instantiation: zstd_ddict.c:MEM_readST Unexecuted instantiation: zstd_decompress.c:MEM_readST Unexecuted instantiation: zstd_decompress_block.c:MEM_readST Unexecuted instantiation: cover.c:MEM_readST Unexecuted instantiation: fastcover.c:MEM_readST Unexecuted instantiation: zdict.c:MEM_readST Unexecuted instantiation: zstd_v05.c:MEM_readST |
215 | | |
216 | | MEM_STATIC void MEM_write16(void* memPtr, U16 value) |
217 | 1.33M | { |
218 | 1.33M | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
219 | 1.33M | } Unexecuted instantiation: sequence_producer.c:MEM_write16 Unexecuted instantiation: util.c:MEM_write16 Unexecuted instantiation: entropy_common.c:MEM_write16 Unexecuted instantiation: fse_decompress.c:MEM_write16 Unexecuted instantiation: zstd_common.c:MEM_write16 Unexecuted instantiation: fse_compress.c:MEM_write16 Unexecuted instantiation: hist.c:MEM_write16 huf_compress.c:MEM_write16 Line | Count | Source | 217 | 347k | { | 218 | 347k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 347k | } |
zstd_compress.c:MEM_write16 Line | Count | Source | 217 | 307k | { | 218 | 307k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 307k | } |
zstd_compress_literals.c:MEM_write16 Line | Count | Source | 217 | 293k | { | 218 | 293k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 293k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_write16 zstd_compress_superblock.c:MEM_write16 Line | Count | Source | 217 | 391k | { | 218 | 391k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 391k | } |
Unexecuted instantiation: zstd_double_fast.c:MEM_write16 Unexecuted instantiation: zstd_fast.c:MEM_write16 Unexecuted instantiation: zstd_lazy.c:MEM_write16 Unexecuted instantiation: zstd_ldm.c:MEM_write16 Unexecuted instantiation: zstd_opt.c:MEM_write16 Unexecuted instantiation: zstd_preSplit.c:MEM_write16 Unexecuted instantiation: zstdmt_compress.c:MEM_write16 Unexecuted instantiation: huf_decompress.c:MEM_write16 Unexecuted instantiation: zstd_ddict.c:MEM_write16 Unexecuted instantiation: zstd_decompress.c:MEM_write16 Unexecuted instantiation: zstd_decompress_block.c:MEM_write16 Unexecuted instantiation: cover.c:MEM_write16 Unexecuted instantiation: fastcover.c:MEM_write16 Unexecuted instantiation: zdict.c:MEM_write16 Unexecuted instantiation: zstd_v05.c:MEM_write16 |
220 | | |
221 | | MEM_STATIC void MEM_write32(void* memPtr, U32 value) |
222 | 277k | { |
223 | 277k | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
224 | 277k | } Unexecuted instantiation: sequence_producer.c:MEM_write32 Unexecuted instantiation: util.c:MEM_write32 Unexecuted instantiation: entropy_common.c:MEM_write32 Unexecuted instantiation: fse_decompress.c:MEM_write32 Unexecuted instantiation: zstd_common.c:MEM_write32 Unexecuted instantiation: fse_compress.c:MEM_write32 Unexecuted instantiation: hist.c:MEM_write32 Unexecuted instantiation: huf_compress.c:MEM_write32 zstd_compress.c:MEM_write32 Line | Count | Source | 222 | 79.9k | { | 223 | 79.9k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 79.9k | } |
zstd_compress_literals.c:MEM_write32 Line | Count | Source | 222 | 35.5k | { | 223 | 35.5k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 35.5k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_write32 zstd_compress_superblock.c:MEM_write32 Line | Count | Source | 222 | 26.9k | { | 223 | 26.9k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 26.9k | } |
Unexecuted instantiation: zstd_double_fast.c:MEM_write32 Unexecuted instantiation: zstd_fast.c:MEM_write32 Unexecuted instantiation: zstd_lazy.c:MEM_write32 Unexecuted instantiation: zstd_ldm.c:MEM_write32 Unexecuted instantiation: zstd_opt.c:MEM_write32 Unexecuted instantiation: zstd_preSplit.c:MEM_write32 Unexecuted instantiation: zstdmt_compress.c:MEM_write32 Unexecuted instantiation: huf_decompress.c:MEM_write32 Unexecuted instantiation: zstd_ddict.c:MEM_write32 Unexecuted instantiation: zstd_decompress.c:MEM_write32 Unexecuted instantiation: zstd_decompress_block.c:MEM_write32 Unexecuted instantiation: cover.c:MEM_write32 Unexecuted instantiation: fastcover.c:MEM_write32 Line | Count | Source | 222 | 135k | { | 223 | 135k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 135k | } |
Unexecuted instantiation: zstd_v05.c:MEM_write32 |
225 | | |
226 | | MEM_STATIC void MEM_write64(void* memPtr, U64 value) |
227 | 205M | { |
228 | 205M | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
229 | 205M | } Unexecuted instantiation: sequence_producer.c:MEM_write64 Unexecuted instantiation: util.c:MEM_write64 Unexecuted instantiation: entropy_common.c:MEM_write64 fse_decompress.c:MEM_write64 Line | Count | Source | 227 | 1.23M | { | 228 | 1.23M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 1.23M | } |
Unexecuted instantiation: zstd_common.c:MEM_write64 fse_compress.c:MEM_write64 Line | Count | Source | 227 | 46.4M | { | 228 | 46.4M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 46.4M | } |
Unexecuted instantiation: hist.c:MEM_write64 huf_compress.c:MEM_write64 Line | Count | Source | 227 | 53.5M | { | 228 | 53.5M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 53.5M | } |
Unexecuted instantiation: zstd_compress.c:MEM_write64 Unexecuted instantiation: zstd_compress_literals.c:MEM_write64 zstd_compress_sequences.c:MEM_write64 Line | Count | Source | 227 | 53.0M | { | 228 | 53.0M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 53.0M | } |
Unexecuted instantiation: zstd_compress_superblock.c:MEM_write64 Unexecuted instantiation: zstd_double_fast.c:MEM_write64 Unexecuted instantiation: zstd_fast.c:MEM_write64 Unexecuted instantiation: zstd_lazy.c:MEM_write64 Unexecuted instantiation: zstd_ldm.c:MEM_write64 Unexecuted instantiation: zstd_opt.c:MEM_write64 Unexecuted instantiation: zstd_preSplit.c:MEM_write64 Unexecuted instantiation: zstdmt_compress.c:MEM_write64 huf_decompress.c:MEM_write64 Line | Count | Source | 227 | 43.4M | { | 228 | 43.4M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 43.4M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_write64 Unexecuted instantiation: zstd_decompress.c:MEM_write64 zstd_decompress_block.c:MEM_write64 Line | Count | Source | 227 | 7.78M | { | 228 | 7.78M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 7.78M | } |
Unexecuted instantiation: cover.c:MEM_write64 Unexecuted instantiation: fastcover.c:MEM_write64 Unexecuted instantiation: zdict.c:MEM_write64 Unexecuted instantiation: zstd_v05.c:MEM_write64 |
230 | | |
231 | | #endif /* MEM_FORCE_MEMORY_ACCESS */ |
232 | | |
233 | | MEM_STATIC U32 MEM_swap32_fallback(U32 in) |
234 | 0 | { |
235 | 0 | return ((in << 24) & 0xff000000 ) | |
236 | 0 | ((in << 8) & 0x00ff0000 ) | |
237 | 0 | ((in >> 8) & 0x0000ff00 ) | |
238 | 0 | ((in >> 24) & 0x000000ff ); |
239 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_swap32_fallback Unexecuted instantiation: util.c:MEM_swap32_fallback Unexecuted instantiation: entropy_common.c:MEM_swap32_fallback Unexecuted instantiation: fse_decompress.c:MEM_swap32_fallback Unexecuted instantiation: zstd_common.c:MEM_swap32_fallback Unexecuted instantiation: fse_compress.c:MEM_swap32_fallback Unexecuted instantiation: hist.c:MEM_swap32_fallback Unexecuted instantiation: huf_compress.c:MEM_swap32_fallback Unexecuted instantiation: zstd_compress.c:MEM_swap32_fallback Unexecuted instantiation: zstd_compress_literals.c:MEM_swap32_fallback Unexecuted instantiation: zstd_compress_sequences.c:MEM_swap32_fallback Unexecuted instantiation: zstd_compress_superblock.c:MEM_swap32_fallback Unexecuted instantiation: zstd_double_fast.c:MEM_swap32_fallback Unexecuted instantiation: zstd_fast.c:MEM_swap32_fallback Unexecuted instantiation: zstd_lazy.c:MEM_swap32_fallback Unexecuted instantiation: zstd_ldm.c:MEM_swap32_fallback Unexecuted instantiation: zstd_opt.c:MEM_swap32_fallback Unexecuted instantiation: zstd_preSplit.c:MEM_swap32_fallback Unexecuted instantiation: zstdmt_compress.c:MEM_swap32_fallback Unexecuted instantiation: huf_decompress.c:MEM_swap32_fallback Unexecuted instantiation: zstd_ddict.c:MEM_swap32_fallback Unexecuted instantiation: zstd_decompress.c:MEM_swap32_fallback Unexecuted instantiation: zstd_decompress_block.c:MEM_swap32_fallback Unexecuted instantiation: cover.c:MEM_swap32_fallback Unexecuted instantiation: fastcover.c:MEM_swap32_fallback Unexecuted instantiation: zdict.c:MEM_swap32_fallback Unexecuted instantiation: zstd_v05.c:MEM_swap32_fallback |
240 | | |
241 | | MEM_STATIC U32 MEM_swap32(U32 in) |
242 | 0 | { |
243 | | #if defined(_MSC_VER) /* Visual Studio */ |
244 | | return _byteswap_ulong(in); |
245 | | #elif (defined (__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)) \ |
246 | | || (defined(__clang__) && __has_builtin(__builtin_bswap32)) |
247 | | return __builtin_bswap32(in); |
248 | | #elif defined(__ICCARM__) |
249 | | return __REV(in); |
250 | | #else |
251 | | return MEM_swap32_fallback(in); |
252 | | #endif |
253 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_swap32 Unexecuted instantiation: util.c:MEM_swap32 Unexecuted instantiation: entropy_common.c:MEM_swap32 Unexecuted instantiation: fse_decompress.c:MEM_swap32 Unexecuted instantiation: zstd_common.c:MEM_swap32 Unexecuted instantiation: fse_compress.c:MEM_swap32 Unexecuted instantiation: hist.c:MEM_swap32 Unexecuted instantiation: huf_compress.c:MEM_swap32 Unexecuted instantiation: zstd_compress.c:MEM_swap32 Unexecuted instantiation: zstd_compress_literals.c:MEM_swap32 Unexecuted instantiation: zstd_compress_sequences.c:MEM_swap32 Unexecuted instantiation: zstd_compress_superblock.c:MEM_swap32 Unexecuted instantiation: zstd_double_fast.c:MEM_swap32 Unexecuted instantiation: zstd_fast.c:MEM_swap32 Unexecuted instantiation: zstd_lazy.c:MEM_swap32 Unexecuted instantiation: zstd_ldm.c:MEM_swap32 Unexecuted instantiation: zstd_opt.c:MEM_swap32 Unexecuted instantiation: zstd_preSplit.c:MEM_swap32 Unexecuted instantiation: zstdmt_compress.c:MEM_swap32 Unexecuted instantiation: huf_decompress.c:MEM_swap32 Unexecuted instantiation: zstd_ddict.c:MEM_swap32 Unexecuted instantiation: zstd_decompress.c:MEM_swap32 Unexecuted instantiation: zstd_decompress_block.c:MEM_swap32 Unexecuted instantiation: cover.c:MEM_swap32 Unexecuted instantiation: fastcover.c:MEM_swap32 Unexecuted instantiation: zdict.c:MEM_swap32 Unexecuted instantiation: zstd_v05.c:MEM_swap32 |
254 | | |
255 | | MEM_STATIC U64 MEM_swap64_fallback(U64 in) |
256 | 0 | { |
257 | 0 | return ((in << 56) & 0xff00000000000000ULL) | |
258 | 0 | ((in << 40) & 0x00ff000000000000ULL) | |
259 | 0 | ((in << 24) & 0x0000ff0000000000ULL) | |
260 | 0 | ((in << 8) & 0x000000ff00000000ULL) | |
261 | 0 | ((in >> 8) & 0x00000000ff000000ULL) | |
262 | 0 | ((in >> 24) & 0x0000000000ff0000ULL) | |
263 | 0 | ((in >> 40) & 0x000000000000ff00ULL) | |
264 | 0 | ((in >> 56) & 0x00000000000000ffULL); |
265 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_swap64_fallback Unexecuted instantiation: util.c:MEM_swap64_fallback Unexecuted instantiation: entropy_common.c:MEM_swap64_fallback Unexecuted instantiation: fse_decompress.c:MEM_swap64_fallback Unexecuted instantiation: zstd_common.c:MEM_swap64_fallback Unexecuted instantiation: fse_compress.c:MEM_swap64_fallback Unexecuted instantiation: hist.c:MEM_swap64_fallback Unexecuted instantiation: huf_compress.c:MEM_swap64_fallback Unexecuted instantiation: zstd_compress.c:MEM_swap64_fallback Unexecuted instantiation: zstd_compress_literals.c:MEM_swap64_fallback Unexecuted instantiation: zstd_compress_sequences.c:MEM_swap64_fallback Unexecuted instantiation: zstd_compress_superblock.c:MEM_swap64_fallback Unexecuted instantiation: zstd_double_fast.c:MEM_swap64_fallback Unexecuted instantiation: zstd_fast.c:MEM_swap64_fallback Unexecuted instantiation: zstd_lazy.c:MEM_swap64_fallback Unexecuted instantiation: zstd_ldm.c:MEM_swap64_fallback Unexecuted instantiation: zstd_opt.c:MEM_swap64_fallback Unexecuted instantiation: zstd_preSplit.c:MEM_swap64_fallback Unexecuted instantiation: zstdmt_compress.c:MEM_swap64_fallback Unexecuted instantiation: huf_decompress.c:MEM_swap64_fallback Unexecuted instantiation: zstd_ddict.c:MEM_swap64_fallback Unexecuted instantiation: zstd_decompress.c:MEM_swap64_fallback Unexecuted instantiation: zstd_decompress_block.c:MEM_swap64_fallback Unexecuted instantiation: cover.c:MEM_swap64_fallback Unexecuted instantiation: fastcover.c:MEM_swap64_fallback Unexecuted instantiation: zdict.c:MEM_swap64_fallback Unexecuted instantiation: zstd_v05.c:MEM_swap64_fallback |
266 | | |
267 | | MEM_STATIC U64 MEM_swap64(U64 in) |
268 | 0 | { |
269 | | #if defined(_MSC_VER) /* Visual Studio */ |
270 | | return _byteswap_uint64(in); |
271 | | #elif (defined (__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)) \ |
272 | | || (defined(__clang__) && __has_builtin(__builtin_bswap64)) |
273 | | return __builtin_bswap64(in); |
274 | | #else |
275 | | return MEM_swap64_fallback(in); |
276 | | #endif |
277 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_swap64 Unexecuted instantiation: util.c:MEM_swap64 Unexecuted instantiation: entropy_common.c:MEM_swap64 Unexecuted instantiation: fse_decompress.c:MEM_swap64 Unexecuted instantiation: zstd_common.c:MEM_swap64 Unexecuted instantiation: fse_compress.c:MEM_swap64 Unexecuted instantiation: hist.c:MEM_swap64 Unexecuted instantiation: huf_compress.c:MEM_swap64 Unexecuted instantiation: zstd_compress.c:MEM_swap64 Unexecuted instantiation: zstd_compress_literals.c:MEM_swap64 Unexecuted instantiation: zstd_compress_sequences.c:MEM_swap64 Unexecuted instantiation: zstd_compress_superblock.c:MEM_swap64 Unexecuted instantiation: zstd_double_fast.c:MEM_swap64 Unexecuted instantiation: zstd_fast.c:MEM_swap64 Unexecuted instantiation: zstd_lazy.c:MEM_swap64 Unexecuted instantiation: zstd_ldm.c:MEM_swap64 Unexecuted instantiation: zstd_opt.c:MEM_swap64 Unexecuted instantiation: zstd_preSplit.c:MEM_swap64 Unexecuted instantiation: zstdmt_compress.c:MEM_swap64 Unexecuted instantiation: huf_decompress.c:MEM_swap64 Unexecuted instantiation: zstd_ddict.c:MEM_swap64 Unexecuted instantiation: zstd_decompress.c:MEM_swap64 Unexecuted instantiation: zstd_decompress_block.c:MEM_swap64 Unexecuted instantiation: cover.c:MEM_swap64 Unexecuted instantiation: fastcover.c:MEM_swap64 Unexecuted instantiation: zdict.c:MEM_swap64 Unexecuted instantiation: zstd_v05.c:MEM_swap64 |
278 | | |
279 | | MEM_STATIC size_t MEM_swapST(size_t in) |
280 | 0 | { |
281 | 0 | if (MEM_32bits()) |
282 | 0 | return (size_t)MEM_swap32((U32)in); |
283 | 0 | else |
284 | 0 | return (size_t)MEM_swap64((U64)in); |
285 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_swapST Unexecuted instantiation: util.c:MEM_swapST Unexecuted instantiation: entropy_common.c:MEM_swapST Unexecuted instantiation: fse_decompress.c:MEM_swapST Unexecuted instantiation: zstd_common.c:MEM_swapST Unexecuted instantiation: fse_compress.c:MEM_swapST Unexecuted instantiation: hist.c:MEM_swapST Unexecuted instantiation: huf_compress.c:MEM_swapST Unexecuted instantiation: zstd_compress.c:MEM_swapST Unexecuted instantiation: zstd_compress_literals.c:MEM_swapST Unexecuted instantiation: zstd_compress_sequences.c:MEM_swapST Unexecuted instantiation: zstd_compress_superblock.c:MEM_swapST Unexecuted instantiation: zstd_double_fast.c:MEM_swapST Unexecuted instantiation: zstd_fast.c:MEM_swapST Unexecuted instantiation: zstd_lazy.c:MEM_swapST Unexecuted instantiation: zstd_ldm.c:MEM_swapST Unexecuted instantiation: zstd_opt.c:MEM_swapST Unexecuted instantiation: zstd_preSplit.c:MEM_swapST Unexecuted instantiation: zstdmt_compress.c:MEM_swapST Unexecuted instantiation: huf_decompress.c:MEM_swapST Unexecuted instantiation: zstd_ddict.c:MEM_swapST Unexecuted instantiation: zstd_decompress.c:MEM_swapST Unexecuted instantiation: zstd_decompress_block.c:MEM_swapST Unexecuted instantiation: cover.c:MEM_swapST Unexecuted instantiation: fastcover.c:MEM_swapST Unexecuted instantiation: zdict.c:MEM_swapST Unexecuted instantiation: zstd_v05.c:MEM_swapST |
286 | | |
287 | | /*=== Little endian r/w ===*/ |
288 | | |
289 | | MEM_STATIC U16 MEM_readLE16(const void* memPtr) |
290 | 464k | { |
291 | 464k | if (MEM_isLittleEndian()) |
292 | 464k | return MEM_read16(memPtr); |
293 | 0 | else { |
294 | 0 | const BYTE* p = (const BYTE*)memPtr; |
295 | 0 | return (U16)(p[0] + (p[1]<<8)); |
296 | 0 | } |
297 | 464k | } Unexecuted instantiation: sequence_producer.c:MEM_readLE16 Unexecuted instantiation: util.c:MEM_readLE16 Unexecuted instantiation: entropy_common.c:MEM_readLE16 Unexecuted instantiation: fse_decompress.c:MEM_readLE16 Unexecuted instantiation: zstd_common.c:MEM_readLE16 Unexecuted instantiation: fse_compress.c:MEM_readLE16 Unexecuted instantiation: hist.c:MEM_readLE16 Unexecuted instantiation: huf_compress.c:MEM_readLE16 Unexecuted instantiation: zstd_compress.c:MEM_readLE16 Unexecuted instantiation: zstd_compress_literals.c:MEM_readLE16 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readLE16 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readLE16 Unexecuted instantiation: zstd_double_fast.c:MEM_readLE16 Unexecuted instantiation: zstd_fast.c:MEM_readLE16 Unexecuted instantiation: zstd_lazy.c:MEM_readLE16 Unexecuted instantiation: zstd_ldm.c:MEM_readLE16 Unexecuted instantiation: zstd_opt.c:MEM_readLE16 Unexecuted instantiation: zstd_preSplit.c:MEM_readLE16 Unexecuted instantiation: zstdmt_compress.c:MEM_readLE16 huf_decompress.c:MEM_readLE16 Line | Count | Source | 290 | 131k | { | 291 | 131k | if (MEM_isLittleEndian()) | 292 | 131k | return MEM_read16(memPtr); | 293 | 0 | else { | 294 | 0 | const BYTE* p = (const BYTE*)memPtr; | 295 | 0 | return (U16)(p[0] + (p[1]<<8)); | 296 | 0 | } | 297 | 131k | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLE16 zstd_decompress.c:MEM_readLE16 Line | Count | Source | 290 | 7.45k | { | 291 | 7.45k | if (MEM_isLittleEndian()) | 292 | 7.45k | return MEM_read16(memPtr); | 293 | 0 | else { | 294 | 0 | const BYTE* p = (const BYTE*)memPtr; | 295 | 0 | return (U16)(p[0] + (p[1]<<8)); | 296 | 0 | } | 297 | 7.45k | } |
zstd_decompress_block.c:MEM_readLE16 Line | Count | Source | 290 | 325k | { | 291 | 325k | if (MEM_isLittleEndian()) | 292 | 325k | return MEM_read16(memPtr); | 293 | 0 | else { | 294 | 0 | const BYTE* p = (const BYTE*)memPtr; | 295 | 0 | return (U16)(p[0] + (p[1]<<8)); | 296 | 0 | } | 297 | 325k | } |
Unexecuted instantiation: cover.c:MEM_readLE16 Unexecuted instantiation: fastcover.c:MEM_readLE16 Unexecuted instantiation: zdict.c:MEM_readLE16 Unexecuted instantiation: zstd_v05.c:MEM_readLE16 |
298 | | |
299 | | MEM_STATIC void MEM_writeLE16(void* memPtr, U16 val) |
300 | 1.33M | { |
301 | 1.33M | if (MEM_isLittleEndian()) { |
302 | 1.33M | MEM_write16(memPtr, val); |
303 | 1.33M | } else { |
304 | 0 | BYTE* p = (BYTE*)memPtr; |
305 | 0 | p[0] = (BYTE)val; |
306 | 0 | p[1] = (BYTE)(val>>8); |
307 | 0 | } |
308 | 1.33M | } Unexecuted instantiation: sequence_producer.c:MEM_writeLE16 Unexecuted instantiation: util.c:MEM_writeLE16 Unexecuted instantiation: entropy_common.c:MEM_writeLE16 Unexecuted instantiation: fse_decompress.c:MEM_writeLE16 Unexecuted instantiation: zstd_common.c:MEM_writeLE16 Unexecuted instantiation: fse_compress.c:MEM_writeLE16 Unexecuted instantiation: hist.c:MEM_writeLE16 huf_compress.c:MEM_writeLE16 Line | Count | Source | 300 | 347k | { | 301 | 347k | if (MEM_isLittleEndian()) { | 302 | 347k | MEM_write16(memPtr, val); | 303 | 347k | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 347k | } |
zstd_compress.c:MEM_writeLE16 Line | Count | Source | 300 | 307k | { | 301 | 307k | if (MEM_isLittleEndian()) { | 302 | 307k | MEM_write16(memPtr, val); | 303 | 307k | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 307k | } |
zstd_compress_literals.c:MEM_writeLE16 Line | Count | Source | 300 | 293k | { | 301 | 293k | if (MEM_isLittleEndian()) { | 302 | 293k | MEM_write16(memPtr, val); | 303 | 293k | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 293k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE16 zstd_compress_superblock.c:MEM_writeLE16 Line | Count | Source | 300 | 391k | { | 301 | 391k | if (MEM_isLittleEndian()) { | 302 | 391k | MEM_write16(memPtr, val); | 303 | 391k | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 391k | } |
Unexecuted instantiation: zstd_double_fast.c:MEM_writeLE16 Unexecuted instantiation: zstd_fast.c:MEM_writeLE16 Unexecuted instantiation: zstd_lazy.c:MEM_writeLE16 Unexecuted instantiation: zstd_ldm.c:MEM_writeLE16 Unexecuted instantiation: zstd_opt.c:MEM_writeLE16 Unexecuted instantiation: zstd_preSplit.c:MEM_writeLE16 Unexecuted instantiation: zstdmt_compress.c:MEM_writeLE16 Unexecuted instantiation: huf_decompress.c:MEM_writeLE16 Unexecuted instantiation: zstd_ddict.c:MEM_writeLE16 Unexecuted instantiation: zstd_decompress.c:MEM_writeLE16 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLE16 Unexecuted instantiation: cover.c:MEM_writeLE16 Unexecuted instantiation: fastcover.c:MEM_writeLE16 Unexecuted instantiation: zdict.c:MEM_writeLE16 Unexecuted instantiation: zstd_v05.c:MEM_writeLE16 |
309 | | |
310 | | MEM_STATIC U32 MEM_readLE24(const void* memPtr) |
311 | 267k | { |
312 | 267k | return (U32)MEM_readLE16(memPtr) + ((U32)(((const BYTE*)memPtr)[2]) << 16); |
313 | 267k | } Unexecuted instantiation: sequence_producer.c:MEM_readLE24 Unexecuted instantiation: util.c:MEM_readLE24 Unexecuted instantiation: entropy_common.c:MEM_readLE24 Unexecuted instantiation: fse_decompress.c:MEM_readLE24 Unexecuted instantiation: zstd_common.c:MEM_readLE24 Unexecuted instantiation: fse_compress.c:MEM_readLE24 Unexecuted instantiation: hist.c:MEM_readLE24 Unexecuted instantiation: huf_compress.c:MEM_readLE24 Unexecuted instantiation: zstd_compress.c:MEM_readLE24 Unexecuted instantiation: zstd_compress_literals.c:MEM_readLE24 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readLE24 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readLE24 Unexecuted instantiation: zstd_double_fast.c:MEM_readLE24 Unexecuted instantiation: zstd_fast.c:MEM_readLE24 Unexecuted instantiation: zstd_lazy.c:MEM_readLE24 Unexecuted instantiation: zstd_ldm.c:MEM_readLE24 Unexecuted instantiation: zstd_opt.c:MEM_readLE24 Unexecuted instantiation: zstd_preSplit.c:MEM_readLE24 Unexecuted instantiation: zstdmt_compress.c:MEM_readLE24 Unexecuted instantiation: huf_decompress.c:MEM_readLE24 Unexecuted instantiation: zstd_ddict.c:MEM_readLE24 Unexecuted instantiation: zstd_decompress.c:MEM_readLE24 zstd_decompress_block.c:MEM_readLE24 Line | Count | Source | 311 | 267k | { | 312 | 267k | return (U32)MEM_readLE16(memPtr) + ((U32)(((const BYTE*)memPtr)[2]) << 16); | 313 | 267k | } |
Unexecuted instantiation: cover.c:MEM_readLE24 Unexecuted instantiation: fastcover.c:MEM_readLE24 Unexecuted instantiation: zdict.c:MEM_readLE24 Unexecuted instantiation: zstd_v05.c:MEM_readLE24 |
314 | | |
315 | | MEM_STATIC void MEM_writeLE24(void* memPtr, U32 val) |
316 | 798k | { |
317 | 798k | MEM_writeLE16(memPtr, (U16)val); |
318 | 798k | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); |
319 | 798k | } Unexecuted instantiation: sequence_producer.c:MEM_writeLE24 Unexecuted instantiation: util.c:MEM_writeLE24 Unexecuted instantiation: entropy_common.c:MEM_writeLE24 Unexecuted instantiation: fse_decompress.c:MEM_writeLE24 Unexecuted instantiation: zstd_common.c:MEM_writeLE24 Unexecuted instantiation: fse_compress.c:MEM_writeLE24 Unexecuted instantiation: hist.c:MEM_writeLE24 Unexecuted instantiation: huf_compress.c:MEM_writeLE24 zstd_compress.c:MEM_writeLE24 Line | Count | Source | 316 | 292k | { | 317 | 292k | MEM_writeLE16(memPtr, (U16)val); | 318 | 292k | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 292k | } |
zstd_compress_literals.c:MEM_writeLE24 Line | Count | Source | 316 | 114k | { | 317 | 114k | MEM_writeLE16(memPtr, (U16)val); | 318 | 114k | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 114k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE24 zstd_compress_superblock.c:MEM_writeLE24 Line | Count | Source | 316 | 391k | { | 317 | 391k | MEM_writeLE16(memPtr, (U16)val); | 318 | 391k | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 391k | } |
Unexecuted instantiation: zstd_double_fast.c:MEM_writeLE24 Unexecuted instantiation: zstd_fast.c:MEM_writeLE24 Unexecuted instantiation: zstd_lazy.c:MEM_writeLE24 Unexecuted instantiation: zstd_ldm.c:MEM_writeLE24 Unexecuted instantiation: zstd_opt.c:MEM_writeLE24 Unexecuted instantiation: zstd_preSplit.c:MEM_writeLE24 Unexecuted instantiation: zstdmt_compress.c:MEM_writeLE24 Unexecuted instantiation: huf_decompress.c:MEM_writeLE24 Unexecuted instantiation: zstd_ddict.c:MEM_writeLE24 Unexecuted instantiation: zstd_decompress.c:MEM_writeLE24 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLE24 Unexecuted instantiation: cover.c:MEM_writeLE24 Unexecuted instantiation: fastcover.c:MEM_writeLE24 Unexecuted instantiation: zdict.c:MEM_writeLE24 Unexecuted instantiation: zstd_v05.c:MEM_writeLE24 |
320 | | |
321 | | MEM_STATIC U32 MEM_readLE32(const void* memPtr) |
322 | 530M | { |
323 | 530M | if (MEM_isLittleEndian()) |
324 | 530M | return MEM_read32(memPtr); |
325 | 18.4E | else |
326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); |
327 | 530M | } sequence_producer.c:MEM_readLE32 Line | Count | Source | 322 | 11.5M | { | 323 | 11.5M | if (MEM_isLittleEndian()) | 324 | 11.5M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 11.5M | } |
Unexecuted instantiation: util.c:MEM_readLE32 entropy_common.c:MEM_readLE32 Line | Count | Source | 322 | 8.93M | { | 323 | 8.93M | if (MEM_isLittleEndian()) | 324 | 8.93M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 8.93M | } |
Unexecuted instantiation: fse_decompress.c:MEM_readLE32 Unexecuted instantiation: zstd_common.c:MEM_readLE32 Unexecuted instantiation: fse_compress.c:MEM_readLE32 Unexecuted instantiation: hist.c:MEM_readLE32 Unexecuted instantiation: huf_compress.c:MEM_readLE32 zstd_compress.c:MEM_readLE32 Line | Count | Source | 322 | 152k | { | 323 | 152k | if (MEM_isLittleEndian()) | 324 | 152k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 152k | } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_readLE32 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readLE32 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readLE32 zstd_double_fast.c:MEM_readLE32 Line | Count | Source | 322 | 44.3M | { | 323 | 44.3M | if (MEM_isLittleEndian()) | 324 | 44.3M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 44.3M | } |
Line | Count | Source | 322 | 16.3M | { | 323 | 16.3M | if (MEM_isLittleEndian()) | 324 | 16.3M | return MEM_read32(memPtr); | 325 | 18.4E | else | 326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); | 327 | 16.3M | } |
Line | Count | Source | 322 | 210M | { | 323 | 210M | if (MEM_isLittleEndian()) | 324 | 210M | return MEM_read32(memPtr); | 325 | 18.4E | else | 326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); | 327 | 210M | } |
Unexecuted instantiation: zstd_ldm.c:MEM_readLE32 Line | Count | Source | 322 | 238M | { | 323 | 238M | if (MEM_isLittleEndian()) | 324 | 238M | return MEM_read32(memPtr); | 325 | 18.4E | else | 326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); | 327 | 238M | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_readLE32 Unexecuted instantiation: zstdmt_compress.c:MEM_readLE32 Unexecuted instantiation: huf_decompress.c:MEM_readLE32 zstd_ddict.c:MEM_readLE32 Line | Count | Source | 322 | 37.5k | { | 323 | 37.5k | if (MEM_isLittleEndian()) | 324 | 37.5k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 37.5k | } |
zstd_decompress.c:MEM_readLE32 Line | Count | Source | 322 | 169k | { | 323 | 169k | if (MEM_isLittleEndian()) | 324 | 169k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 169k | } |
zstd_decompress_block.c:MEM_readLE32 Line | Count | Source | 322 | 125k | { | 323 | 125k | if (MEM_isLittleEndian()) | 324 | 125k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 125k | } |
Unexecuted instantiation: cover.c:MEM_readLE32 Unexecuted instantiation: fastcover.c:MEM_readLE32 Unexecuted instantiation: zdict.c:MEM_readLE32 Unexecuted instantiation: zstd_v05.c:MEM_readLE32 |
328 | | |
329 | | MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32) |
330 | 277k | { |
331 | 277k | if (MEM_isLittleEndian()) |
332 | 277k | MEM_write32(memPtr, val32); |
333 | 0 | else |
334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); |
335 | 277k | } Unexecuted instantiation: sequence_producer.c:MEM_writeLE32 Unexecuted instantiation: util.c:MEM_writeLE32 Unexecuted instantiation: entropy_common.c:MEM_writeLE32 Unexecuted instantiation: fse_decompress.c:MEM_writeLE32 Unexecuted instantiation: zstd_common.c:MEM_writeLE32 Unexecuted instantiation: fse_compress.c:MEM_writeLE32 Unexecuted instantiation: hist.c:MEM_writeLE32 Unexecuted instantiation: huf_compress.c:MEM_writeLE32 zstd_compress.c:MEM_writeLE32 Line | Count | Source | 330 | 79.9k | { | 331 | 79.9k | if (MEM_isLittleEndian()) | 332 | 79.9k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 79.9k | } |
zstd_compress_literals.c:MEM_writeLE32 Line | Count | Source | 330 | 35.5k | { | 331 | 35.5k | if (MEM_isLittleEndian()) | 332 | 35.5k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 35.5k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE32 zstd_compress_superblock.c:MEM_writeLE32 Line | Count | Source | 330 | 26.9k | { | 331 | 26.9k | if (MEM_isLittleEndian()) | 332 | 26.9k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 26.9k | } |
Unexecuted instantiation: zstd_double_fast.c:MEM_writeLE32 Unexecuted instantiation: zstd_fast.c:MEM_writeLE32 Unexecuted instantiation: zstd_lazy.c:MEM_writeLE32 Unexecuted instantiation: zstd_ldm.c:MEM_writeLE32 Unexecuted instantiation: zstd_opt.c:MEM_writeLE32 Unexecuted instantiation: zstd_preSplit.c:MEM_writeLE32 Unexecuted instantiation: zstdmt_compress.c:MEM_writeLE32 Unexecuted instantiation: huf_decompress.c:MEM_writeLE32 Unexecuted instantiation: zstd_ddict.c:MEM_writeLE32 Unexecuted instantiation: zstd_decompress.c:MEM_writeLE32 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLE32 Unexecuted instantiation: cover.c:MEM_writeLE32 Unexecuted instantiation: fastcover.c:MEM_writeLE32 Line | Count | Source | 330 | 135k | { | 331 | 135k | if (MEM_isLittleEndian()) | 332 | 135k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 135k | } |
Unexecuted instantiation: zstd_v05.c:MEM_writeLE32 |
336 | | |
337 | | MEM_STATIC U64 MEM_readLE64(const void* memPtr) |
338 | 2.46G | { |
339 | 2.46G | if (MEM_isLittleEndian()) |
340 | 2.46G | return MEM_read64(memPtr); |
341 | 18.4E | else |
342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); |
343 | 2.46G | } Unexecuted instantiation: sequence_producer.c:MEM_readLE64 Unexecuted instantiation: util.c:MEM_readLE64 Unexecuted instantiation: entropy_common.c:MEM_readLE64 fse_decompress.c:MEM_readLE64 Line | Count | Source | 338 | 5.77M | { | 339 | 5.77M | if (MEM_isLittleEndian()) | 340 | 5.77M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 5.77M | } |
Unexecuted instantiation: zstd_common.c:MEM_readLE64 Unexecuted instantiation: fse_compress.c:MEM_readLE64 Unexecuted instantiation: hist.c:MEM_readLE64 Unexecuted instantiation: huf_compress.c:MEM_readLE64 Unexecuted instantiation: zstd_compress.c:MEM_readLE64 Unexecuted instantiation: zstd_compress_literals.c:MEM_readLE64 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readLE64 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readLE64 zstd_double_fast.c:MEM_readLE64 Line | Count | Source | 338 | 290M | { | 339 | 290M | if (MEM_isLittleEndian()) | 340 | 290M | return MEM_read64(memPtr); | 341 | 18.4E | else | 342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); | 343 | 290M | } |
Line | Count | Source | 338 | 220M | { | 339 | 220M | if (MEM_isLittleEndian()) | 340 | 220M | return MEM_read64(memPtr); | 341 | 18.4E | else | 342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); | 343 | 220M | } |
Line | Count | Source | 338 | 349M | { | 339 | 349M | if (MEM_isLittleEndian()) | 340 | 349M | return MEM_read64(memPtr); | 341 | 18.4E | else | 342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); | 343 | 349M | } |
Unexecuted instantiation: zstd_ldm.c:MEM_readLE64 Line | Count | Source | 338 | 66.6M | { | 339 | 66.6M | if (MEM_isLittleEndian()) | 340 | 66.6M | return MEM_read64(memPtr); | 341 | 4.06k | else | 342 | 4.06k | return MEM_swap64(MEM_read64(memPtr)); | 343 | 66.6M | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_readLE64 Unexecuted instantiation: zstdmt_compress.c:MEM_readLE64 huf_decompress.c:MEM_readLE64 Line | Count | Source | 338 | 6.24M | { | 339 | 6.24M | if (MEM_isLittleEndian()) | 340 | 6.24M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 6.24M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLE64 Unexecuted instantiation: zstd_decompress.c:MEM_readLE64 zstd_decompress_block.c:MEM_readLE64 Line | Count | Source | 338 | 19.9M | { | 339 | 19.9M | if (MEM_isLittleEndian()) | 340 | 19.9M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 19.9M | } |
Unexecuted instantiation: cover.c:MEM_readLE64 Line | Count | Source | 338 | 1.50G | { | 339 | 1.50G | if (MEM_isLittleEndian()) | 340 | 1.50G | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 1.50G | } |
Unexecuted instantiation: zdict.c:MEM_readLE64 Unexecuted instantiation: zstd_v05.c:MEM_readLE64 |
344 | | |
345 | | MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64) |
346 | 132M | { |
347 | 132M | if (MEM_isLittleEndian()) |
348 | 132M | MEM_write64(memPtr, val64); |
349 | 18.4E | else |
350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); |
351 | 132M | } Unexecuted instantiation: sequence_producer.c:MEM_writeLE64 Unexecuted instantiation: util.c:MEM_writeLE64 Unexecuted instantiation: entropy_common.c:MEM_writeLE64 Unexecuted instantiation: fse_decompress.c:MEM_writeLE64 Unexecuted instantiation: zstd_common.c:MEM_writeLE64 fse_compress.c:MEM_writeLE64 Line | Count | Source | 346 | 25.4M | { | 347 | 25.4M | if (MEM_isLittleEndian()) | 348 | 25.4M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 25.4M | } |
Unexecuted instantiation: hist.c:MEM_writeLE64 huf_compress.c:MEM_writeLE64 Line | Count | Source | 346 | 53.5M | { | 347 | 53.5M | if (MEM_isLittleEndian()) | 348 | 53.5M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 53.5M | } |
Unexecuted instantiation: zstd_compress.c:MEM_writeLE64 Unexecuted instantiation: zstd_compress_literals.c:MEM_writeLE64 zstd_compress_sequences.c:MEM_writeLE64 Line | Count | Source | 346 | 53.0M | { | 347 | 53.0M | if (MEM_isLittleEndian()) | 348 | 53.0M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 53.0M | } |
Unexecuted instantiation: zstd_compress_superblock.c:MEM_writeLE64 Unexecuted instantiation: zstd_double_fast.c:MEM_writeLE64 Unexecuted instantiation: zstd_fast.c:MEM_writeLE64 Unexecuted instantiation: zstd_lazy.c:MEM_writeLE64 Unexecuted instantiation: zstd_ldm.c:MEM_writeLE64 Unexecuted instantiation: zstd_opt.c:MEM_writeLE64 Unexecuted instantiation: zstd_preSplit.c:MEM_writeLE64 Unexecuted instantiation: zstdmt_compress.c:MEM_writeLE64 Unexecuted instantiation: huf_decompress.c:MEM_writeLE64 Unexecuted instantiation: zstd_ddict.c:MEM_writeLE64 Unexecuted instantiation: zstd_decompress.c:MEM_writeLE64 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLE64 Unexecuted instantiation: cover.c:MEM_writeLE64 Unexecuted instantiation: fastcover.c:MEM_writeLE64 Unexecuted instantiation: zdict.c:MEM_writeLE64 Unexecuted instantiation: zstd_v05.c:MEM_writeLE64 |
352 | | |
353 | | MEM_STATIC size_t MEM_readLEST(const void* memPtr) |
354 | 31.9M | { |
355 | 31.9M | if (MEM_32bits()) |
356 | 0 | return (size_t)MEM_readLE32(memPtr); |
357 | 31.9M | else |
358 | 31.9M | return (size_t)MEM_readLE64(memPtr); |
359 | 31.9M | } Unexecuted instantiation: sequence_producer.c:MEM_readLEST Unexecuted instantiation: util.c:MEM_readLEST Unexecuted instantiation: entropy_common.c:MEM_readLEST fse_decompress.c:MEM_readLEST Line | Count | Source | 354 | 5.77M | { | 355 | 5.77M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 5.77M | else | 358 | 5.77M | return (size_t)MEM_readLE64(memPtr); | 359 | 5.77M | } |
Unexecuted instantiation: zstd_common.c:MEM_readLEST Unexecuted instantiation: fse_compress.c:MEM_readLEST Unexecuted instantiation: hist.c:MEM_readLEST Unexecuted instantiation: huf_compress.c:MEM_readLEST Unexecuted instantiation: zstd_compress.c:MEM_readLEST Unexecuted instantiation: zstd_compress_literals.c:MEM_readLEST Unexecuted instantiation: zstd_compress_sequences.c:MEM_readLEST Unexecuted instantiation: zstd_compress_superblock.c:MEM_readLEST Unexecuted instantiation: zstd_double_fast.c:MEM_readLEST Unexecuted instantiation: zstd_fast.c:MEM_readLEST Unexecuted instantiation: zstd_lazy.c:MEM_readLEST Unexecuted instantiation: zstd_ldm.c:MEM_readLEST Unexecuted instantiation: zstd_opt.c:MEM_readLEST Unexecuted instantiation: zstd_preSplit.c:MEM_readLEST Unexecuted instantiation: zstdmt_compress.c:MEM_readLEST huf_decompress.c:MEM_readLEST Line | Count | Source | 354 | 6.24M | { | 355 | 6.24M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 6.24M | else | 358 | 6.24M | return (size_t)MEM_readLE64(memPtr); | 359 | 6.24M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLEST Unexecuted instantiation: zstd_decompress.c:MEM_readLEST zstd_decompress_block.c:MEM_readLEST Line | Count | Source | 354 | 19.9M | { | 355 | 19.9M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 19.9M | else | 358 | 19.9M | return (size_t)MEM_readLE64(memPtr); | 359 | 19.9M | } |
Unexecuted instantiation: cover.c:MEM_readLEST Unexecuted instantiation: fastcover.c:MEM_readLEST Unexecuted instantiation: zdict.c:MEM_readLEST Unexecuted instantiation: zstd_v05.c:MEM_readLEST |
360 | | |
361 | | MEM_STATIC void MEM_writeLEST(void* memPtr, size_t val) |
362 | 132M | { |
363 | 132M | if (MEM_32bits()) |
364 | 0 | MEM_writeLE32(memPtr, (U32)val); |
365 | 132M | else |
366 | 132M | MEM_writeLE64(memPtr, (U64)val); |
367 | 132M | } Unexecuted instantiation: sequence_producer.c:MEM_writeLEST Unexecuted instantiation: util.c:MEM_writeLEST Unexecuted instantiation: entropy_common.c:MEM_writeLEST Unexecuted instantiation: fse_decompress.c:MEM_writeLEST Unexecuted instantiation: zstd_common.c:MEM_writeLEST fse_compress.c:MEM_writeLEST Line | Count | Source | 362 | 25.4M | { | 363 | 25.4M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 25.4M | else | 366 | 25.4M | MEM_writeLE64(memPtr, (U64)val); | 367 | 25.4M | } |
Unexecuted instantiation: hist.c:MEM_writeLEST huf_compress.c:MEM_writeLEST Line | Count | Source | 362 | 53.5M | { | 363 | 53.5M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 53.5M | else | 366 | 53.5M | MEM_writeLE64(memPtr, (U64)val); | 367 | 53.5M | } |
Unexecuted instantiation: zstd_compress.c:MEM_writeLEST Unexecuted instantiation: zstd_compress_literals.c:MEM_writeLEST zstd_compress_sequences.c:MEM_writeLEST Line | Count | Source | 362 | 53.0M | { | 363 | 53.0M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 53.0M | else | 366 | 53.0M | MEM_writeLE64(memPtr, (U64)val); | 367 | 53.0M | } |
Unexecuted instantiation: zstd_compress_superblock.c:MEM_writeLEST Unexecuted instantiation: zstd_double_fast.c:MEM_writeLEST Unexecuted instantiation: zstd_fast.c:MEM_writeLEST Unexecuted instantiation: zstd_lazy.c:MEM_writeLEST Unexecuted instantiation: zstd_ldm.c:MEM_writeLEST Unexecuted instantiation: zstd_opt.c:MEM_writeLEST Unexecuted instantiation: zstd_preSplit.c:MEM_writeLEST Unexecuted instantiation: zstdmt_compress.c:MEM_writeLEST Unexecuted instantiation: huf_decompress.c:MEM_writeLEST Unexecuted instantiation: zstd_ddict.c:MEM_writeLEST Unexecuted instantiation: zstd_decompress.c:MEM_writeLEST Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLEST Unexecuted instantiation: cover.c:MEM_writeLEST Unexecuted instantiation: fastcover.c:MEM_writeLEST Unexecuted instantiation: zdict.c:MEM_writeLEST Unexecuted instantiation: zstd_v05.c:MEM_writeLEST |
368 | | |
369 | | /*=== Big endian r/w ===*/ |
370 | | |
371 | | MEM_STATIC U32 MEM_readBE32(const void* memPtr) |
372 | 0 | { |
373 | 0 | if (MEM_isLittleEndian()) |
374 | 0 | return MEM_swap32(MEM_read32(memPtr)); |
375 | 0 | else |
376 | 0 | return MEM_read32(memPtr); |
377 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_readBE32 Unexecuted instantiation: util.c:MEM_readBE32 Unexecuted instantiation: entropy_common.c:MEM_readBE32 Unexecuted instantiation: fse_decompress.c:MEM_readBE32 Unexecuted instantiation: zstd_common.c:MEM_readBE32 Unexecuted instantiation: fse_compress.c:MEM_readBE32 Unexecuted instantiation: hist.c:MEM_readBE32 Unexecuted instantiation: huf_compress.c:MEM_readBE32 Unexecuted instantiation: zstd_compress.c:MEM_readBE32 Unexecuted instantiation: zstd_compress_literals.c:MEM_readBE32 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readBE32 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readBE32 Unexecuted instantiation: zstd_double_fast.c:MEM_readBE32 Unexecuted instantiation: zstd_fast.c:MEM_readBE32 Unexecuted instantiation: zstd_lazy.c:MEM_readBE32 Unexecuted instantiation: zstd_ldm.c:MEM_readBE32 Unexecuted instantiation: zstd_opt.c:MEM_readBE32 Unexecuted instantiation: zstd_preSplit.c:MEM_readBE32 Unexecuted instantiation: zstdmt_compress.c:MEM_readBE32 Unexecuted instantiation: huf_decompress.c:MEM_readBE32 Unexecuted instantiation: zstd_ddict.c:MEM_readBE32 Unexecuted instantiation: zstd_decompress.c:MEM_readBE32 Unexecuted instantiation: zstd_decompress_block.c:MEM_readBE32 Unexecuted instantiation: cover.c:MEM_readBE32 Unexecuted instantiation: fastcover.c:MEM_readBE32 Unexecuted instantiation: zdict.c:MEM_readBE32 Unexecuted instantiation: zstd_v05.c:MEM_readBE32 |
378 | | |
379 | | MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32) |
380 | 0 | { |
381 | 0 | if (MEM_isLittleEndian()) |
382 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); |
383 | 0 | else |
384 | 0 | MEM_write32(memPtr, val32); |
385 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_writeBE32 Unexecuted instantiation: util.c:MEM_writeBE32 Unexecuted instantiation: entropy_common.c:MEM_writeBE32 Unexecuted instantiation: fse_decompress.c:MEM_writeBE32 Unexecuted instantiation: zstd_common.c:MEM_writeBE32 Unexecuted instantiation: fse_compress.c:MEM_writeBE32 Unexecuted instantiation: hist.c:MEM_writeBE32 Unexecuted instantiation: huf_compress.c:MEM_writeBE32 Unexecuted instantiation: zstd_compress.c:MEM_writeBE32 Unexecuted instantiation: zstd_compress_literals.c:MEM_writeBE32 Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeBE32 Unexecuted instantiation: zstd_compress_superblock.c:MEM_writeBE32 Unexecuted instantiation: zstd_double_fast.c:MEM_writeBE32 Unexecuted instantiation: zstd_fast.c:MEM_writeBE32 Unexecuted instantiation: zstd_lazy.c:MEM_writeBE32 Unexecuted instantiation: zstd_ldm.c:MEM_writeBE32 Unexecuted instantiation: zstd_opt.c:MEM_writeBE32 Unexecuted instantiation: zstd_preSplit.c:MEM_writeBE32 Unexecuted instantiation: zstdmt_compress.c:MEM_writeBE32 Unexecuted instantiation: huf_decompress.c:MEM_writeBE32 Unexecuted instantiation: zstd_ddict.c:MEM_writeBE32 Unexecuted instantiation: zstd_decompress.c:MEM_writeBE32 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeBE32 Unexecuted instantiation: cover.c:MEM_writeBE32 Unexecuted instantiation: fastcover.c:MEM_writeBE32 Unexecuted instantiation: zdict.c:MEM_writeBE32 Unexecuted instantiation: zstd_v05.c:MEM_writeBE32 |
386 | | |
387 | | MEM_STATIC U64 MEM_readBE64(const void* memPtr) |
388 | 0 | { |
389 | 0 | if (MEM_isLittleEndian()) |
390 | 0 | return MEM_swap64(MEM_read64(memPtr)); |
391 | 0 | else |
392 | 0 | return MEM_read64(memPtr); |
393 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_readBE64 Unexecuted instantiation: util.c:MEM_readBE64 Unexecuted instantiation: entropy_common.c:MEM_readBE64 Unexecuted instantiation: fse_decompress.c:MEM_readBE64 Unexecuted instantiation: zstd_common.c:MEM_readBE64 Unexecuted instantiation: fse_compress.c:MEM_readBE64 Unexecuted instantiation: hist.c:MEM_readBE64 Unexecuted instantiation: huf_compress.c:MEM_readBE64 Unexecuted instantiation: zstd_compress.c:MEM_readBE64 Unexecuted instantiation: zstd_compress_literals.c:MEM_readBE64 Unexecuted instantiation: zstd_compress_sequences.c:MEM_readBE64 Unexecuted instantiation: zstd_compress_superblock.c:MEM_readBE64 Unexecuted instantiation: zstd_double_fast.c:MEM_readBE64 Unexecuted instantiation: zstd_fast.c:MEM_readBE64 Unexecuted instantiation: zstd_lazy.c:MEM_readBE64 Unexecuted instantiation: zstd_ldm.c:MEM_readBE64 Unexecuted instantiation: zstd_opt.c:MEM_readBE64 Unexecuted instantiation: zstd_preSplit.c:MEM_readBE64 Unexecuted instantiation: zstdmt_compress.c:MEM_readBE64 Unexecuted instantiation: huf_decompress.c:MEM_readBE64 Unexecuted instantiation: zstd_ddict.c:MEM_readBE64 Unexecuted instantiation: zstd_decompress.c:MEM_readBE64 Unexecuted instantiation: zstd_decompress_block.c:MEM_readBE64 Unexecuted instantiation: cover.c:MEM_readBE64 Unexecuted instantiation: fastcover.c:MEM_readBE64 Unexecuted instantiation: zdict.c:MEM_readBE64 Unexecuted instantiation: zstd_v05.c:MEM_readBE64 |
394 | | |
395 | | MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64) |
396 | 0 | { |
397 | 0 | if (MEM_isLittleEndian()) |
398 | 0 | MEM_write64(memPtr, MEM_swap64(val64)); |
399 | 0 | else |
400 | 0 | MEM_write64(memPtr, val64); |
401 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_writeBE64 Unexecuted instantiation: util.c:MEM_writeBE64 Unexecuted instantiation: entropy_common.c:MEM_writeBE64 Unexecuted instantiation: fse_decompress.c:MEM_writeBE64 Unexecuted instantiation: zstd_common.c:MEM_writeBE64 Unexecuted instantiation: fse_compress.c:MEM_writeBE64 Unexecuted instantiation: hist.c:MEM_writeBE64 Unexecuted instantiation: huf_compress.c:MEM_writeBE64 Unexecuted instantiation: zstd_compress.c:MEM_writeBE64 Unexecuted instantiation: zstd_compress_literals.c:MEM_writeBE64 Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeBE64 Unexecuted instantiation: zstd_compress_superblock.c:MEM_writeBE64 Unexecuted instantiation: zstd_double_fast.c:MEM_writeBE64 Unexecuted instantiation: zstd_fast.c:MEM_writeBE64 Unexecuted instantiation: zstd_lazy.c:MEM_writeBE64 Unexecuted instantiation: zstd_ldm.c:MEM_writeBE64 Unexecuted instantiation: zstd_opt.c:MEM_writeBE64 Unexecuted instantiation: zstd_preSplit.c:MEM_writeBE64 Unexecuted instantiation: zstdmt_compress.c:MEM_writeBE64 Unexecuted instantiation: huf_decompress.c:MEM_writeBE64 Unexecuted instantiation: zstd_ddict.c:MEM_writeBE64 Unexecuted instantiation: zstd_decompress.c:MEM_writeBE64 Unexecuted instantiation: zstd_decompress_block.c:MEM_writeBE64 Unexecuted instantiation: cover.c:MEM_writeBE64 Unexecuted instantiation: fastcover.c:MEM_writeBE64 Unexecuted instantiation: zdict.c:MEM_writeBE64 Unexecuted instantiation: zstd_v05.c:MEM_writeBE64 |
402 | | |
403 | | MEM_STATIC size_t MEM_readBEST(const void* memPtr) |
404 | 0 | { |
405 | 0 | if (MEM_32bits()) |
406 | 0 | return (size_t)MEM_readBE32(memPtr); |
407 | 0 | else |
408 | 0 | return (size_t)MEM_readBE64(memPtr); |
409 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_readBEST Unexecuted instantiation: util.c:MEM_readBEST Unexecuted instantiation: entropy_common.c:MEM_readBEST Unexecuted instantiation: fse_decompress.c:MEM_readBEST Unexecuted instantiation: zstd_common.c:MEM_readBEST Unexecuted instantiation: fse_compress.c:MEM_readBEST Unexecuted instantiation: hist.c:MEM_readBEST Unexecuted instantiation: huf_compress.c:MEM_readBEST Unexecuted instantiation: zstd_compress.c:MEM_readBEST Unexecuted instantiation: zstd_compress_literals.c:MEM_readBEST Unexecuted instantiation: zstd_compress_sequences.c:MEM_readBEST Unexecuted instantiation: zstd_compress_superblock.c:MEM_readBEST Unexecuted instantiation: zstd_double_fast.c:MEM_readBEST Unexecuted instantiation: zstd_fast.c:MEM_readBEST Unexecuted instantiation: zstd_lazy.c:MEM_readBEST Unexecuted instantiation: zstd_ldm.c:MEM_readBEST Unexecuted instantiation: zstd_opt.c:MEM_readBEST Unexecuted instantiation: zstd_preSplit.c:MEM_readBEST Unexecuted instantiation: zstdmt_compress.c:MEM_readBEST Unexecuted instantiation: huf_decompress.c:MEM_readBEST Unexecuted instantiation: zstd_ddict.c:MEM_readBEST Unexecuted instantiation: zstd_decompress.c:MEM_readBEST Unexecuted instantiation: zstd_decompress_block.c:MEM_readBEST Unexecuted instantiation: cover.c:MEM_readBEST Unexecuted instantiation: fastcover.c:MEM_readBEST Unexecuted instantiation: zdict.c:MEM_readBEST Unexecuted instantiation: zstd_v05.c:MEM_readBEST |
410 | | |
411 | | MEM_STATIC void MEM_writeBEST(void* memPtr, size_t val) |
412 | 0 | { |
413 | 0 | if (MEM_32bits()) |
414 | 0 | MEM_writeBE32(memPtr, (U32)val); |
415 | 0 | else |
416 | 0 | MEM_writeBE64(memPtr, (U64)val); |
417 | 0 | } Unexecuted instantiation: sequence_producer.c:MEM_writeBEST Unexecuted instantiation: util.c:MEM_writeBEST Unexecuted instantiation: entropy_common.c:MEM_writeBEST Unexecuted instantiation: fse_decompress.c:MEM_writeBEST Unexecuted instantiation: zstd_common.c:MEM_writeBEST Unexecuted instantiation: fse_compress.c:MEM_writeBEST Unexecuted instantiation: hist.c:MEM_writeBEST Unexecuted instantiation: huf_compress.c:MEM_writeBEST Unexecuted instantiation: zstd_compress.c:MEM_writeBEST Unexecuted instantiation: zstd_compress_literals.c:MEM_writeBEST Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeBEST Unexecuted instantiation: zstd_compress_superblock.c:MEM_writeBEST Unexecuted instantiation: zstd_double_fast.c:MEM_writeBEST Unexecuted instantiation: zstd_fast.c:MEM_writeBEST Unexecuted instantiation: zstd_lazy.c:MEM_writeBEST Unexecuted instantiation: zstd_ldm.c:MEM_writeBEST Unexecuted instantiation: zstd_opt.c:MEM_writeBEST Unexecuted instantiation: zstd_preSplit.c:MEM_writeBEST Unexecuted instantiation: zstdmt_compress.c:MEM_writeBEST Unexecuted instantiation: huf_decompress.c:MEM_writeBEST Unexecuted instantiation: zstd_ddict.c:MEM_writeBEST Unexecuted instantiation: zstd_decompress.c:MEM_writeBEST Unexecuted instantiation: zstd_decompress_block.c:MEM_writeBEST Unexecuted instantiation: cover.c:MEM_writeBEST Unexecuted instantiation: fastcover.c:MEM_writeBEST Unexecuted instantiation: zdict.c:MEM_writeBEST Unexecuted instantiation: zstd_v05.c:MEM_writeBEST |
418 | | |
419 | | /* code only tested on 32 and 64 bits systems */ |
420 | 0 | MEM_STATIC void MEM_check(void) { DEBUG_STATIC_ASSERT((sizeof(size_t)==4) || (sizeof(size_t)==8)); } Unexecuted instantiation: sequence_producer.c:MEM_check Unexecuted instantiation: util.c:MEM_check Unexecuted instantiation: entropy_common.c:MEM_check Unexecuted instantiation: fse_decompress.c:MEM_check Unexecuted instantiation: zstd_common.c:MEM_check Unexecuted instantiation: fse_compress.c:MEM_check Unexecuted instantiation: hist.c:MEM_check Unexecuted instantiation: huf_compress.c:MEM_check Unexecuted instantiation: zstd_compress.c:MEM_check Unexecuted instantiation: zstd_compress_literals.c:MEM_check Unexecuted instantiation: zstd_compress_sequences.c:MEM_check Unexecuted instantiation: zstd_compress_superblock.c:MEM_check Unexecuted instantiation: zstd_double_fast.c:MEM_check Unexecuted instantiation: zstd_fast.c:MEM_check Unexecuted instantiation: zstd_lazy.c:MEM_check Unexecuted instantiation: zstd_ldm.c:MEM_check Unexecuted instantiation: zstd_opt.c:MEM_check Unexecuted instantiation: zstd_preSplit.c:MEM_check Unexecuted instantiation: zstdmt_compress.c:MEM_check Unexecuted instantiation: huf_decompress.c:MEM_check Unexecuted instantiation: zstd_ddict.c:MEM_check Unexecuted instantiation: zstd_decompress.c:MEM_check Unexecuted instantiation: zstd_decompress_block.c:MEM_check Unexecuted instantiation: cover.c:MEM_check Unexecuted instantiation: fastcover.c:MEM_check Unexecuted instantiation: zdict.c:MEM_check Unexecuted instantiation: zstd_v05.c:MEM_check |
421 | | |
422 | | #endif /* MEM_H_MODULE */ |