/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 | 3.74G | 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 | 44.5M | 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 | 152M | 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 | 426M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
zstd_compress.c:MEM_32bits Line | Count | Source | 137 | 802M | 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 | 1.09G | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
zstd_compress_superblock.c:MEM_32bits Line | Count | Source | 137 | 1.19M | 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 | 120k | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
huf_decompress.c:MEM_32bits Line | Count | Source | 137 | 114M | 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 | 1.10G | 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 Line | Count | Source | 137 | 3.11M | MEM_STATIC unsigned MEM_32bits(void) { return sizeof(size_t)==4; } |
Unexecuted instantiation: zstdseek_compress.c:MEM_32bits() Unexecuted instantiation: zstdseek_decompress.c:MEM_32bits() Unexecuted instantiation: huf_round_trip.c:MEM_32bits Unexecuted instantiation: fse_read_ncount.c:MEM_32bits |
138 | 4.98G | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } sequence_producer.c:MEM_64bits Line | Count | Source | 138 | 21.4M | 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 | 452M | 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 | 31.4M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 47.2M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 473M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 42.6M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Line | Count | Source | 138 | 3.49G | 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 | 238M | 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 | 185M | 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 Line | Count | Source | 138 | 6.89M | MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; } |
Unexecuted instantiation: zstdseek_compress.c:MEM_64bits() Unexecuted instantiation: zstdseek_decompress.c:MEM_64bits() Unexecuted instantiation: huf_round_trip.c:MEM_64bits Unexecuted instantiation: fse_read_ncount.c:MEM_64bits |
139 | | |
140 | | MEM_STATIC unsigned MEM_isLittleEndian(void) |
141 | 18.1G | { |
142 | 18.1G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) |
143 | 18.1G | 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 | 18.1G | } sequence_producer.c:MEM_isLittleEndian Line | Count | Source | 141 | 63.7M | { | 142 | 63.7M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 63.7M | 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 | 63.7M | } |
Unexecuted instantiation: util.c:MEM_isLittleEndian entropy_common.c:MEM_isLittleEndian Line | Count | Source | 141 | 46.9M | { | 142 | 46.9M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 46.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 | 46.9M | } |
fse_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 44.5M | { | 142 | 44.5M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 44.5M | 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 | 44.5M | } |
Unexecuted instantiation: zstd_common.c:MEM_isLittleEndian fse_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 152M | { | 142 | 152M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 152M | 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 | 152M | } |
Unexecuted instantiation: hist.c:MEM_isLittleEndian huf_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 425M | { | 142 | 425M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 425M | 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 | 425M | } |
zstd_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 45.6M | { | 142 | 45.6M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 45.6M | 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 | 45.6M | } |
zstd_compress_literals.c:MEM_isLittleEndian Line | Count | Source | 141 | 1.79M | { | 142 | 1.79M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 1.79M | 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.79M | } |
zstd_compress_sequences.c:MEM_isLittleEndian Line | Count | Source | 141 | 232M | { | 142 | 232M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 232M | 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 | 232M | } |
zstd_compress_superblock.c:MEM_isLittleEndian Line | Count | Source | 141 | 1.80M | { | 142 | 1.80M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 1.80M | 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.80M | } |
zstd_double_fast.c:MEM_isLittleEndian Line | Count | Source | 141 | 2.34G | { | 142 | 2.34G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 2.34G | 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 | 2.34G | } |
zstd_fast.c:MEM_isLittleEndian Line | Count | Source | 141 | 825M | { | 142 | 825M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 825M | 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 | 825M | } |
zstd_lazy.c:MEM_isLittleEndian Line | Count | Source | 141 | 2.55G | { | 142 | 2.55G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 2.55G | 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 | 2.55G | } |
zstd_ldm.c:MEM_isLittleEndian Line | Count | Source | 141 | 38.8M | { | 142 | 38.8M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 38.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 | 38.8M | } |
zstd_opt.c:MEM_isLittleEndian Line | Count | Source | 141 | 7.88G | { | 142 | 7.88G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 7.88G | 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 | 7.88G | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_isLittleEndian zstdmt_compress.c:MEM_isLittleEndian Line | Count | Source | 141 | 7.21k | { | 142 | 7.21k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 7.21k | 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 | 7.21k | } |
huf_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 216M | { | 142 | 216M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 216M | 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 | 216M | } |
zstd_ddict.c:MEM_isLittleEndian Line | Count | Source | 141 | 96.2k | { | 142 | 96.2k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 96.2k | 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 | 96.2k | } |
zstd_decompress.c:MEM_isLittleEndian Line | Count | Source | 141 | 3.04M | { | 142 | 3.04M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 3.04M | 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 | 3.04M | } |
zstd_decompress_block.c:MEM_isLittleEndian Line | Count | Source | 141 | 250M | { | 142 | 250M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 250M | 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 | 250M | } |
Unexecuted instantiation: cover.c:MEM_isLittleEndian fastcover.c:MEM_isLittleEndian Line | Count | Source | 141 | 3.04G | { | 142 | 3.04G | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 3.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 | 3.04G | } |
zdict.c:MEM_isLittleEndian Line | Count | Source | 141 | 303k | { | 142 | 303k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 303k | 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 | 303k | } |
zstd_v05.c:MEM_isLittleEndian Line | Count | Source | 141 | 3.35M | { | 142 | 3.35M | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 3.35M | 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 | 3.35M | } |
zstdseek_compress.c:MEM_isLittleEndian() Line | Count | Source | 141 | 110k | { | 142 | 110k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 110k | 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 | 110k | } |
zstdseek_decompress.c:MEM_isLittleEndian() Line | Count | Source | 141 | 110k | { | 142 | 110k | #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | 143 | 110k | 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 | 110k | } |
Unexecuted instantiation: huf_round_trip.c:MEM_isLittleEndian Unexecuted instantiation: fse_read_ncount.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 | 423M | { |
198 | 423M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
199 | 423M | } sequence_producer.c:MEM_read16 Line | Count | Source | 197 | 126k | { | 198 | 126k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 126k | } |
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 | 5.44M | { | 198 | 5.44M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 5.44M | } |
Unexecuted instantiation: hist.c:MEM_read16 Unexecuted instantiation: huf_compress.c:MEM_read16 zstd_compress.c:MEM_read16 Line | Count | Source | 197 | 72.8k | { | 198 | 72.8k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 72.8k | } |
Unexecuted instantiation: zstd_compress_literals.c:MEM_read16 zstd_compress_sequences.c:MEM_read16 Line | Count | Source | 197 | 19.7M | { | 198 | 19.7M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 19.7M | } |
Unexecuted instantiation: zstd_compress_superblock.c:MEM_read16 zstd_double_fast.c:MEM_read16 Line | Count | Source | 197 | 1.35M | { | 198 | 1.35M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 1.35M | } |
Line | Count | Source | 197 | 1.95M | { | 198 | 1.95M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 1.95M | } |
Line | Count | Source | 197 | 5.78M | { | 198 | 5.78M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 5.78M | } |
Line | Count | Source | 197 | 237k | { | 198 | 237k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 237k | } |
Line | Count | Source | 197 | 4.90M | { | 198 | 4.90M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 4.90M | } |
zstd_preSplit.c:MEM_read16 Line | Count | Source | 197 | 293M | { | 198 | 293M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 293M | } |
Unexecuted instantiation: zstdmt_compress.c:MEM_read16 huf_decompress.c:MEM_read16 Line | Count | Source | 197 | 2.33M | { | 198 | 2.33M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 2.33M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_read16 zstd_decompress.c:MEM_read16 Line | Count | Source | 197 | 62.3k | { | 198 | 62.3k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 62.3k | } |
zstd_decompress_block.c:MEM_read16 Line | Count | Source | 197 | 88.7M | { | 198 | 88.7M | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 88.7M | } |
Unexecuted instantiation: cover.c:MEM_read16 Unexecuted instantiation: fastcover.c:MEM_read16 Unexecuted instantiation: zdict.c:MEM_read16 Line | Count | Source | 197 | 30.6k | { | 198 | 30.6k | U16 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 199 | 30.6k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_read16(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_read16(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_read16 Unexecuted instantiation: fse_read_ncount.c:MEM_read16 |
200 | | |
201 | | MEM_STATIC U32 MEM_read32(const void* memPtr) |
202 | 13.4G | { |
203 | 13.4G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
204 | 13.4G | } sequence_producer.c:MEM_read32 Line | Count | Source | 202 | 42.5M | { | 203 | 42.5M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 42.5M | } |
Unexecuted instantiation: util.c:MEM_read32 entropy_common.c:MEM_read32 Line | Count | Source | 202 | 46.9M | { | 203 | 46.9M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 46.9M | } |
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 | 1.00G | { | 203 | 1.00G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 1.00G | } |
Unexecuted instantiation: huf_compress.c:MEM_read32 zstd_compress.c:MEM_read32 Line | Count | Source | 202 | 305k | { | 203 | 305k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 305k | } |
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 | 1.20G | { | 203 | 1.20G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 1.20G | } |
Line | Count | Source | 202 | 993M | { | 203 | 993M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 993M | } |
Line | Count | Source | 202 | 3.95G | { | 203 | 3.95G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 3.95G | } |
Line | Count | Source | 202 | 252k | { | 203 | 252k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 252k | } |
Line | Count | Source | 202 | 6.22G | { | 203 | 6.22G | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 6.22G | } |
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 | 96.2k | { | 203 | 96.2k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 96.2k | } |
zstd_decompress.c:MEM_read32 Line | Count | Source | 202 | 2.95M | { | 203 | 2.95M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 2.95M | } |
zstd_decompress_block.c:MEM_read32 Line | Count | Source | 202 | 1.44M | { | 203 | 1.44M | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 1.44M | } |
Unexecuted instantiation: cover.c:MEM_read32 Unexecuted instantiation: fastcover.c:MEM_read32 Unexecuted instantiation: zdict.c:MEM_read32 Line | Count | Source | 202 | 441k | { | 203 | 441k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 441k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_read32(void const*) zstdseek_decompress.c:MEM_read32(void const*) Line | Count | Source | 202 | 110k | { | 203 | 110k | U32 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 204 | 110k | } |
Unexecuted instantiation: huf_round_trip.c:MEM_read32 Unexecuted instantiation: fse_read_ncount.c:MEM_read32 |
205 | | |
206 | | MEM_STATIC U64 MEM_read64(const void* memPtr) |
207 | 8.21G | { |
208 | 8.21G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
209 | 8.21G | } 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 | 44.5M | { | 208 | 44.5M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 44.5M | } |
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 | 2.52G | { | 208 | 2.52G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 2.52G | } |
Line | Count | Source | 207 | 685M | { | 208 | 685M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 685M | } |
Line | Count | Source | 207 | 1.30G | { | 208 | 1.30G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 1.30G | } |
Unexecuted instantiation: zstd_ldm.c:MEM_read64 Line | Count | Source | 207 | 338M | { | 208 | 338M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 338M | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_read64 Unexecuted instantiation: zstdmt_compress.c:MEM_read64 huf_decompress.c:MEM_read64 Line | Count | Source | 207 | 112M | { | 208 | 112M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 112M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_read64 zstd_decompress.c:MEM_read64 Line | Count | Source | 207 | 8.49k | { | 208 | 8.49k | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 8.49k | } |
zstd_decompress_block.c:MEM_read64 Line | Count | Source | 207 | 160M | { | 208 | 160M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 160M | } |
Unexecuted instantiation: cover.c:MEM_read64 Line | Count | Source | 207 | 3.04G | { | 208 | 3.04G | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 3.04G | } |
Unexecuted instantiation: zdict.c:MEM_read64 Line | Count | Source | 207 | 2.55M | { | 208 | 2.55M | U64 val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 209 | 2.55M | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_read64(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_read64(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_read64 Unexecuted instantiation: fse_read_ncount.c:MEM_read64 |
210 | | |
211 | | MEM_STATIC size_t MEM_readST(const void* memPtr) |
212 | 21.0G | { |
213 | 21.0G | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; |
214 | 21.0G | } sequence_producer.c:MEM_readST Line | Count | Source | 212 | 53.2M | { | 213 | 53.2M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 53.2M | } |
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 | 47.6M | { | 213 | 47.6M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 47.6M | } |
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 | 284M | { | 213 | 284M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 284M | } |
Line | Count | Source | 212 | 530M | { | 213 | 530M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 530M | } |
Line | Count | Source | 212 | 5.05G | { | 213 | 5.05G | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 5.05G | } |
Line | Count | Source | 212 | 149M | { | 213 | 149M | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 149M | } |
Line | Count | Source | 212 | 14.9G | { | 213 | 14.9G | size_t val; ZSTD_memcpy(&val, memPtr, sizeof(val)); return val; | 214 | 14.9G | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_readST(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readST(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readST Unexecuted instantiation: fse_read_ncount.c:MEM_readST |
215 | | |
216 | | MEM_STATIC void MEM_write16(void* memPtr, U16 value) |
217 | 55.6M | { |
218 | 55.6M | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
219 | 55.6M | } 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 | 2.59M | { | 218 | 2.59M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 2.59M | } |
zstd_compress.c:MEM_write16 Line | Count | Source | 217 | 42.5M | { | 218 | 42.5M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 42.5M | } |
zstd_compress_literals.c:MEM_write16 Line | Count | Source | 217 | 1.36M | { | 218 | 1.36M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 1.36M | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_write16 zstd_compress_superblock.c:MEM_write16 Line | Count | Source | 217 | 1.70M | { | 218 | 1.70M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 1.70M | } |
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 huf_decompress.c:MEM_write16 Line | Count | Source | 217 | 7.10M | { | 218 | 7.10M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 7.10M | } |
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 Line | Count | Source | 217 | 323k | { | 218 | 323k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 219 | 323k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_write16(void*, unsigned short) Unexecuted instantiation: zstdseek_decompress.c:MEM_write16(void*, unsigned short) Unexecuted instantiation: huf_round_trip.c:MEM_write16 Unexecuted instantiation: fse_read_ncount.c:MEM_write16 |
220 | | |
221 | | MEM_STATIC void MEM_write32(void* memPtr, U32 value) |
222 | 3.71M | { |
223 | 3.71M | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
224 | 3.71M | } 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 | 2.75M | { | 223 | 2.75M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 2.75M | } |
zstd_compress_literals.c:MEM_write32 Line | Count | Source | 222 | 423k | { | 223 | 423k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 423k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_write32 zstd_compress_superblock.c:MEM_write32 Line | Count | Source | 222 | 102k | { | 223 | 102k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 102k | } |
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 zstdmt_compress.c:MEM_write32 Line | Count | Source | 222 | 7.21k | { | 223 | 7.21k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 7.21k | } |
Unexecuted instantiation: huf_decompress.c:MEM_write32 Unexecuted instantiation: zstd_ddict.c:MEM_write32 zstd_decompress.c:MEM_write32 Line | Count | Source | 222 | 11.5k | { | 223 | 11.5k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 11.5k | } |
Unexecuted instantiation: zstd_decompress_block.c:MEM_write32 Unexecuted instantiation: cover.c:MEM_write32 Unexecuted instantiation: fastcover.c:MEM_write32 Line | Count | Source | 222 | 303k | { | 223 | 303k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 303k | } |
Unexecuted instantiation: zstd_v05.c:MEM_write32 zstdseek_compress.c:MEM_write32(void*, unsigned int) Line | Count | Source | 222 | 110k | { | 223 | 110k | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 224 | 110k | } |
Unexecuted instantiation: zstdseek_decompress.c:MEM_write32(void*, unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_write32 Unexecuted instantiation: fse_read_ncount.c:MEM_write32 |
225 | | |
226 | | MEM_STATIC void MEM_write64(void* memPtr, U64 value) |
227 | 1.44G | { |
228 | 1.44G | ZSTD_memcpy(memPtr, &value, sizeof(value)); |
229 | 1.44G | } 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 | 9.84M | { | 228 | 9.84M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 9.84M | } |
Unexecuted instantiation: zstd_common.c:MEM_write64 fse_compress.c:MEM_write64 Line | Count | Source | 227 | 247M | { | 228 | 247M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 247M | } |
Unexecuted instantiation: hist.c:MEM_write64 huf_compress.c:MEM_write64 Line | Count | Source | 227 | 422M | { | 228 | 422M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 422M | } |
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 | 232M | { | 228 | 232M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 232M | } |
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 | 480M | { | 228 | 480M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 480M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_write64 Unexecuted instantiation: zstd_decompress.c:MEM_write64 zstd_decompress_block.c:MEM_write64 Line | Count | Source | 227 | 49.8M | { | 228 | 49.8M | ZSTD_memcpy(memPtr, &value, sizeof(value)); | 229 | 49.8M | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_write64(void*, unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_write64(void*, unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_write64 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_swap32_fallback(unsigned int) Unexecuted instantiation: zstdseek_decompress.c:MEM_swap32_fallback(unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_swap32_fallback Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_swap32(unsigned int) Unexecuted instantiation: zstdseek_decompress.c:MEM_swap32(unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_swap32 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_swap64_fallback(unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_swap64_fallback(unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_swap64_fallback Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_swap64(unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_swap64(unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_swap64 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_swapST(unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_swapST(unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_swapST Unexecuted instantiation: fse_read_ncount.c:MEM_swapST |
286 | | |
287 | | /*=== Little endian r/w ===*/ |
288 | | |
289 | | MEM_STATIC U16 MEM_readLE16(const void* memPtr) |
290 | 91.1M | { |
291 | 91.1M | if (MEM_isLittleEndian()) |
292 | 91.1M | 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 | 91.1M | } 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 | 2.33M | { | 291 | 2.33M | if (MEM_isLittleEndian()) | 292 | 2.33M | 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 | 2.33M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLE16 zstd_decompress.c:MEM_readLE16 Line | Count | Source | 290 | 62.3k | { | 291 | 62.3k | if (MEM_isLittleEndian()) | 292 | 62.3k | 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 | 62.3k | } |
zstd_decompress_block.c:MEM_readLE16 Line | Count | Source | 290 | 88.7M | { | 291 | 88.7M | if (MEM_isLittleEndian()) | 292 | 88.7M | 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 | 88.7M | } |
Unexecuted instantiation: cover.c:MEM_readLE16 Unexecuted instantiation: fastcover.c:MEM_readLE16 Unexecuted instantiation: zdict.c:MEM_readLE16 Line | Count | Source | 290 | 30.6k | { | 291 | 30.6k | if (MEM_isLittleEndian()) | 292 | 30.6k | 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 | 30.6k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_readLE16(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readLE16(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readLE16 Unexecuted instantiation: fse_read_ncount.c:MEM_readLE16 |
298 | | |
299 | | MEM_STATIC void MEM_writeLE16(void* memPtr, U16 val) |
300 | 48.5M | { |
301 | 48.5M | if (MEM_isLittleEndian()) { |
302 | 48.5M | MEM_write16(memPtr, val); |
303 | 48.5M | } else { |
304 | 1 | BYTE* p = (BYTE*)memPtr; |
305 | 1 | p[0] = (BYTE)val; |
306 | 1 | p[1] = (BYTE)(val>>8); |
307 | 1 | } |
308 | 48.5M | } 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 | 2.59M | { | 301 | 2.59M | if (MEM_isLittleEndian()) { | 302 | 2.59M | MEM_write16(memPtr, val); | 303 | 2.59M | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 2.59M | } |
zstd_compress.c:MEM_writeLE16 Line | Count | Source | 300 | 42.5M | { | 301 | 42.5M | if (MEM_isLittleEndian()) { | 302 | 42.5M | MEM_write16(memPtr, val); | 303 | 42.5M | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 42.5M | } |
zstd_compress_literals.c:MEM_writeLE16 Line | Count | Source | 300 | 1.36M | { | 301 | 1.36M | if (MEM_isLittleEndian()) { | 302 | 1.36M | MEM_write16(memPtr, val); | 303 | 1.36M | } else { | 304 | 1 | BYTE* p = (BYTE*)memPtr; | 305 | 1 | p[0] = (BYTE)val; | 306 | 1 | p[1] = (BYTE)(val>>8); | 307 | 1 | } | 308 | 1.36M | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE16 zstd_compress_superblock.c:MEM_writeLE16 Line | Count | Source | 300 | 1.70M | { | 301 | 1.70M | if (MEM_isLittleEndian()) { | 302 | 1.70M | MEM_write16(memPtr, val); | 303 | 1.70M | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 1.70M | } |
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 Line | Count | Source | 300 | 323k | { | 301 | 323k | if (MEM_isLittleEndian()) { | 302 | 323k | MEM_write16(memPtr, val); | 303 | 323k | } else { | 304 | 0 | BYTE* p = (BYTE*)memPtr; | 305 | 0 | p[0] = (BYTE)val; | 306 | 0 | p[1] = (BYTE)(val>>8); | 307 | 0 | } | 308 | 323k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_writeLE16(void*, unsigned short) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeLE16(void*, unsigned short) Unexecuted instantiation: huf_round_trip.c:MEM_writeLE16 Unexecuted instantiation: fse_read_ncount.c:MEM_writeLE16 |
309 | | |
310 | | MEM_STATIC U32 MEM_readLE24(const void* memPtr) |
311 | 88.1M | { |
312 | 88.1M | return (U32)MEM_readLE16(memPtr) + ((U32)(((const BYTE*)memPtr)[2]) << 16); |
313 | 88.1M | } 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 | 88.1M | { | 312 | 88.1M | return (U32)MEM_readLE16(memPtr) + ((U32)(((const BYTE*)memPtr)[2]) << 16); | 313 | 88.1M | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_readLE24(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readLE24(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readLE24 Unexecuted instantiation: fse_read_ncount.c:MEM_readLE24 |
314 | | |
315 | | MEM_STATIC void MEM_writeLE24(void* memPtr, U32 val) |
316 | 44.7M | { |
317 | 44.7M | MEM_writeLE16(memPtr, (U16)val); |
318 | 44.7M | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); |
319 | 44.7M | } 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 | 42.4M | { | 317 | 42.4M | MEM_writeLE16(memPtr, (U16)val); | 318 | 42.4M | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 42.4M | } |
zstd_compress_literals.c:MEM_writeLE24 Line | Count | Source | 316 | 577k | { | 317 | 577k | MEM_writeLE16(memPtr, (U16)val); | 318 | 577k | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 577k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE24 zstd_compress_superblock.c:MEM_writeLE24 Line | Count | Source | 316 | 1.70M | { | 317 | 1.70M | MEM_writeLE16(memPtr, (U16)val); | 318 | 1.70M | ((BYTE*)memPtr)[2] = (BYTE)(val>>16); | 319 | 1.70M | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeLE24(void*, unsigned int) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeLE24(void*, unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_writeLE24 Unexecuted instantiation: fse_read_ncount.c:MEM_writeLE24 |
320 | | |
321 | | MEM_STATIC U32 MEM_readLE32(const void* memPtr) |
322 | 2.88G | { |
323 | 2.88G | if (MEM_isLittleEndian()) |
324 | 2.88G | return MEM_read32(memPtr); |
325 | 18.4E | else |
326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); |
327 | 2.88G | } sequence_producer.c:MEM_readLE32 Line | Count | Source | 322 | 42.3M | { | 323 | 42.3M | if (MEM_isLittleEndian()) | 324 | 42.3M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 42.3M | } |
Unexecuted instantiation: util.c:MEM_readLE32 entropy_common.c:MEM_readLE32 Line | Count | Source | 322 | 46.9M | { | 323 | 46.9M | if (MEM_isLittleEndian()) | 324 | 46.9M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 46.9M | } |
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 | 247k | { | 323 | 247k | if (MEM_isLittleEndian()) | 324 | 247k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 247k | } |
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 | 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 | } |
Line | Count | Source | 322 | 94.1M | { | 323 | 94.1M | if (MEM_isLittleEndian()) | 324 | 94.1M | return MEM_read32(memPtr); | 325 | 18.4E | else | 326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); | 327 | 94.1M | } |
Line | Count | Source | 322 | 785M | { | 323 | 785M | if (MEM_isLittleEndian()) | 324 | 785M | return MEM_read32(memPtr); | 325 | 3.31k | else | 326 | 3.31k | return MEM_swap32(MEM_read32(memPtr)); | 327 | 785M | } |
Unexecuted instantiation: zstd_ldm.c:MEM_readLE32 Line | Count | Source | 322 | 1.67G | { | 323 | 1.67G | if (MEM_isLittleEndian()) | 324 | 1.67G | return MEM_read32(memPtr); | 325 | 18.4E | else | 326 | 18.4E | return MEM_swap32(MEM_read32(memPtr)); | 327 | 1.67G | } |
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 | 96.2k | { | 323 | 96.2k | if (MEM_isLittleEndian()) | 324 | 96.2k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 96.2k | } |
zstd_decompress.c:MEM_readLE32 Line | Count | Source | 322 | 2.95M | { | 323 | 2.95M | if (MEM_isLittleEndian()) | 324 | 2.95M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 2.95M | } |
zstd_decompress_block.c:MEM_readLE32 Line | Count | Source | 322 | 1.44M | { | 323 | 1.44M | if (MEM_isLittleEndian()) | 324 | 1.44M | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 1.44M | } |
Unexecuted instantiation: cover.c:MEM_readLE32 Unexecuted instantiation: fastcover.c:MEM_readLE32 Unexecuted instantiation: zdict.c:MEM_readLE32 Line | Count | Source | 322 | 441k | { | 323 | 441k | if (MEM_isLittleEndian()) | 324 | 441k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 441k | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_readLE32(void const*) zstdseek_decompress.c:MEM_readLE32(void const*) Line | Count | Source | 322 | 110k | { | 323 | 110k | if (MEM_isLittleEndian()) | 324 | 110k | return MEM_read32(memPtr); | 325 | 0 | else | 326 | 0 | return MEM_swap32(MEM_read32(memPtr)); | 327 | 110k | } |
Unexecuted instantiation: huf_round_trip.c:MEM_readLE32 Unexecuted instantiation: fse_read_ncount.c:MEM_readLE32 |
328 | | |
329 | | MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32) |
330 | 3.71M | { |
331 | 3.71M | if (MEM_isLittleEndian()) |
332 | 3.71M | MEM_write32(memPtr, val32); |
333 | 0 | else |
334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); |
335 | 3.71M | } 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 | 2.75M | { | 331 | 2.75M | if (MEM_isLittleEndian()) | 332 | 2.75M | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 2.75M | } |
zstd_compress_literals.c:MEM_writeLE32 Line | Count | Source | 330 | 423k | { | 331 | 423k | if (MEM_isLittleEndian()) | 332 | 423k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 423k | } |
Unexecuted instantiation: zstd_compress_sequences.c:MEM_writeLE32 zstd_compress_superblock.c:MEM_writeLE32 Line | Count | Source | 330 | 102k | { | 331 | 102k | if (MEM_isLittleEndian()) | 332 | 102k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 102k | } |
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 zstdmt_compress.c:MEM_writeLE32 Line | Count | Source | 330 | 7.21k | { | 331 | 7.21k | if (MEM_isLittleEndian()) | 332 | 7.21k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 7.21k | } |
Unexecuted instantiation: huf_decompress.c:MEM_writeLE32 Unexecuted instantiation: zstd_ddict.c:MEM_writeLE32 zstd_decompress.c:MEM_writeLE32 Line | Count | Source | 330 | 11.5k | { | 331 | 11.5k | if (MEM_isLittleEndian()) | 332 | 11.5k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 11.5k | } |
Unexecuted instantiation: zstd_decompress_block.c:MEM_writeLE32 Unexecuted instantiation: cover.c:MEM_writeLE32 Unexecuted instantiation: fastcover.c:MEM_writeLE32 Line | Count | Source | 330 | 303k | { | 331 | 303k | if (MEM_isLittleEndian()) | 332 | 303k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 303k | } |
Unexecuted instantiation: zstd_v05.c:MEM_writeLE32 zstdseek_compress.c:MEM_writeLE32(void*, unsigned int) Line | Count | Source | 330 | 110k | { | 331 | 110k | if (MEM_isLittleEndian()) | 332 | 110k | MEM_write32(memPtr, val32); | 333 | 0 | else | 334 | 0 | MEM_write32(memPtr, MEM_swap32(val32)); | 335 | 110k | } |
Unexecuted instantiation: zstdseek_decompress.c:MEM_writeLE32(void*, unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_writeLE32 Unexecuted instantiation: fse_read_ncount.c:MEM_writeLE32 |
336 | | |
337 | | MEM_STATIC U64 MEM_readLE64(const void* memPtr) |
338 | 7.75G | { |
339 | 7.75G | if (MEM_isLittleEndian()) |
340 | 7.75G | return MEM_read64(memPtr); |
341 | 4.18k | else |
342 | 4.18k | return MEM_swap64(MEM_read64(memPtr)); |
343 | 7.75G | } 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 | 44.5M | { | 339 | 44.5M | if (MEM_isLittleEndian()) | 340 | 44.5M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 44.5M | } |
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 | 2.07G | { | 339 | 2.07G | if (MEM_isLittleEndian()) | 340 | 2.07G | return MEM_read64(memPtr); | 341 | 907 | else | 342 | 907 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 2.07G | } |
Line | Count | Source | 338 | 685M | { | 339 | 685M | if (MEM_isLittleEndian()) | 340 | 685M | return MEM_read64(memPtr); | 341 | 18.4E | else | 342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); | 343 | 685M | } |
Line | Count | Source | 338 | 1.30G | { | 339 | 1.30G | if (MEM_isLittleEndian()) | 340 | 1.30G | return MEM_read64(memPtr); | 341 | 18.4E | else | 342 | 18.4E | return MEM_swap64(MEM_read64(memPtr)); | 343 | 1.30G | } |
Unexecuted instantiation: zstd_ldm.c:MEM_readLE64 Line | Count | Source | 338 | 338M | { | 339 | 338M | if (MEM_isLittleEndian()) | 340 | 338M | return MEM_read64(memPtr); | 341 | 18.6k | else | 342 | 18.6k | return MEM_swap64(MEM_read64(memPtr)); | 343 | 338M | } |
Unexecuted instantiation: zstd_preSplit.c:MEM_readLE64 Unexecuted instantiation: zstdmt_compress.c:MEM_readLE64 huf_decompress.c:MEM_readLE64 Line | Count | Source | 338 | 110M | { | 339 | 110M | if (MEM_isLittleEndian()) | 340 | 110M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 110M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLE64 zstd_decompress.c:MEM_readLE64 Line | Count | Source | 338 | 8.49k | { | 339 | 8.49k | if (MEM_isLittleEndian()) | 340 | 8.49k | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 8.49k | } |
zstd_decompress_block.c:MEM_readLE64 Line | Count | Source | 338 | 160M | { | 339 | 160M | if (MEM_isLittleEndian()) | 340 | 160M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 160M | } |
Unexecuted instantiation: cover.c:MEM_readLE64 Line | Count | Source | 338 | 3.04G | { | 339 | 3.04G | if (MEM_isLittleEndian()) | 340 | 3.04G | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 3.04G | } |
Unexecuted instantiation: zdict.c:MEM_readLE64 Line | Count | Source | 338 | 2.55M | { | 339 | 2.55M | if (MEM_isLittleEndian()) | 340 | 2.55M | return MEM_read64(memPtr); | 341 | 0 | else | 342 | 0 | return MEM_swap64(MEM_read64(memPtr)); | 343 | 2.55M | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_readLE64(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readLE64(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readLE64 Unexecuted instantiation: fse_read_ncount.c:MEM_readLE64 |
344 | | |
345 | | MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64) |
346 | 807M | { |
347 | 807M | if (MEM_isLittleEndian()) |
348 | 807M | MEM_write64(memPtr, val64); |
349 | 18.4E | else |
350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); |
351 | 807M | } 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 | 152M | { | 347 | 152M | if (MEM_isLittleEndian()) | 348 | 152M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 152M | } |
Unexecuted instantiation: hist.c:MEM_writeLE64 huf_compress.c:MEM_writeLE64 Line | Count | Source | 346 | 422M | { | 347 | 422M | if (MEM_isLittleEndian()) | 348 | 422M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 422M | } |
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 | 232M | { | 347 | 232M | if (MEM_isLittleEndian()) | 348 | 232M | MEM_write64(memPtr, val64); | 349 | 18.4E | else | 350 | 18.4E | MEM_write64(memPtr, MEM_swap64(val64)); | 351 | 232M | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeLE64(void*, unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeLE64(void*, unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_writeLE64 Unexecuted instantiation: fse_read_ncount.c:MEM_writeLE64 |
352 | | |
353 | | MEM_STATIC size_t MEM_readLEST(const void* memPtr) |
354 | 317M | { |
355 | 317M | if (MEM_32bits()) |
356 | 0 | return (size_t)MEM_readLE32(memPtr); |
357 | 317M | else |
358 | 317M | return (size_t)MEM_readLE64(memPtr); |
359 | 317M | } 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 | 44.5M | { | 355 | 44.5M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 44.5M | else | 358 | 44.5M | return (size_t)MEM_readLE64(memPtr); | 359 | 44.5M | } |
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 | 110M | { | 355 | 110M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 110M | else | 358 | 110M | return (size_t)MEM_readLE64(memPtr); | 359 | 110M | } |
Unexecuted instantiation: zstd_ddict.c:MEM_readLEST Unexecuted instantiation: zstd_decompress.c:MEM_readLEST zstd_decompress_block.c:MEM_readLEST Line | Count | Source | 354 | 160M | { | 355 | 160M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 160M | else | 358 | 160M | return (size_t)MEM_readLE64(memPtr); | 359 | 160M | } |
Unexecuted instantiation: cover.c:MEM_readLEST Unexecuted instantiation: fastcover.c:MEM_readLEST Unexecuted instantiation: zdict.c:MEM_readLEST Line | Count | Source | 354 | 2.55M | { | 355 | 2.55M | if (MEM_32bits()) | 356 | 0 | return (size_t)MEM_readLE32(memPtr); | 357 | 2.55M | else | 358 | 2.55M | return (size_t)MEM_readLE64(memPtr); | 359 | 2.55M | } |
Unexecuted instantiation: zstdseek_compress.c:MEM_readLEST(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readLEST(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readLEST Unexecuted instantiation: fse_read_ncount.c:MEM_readLEST |
360 | | |
361 | | MEM_STATIC void MEM_writeLEST(void* memPtr, size_t val) |
362 | 807M | { |
363 | 807M | if (MEM_32bits()) |
364 | 0 | MEM_writeLE32(memPtr, (U32)val); |
365 | 807M | else |
366 | 807M | MEM_writeLE64(memPtr, (U64)val); |
367 | 807M | } 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 | 152M | { | 363 | 152M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 152M | else | 366 | 152M | MEM_writeLE64(memPtr, (U64)val); | 367 | 152M | } |
Unexecuted instantiation: hist.c:MEM_writeLEST huf_compress.c:MEM_writeLEST Line | Count | Source | 362 | 422M | { | 363 | 422M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 422M | else | 366 | 422M | MEM_writeLE64(memPtr, (U64)val); | 367 | 422M | } |
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 | 232M | { | 363 | 232M | if (MEM_32bits()) | 364 | 0 | MEM_writeLE32(memPtr, (U32)val); | 365 | 232M | else | 366 | 232M | MEM_writeLE64(memPtr, (U64)val); | 367 | 232M | } |
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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeLEST(void*, unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeLEST(void*, unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_writeLEST Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_readBE32(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readBE32(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readBE32 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeBE32(void*, unsigned int) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeBE32(void*, unsigned int) Unexecuted instantiation: huf_round_trip.c:MEM_writeBE32 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_readBE64(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readBE64(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readBE64 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeBE64(void*, unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeBE64(void*, unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_writeBE64 Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_readBEST(void const*) Unexecuted instantiation: zstdseek_decompress.c:MEM_readBEST(void const*) Unexecuted instantiation: huf_round_trip.c:MEM_readBEST Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_writeBEST(void*, unsigned long) Unexecuted instantiation: zstdseek_decompress.c:MEM_writeBEST(void*, unsigned long) Unexecuted instantiation: huf_round_trip.c:MEM_writeBEST Unexecuted instantiation: fse_read_ncount.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 Unexecuted instantiation: zstdseek_compress.c:MEM_check() Unexecuted instantiation: zstdseek_decompress.c:MEM_check() Unexecuted instantiation: huf_round_trip.c:MEM_check Unexecuted instantiation: fse_read_ncount.c:MEM_check |
421 | | |
422 | | #endif /* MEM_H_MODULE */ |