/src/php-src/Zend/zend_bitset.h
Line | Count | Source |
1 | | /* |
2 | | +----------------------------------------------------------------------+ |
3 | | | Zend OPcache JIT | |
4 | | +----------------------------------------------------------------------+ |
5 | | | Copyright (c) The PHP Group | |
6 | | +----------------------------------------------------------------------+ |
7 | | | This source file is subject to version 3.01 of the PHP license, | |
8 | | | that is bundled with this package in the file LICENSE, and is | |
9 | | | available through the world-wide-web at the following url: | |
10 | | | https://www.php.net/license/3_01.txt | |
11 | | | If you did not receive a copy of the PHP license and are unable to | |
12 | | | obtain it through the world-wide-web, please send a note to | |
13 | | | license@php.net so we can mail you a copy immediately. | |
14 | | +----------------------------------------------------------------------+ |
15 | | | Authors: Dmitry Stogov <dmitry@php.net> | |
16 | | +----------------------------------------------------------------------+ |
17 | | */ |
18 | | |
19 | | #ifndef _ZEND_BITSET_H_ |
20 | | #define _ZEND_BITSET_H_ |
21 | | |
22 | | #include <stdint.h> |
23 | | #include <stdbool.h> |
24 | | #include <string.h> |
25 | | |
26 | | #include "zend_portability.h" |
27 | | #include "zend_long.h" |
28 | | |
29 | | typedef zend_ulong *zend_bitset; |
30 | | |
31 | 14.8k | #define ZEND_BITSET_ELM_SIZE sizeof(zend_ulong) |
32 | | |
33 | | #if SIZEOF_ZEND_LONG == 4 |
34 | | # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) |
35 | | # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) |
36 | | #elif SIZEOF_ZEND_LONG == 8 |
37 | 92.1k | # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) |
38 | 92.1k | # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) |
39 | | #else |
40 | | # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) |
41 | | # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) |
42 | | #endif |
43 | | |
44 | | #define ZEND_BITSET_ALLOCA(n, use_heap) \ |
45 | 207 | (zend_bitset)do_alloca((n) * ZEND_BITSET_ELM_SIZE, use_heap) |
46 | | |
47 | | /* Number of trailing zero bits (0x01 -> 0; 0x40 -> 6; 0x00 -> LEN) */ |
48 | | ZEND_ATTRIBUTE_CONST static zend_always_inline int zend_ulong_ntz(zend_ulong num) |
49 | 6.67k | { |
50 | 6.67k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ |
51 | 6.67k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) |
52 | 6.67k | return __builtin_ctzl(num); |
53 | | #elif (defined(__GNUC__) || __has_builtin(__builtin_ctzll)) && defined(PHP_HAVE_BUILTIN_CTZLL) |
54 | | return __builtin_ctzll(num); |
55 | | #elif defined(_WIN32) |
56 | | unsigned long index; |
57 | | |
58 | | #if defined(_WIN64) |
59 | | if (!BitScanForward64(&index, num)) { |
60 | | #else |
61 | | if (!BitScanForward(&index, num)) { |
62 | | #endif |
63 | | return SIZEOF_ZEND_LONG * 8; |
64 | | } |
65 | | |
66 | | return (int) index; |
67 | | #else |
68 | | int n; |
69 | | |
70 | | if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8; |
71 | | |
72 | | n = 1; |
73 | | #if SIZEOF_ZEND_LONG == 8 |
74 | | if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);} |
75 | | #endif |
76 | | if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;} |
77 | | if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;} |
78 | | if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;} |
79 | | if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;} |
80 | | return n - (num & 1); |
81 | | #endif |
82 | 6.67k | } Unexecuted instantiation: zend_jit.c:zend_ulong_ntz Unexecuted instantiation: array.c:zend_ulong_ntz Unexecuted instantiation: math.c:zend_ulong_ntz Unexecuted instantiation: string.c:zend_ulong_ntz Unexecuted instantiation: block_pass.c:zend_ulong_ntz Unexecuted instantiation: compact_vars.c:zend_ulong_ntz Line | Count | Source | 49 | 884 | { | 50 | 884 | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 884 | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 884 | return __builtin_ctzl(num); | 53 | | #elif (defined(__GNUC__) || __has_builtin(__builtin_ctzll)) && defined(PHP_HAVE_BUILTIN_CTZLL) | 54 | | return __builtin_ctzll(num); | 55 | | #elif defined(_WIN32) | 56 | | unsigned long index; | 57 | | | 58 | | #if defined(_WIN64) | 59 | | if (!BitScanForward64(&index, num)) { | 60 | | #else | 61 | | if (!BitScanForward(&index, num)) { | 62 | | #endif | 63 | | return SIZEOF_ZEND_LONG * 8; | 64 | | } | 65 | | | 66 | | return (int) index; | 67 | | #else | 68 | | int n; | 69 | | | 70 | | if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8; | 71 | | | 72 | | n = 1; | 73 | | #if SIZEOF_ZEND_LONG == 8 | 74 | | if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);} | 75 | | #endif | 76 | | if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;} | 77 | | if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;} | 78 | | if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;} | 79 | | if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;} | 80 | | return n - (num & 1); | 81 | | #endif | 82 | 884 | } |
Unexecuted instantiation: dfa_pass.c:zend_ulong_ntz Unexecuted instantiation: escape_analysis.c:zend_ulong_ntz Unexecuted instantiation: optimize_temp_vars_5.c:zend_ulong_ntz Unexecuted instantiation: sccp.c:zend_ulong_ntz Line | Count | Source | 49 | 1.07k | { | 50 | 1.07k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 1.07k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 1.07k | return __builtin_ctzl(num); | 53 | | #elif (defined(__GNUC__) || __has_builtin(__builtin_ctzll)) && defined(PHP_HAVE_BUILTIN_CTZLL) | 54 | | return __builtin_ctzll(num); | 55 | | #elif defined(_WIN32) | 56 | | unsigned long index; | 57 | | | 58 | | #if defined(_WIN64) | 59 | | if (!BitScanForward64(&index, num)) { | 60 | | #else | 61 | | if (!BitScanForward(&index, num)) { | 62 | | #endif | 63 | | return SIZEOF_ZEND_LONG * 8; | 64 | | } | 65 | | | 66 | | return (int) index; | 67 | | #else | 68 | | int n; | 69 | | | 70 | | if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8; | 71 | | | 72 | | n = 1; | 73 | | #if SIZEOF_ZEND_LONG == 8 | 74 | | if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);} | 75 | | #endif | 76 | | if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;} | 77 | | if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;} | 78 | | if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;} | 79 | | if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;} | 80 | | return n - (num & 1); | 81 | | #endif | 82 | 1.07k | } |
Unexecuted instantiation: zend_call_graph.c:zend_ulong_ntz Unexecuted instantiation: zend_cfg.c:zend_ulong_ntz Unexecuted instantiation: zend_dfg.c:zend_ulong_ntz Unexecuted instantiation: zend_dump.c:zend_ulong_ntz Unexecuted instantiation: zend_func_info.c:zend_ulong_ntz zend_inference.c:zend_ulong_ntz Line | Count | Source | 49 | 4.72k | { | 50 | 4.72k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 4.72k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 4.72k | return __builtin_ctzl(num); | 53 | | #elif (defined(__GNUC__) || __has_builtin(__builtin_ctzll)) && defined(PHP_HAVE_BUILTIN_CTZLL) | 54 | | return __builtin_ctzll(num); | 55 | | #elif defined(_WIN32) | 56 | | unsigned long index; | 57 | | | 58 | | #if defined(_WIN64) | 59 | | if (!BitScanForward64(&index, num)) { | 60 | | #else | 61 | | if (!BitScanForward(&index, num)) { | 62 | | #endif | 63 | | return SIZEOF_ZEND_LONG * 8; | 64 | | } | 65 | | | 66 | | return (int) index; | 67 | | #else | 68 | | int n; | 69 | | | 70 | | if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8; | 71 | | | 72 | | n = 1; | 73 | | #if SIZEOF_ZEND_LONG == 8 | 74 | | if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);} | 75 | | #endif | 76 | | if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;} | 77 | | if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;} | 78 | | if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;} | 79 | | if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;} | 80 | | return n - (num & 1); | 81 | | #endif | 82 | 4.72k | } |
Unexecuted instantiation: zend_optimizer.c:zend_ulong_ntz Unexecuted instantiation: zend_ssa.c:zend_ulong_ntz Unexecuted instantiation: zend_alloc.c:zend_ulong_ntz |
83 | | |
84 | | /* Number of leading zero bits (Undefined for zero) */ |
85 | | ZEND_ATTRIBUTE_CONST static zend_always_inline int zend_ulong_nlz(zend_ulong num) |
86 | 0 | { |
87 | 0 | #if (defined(__GNUC__) || __has_builtin(__builtin_clzl)) \ |
88 | 0 | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CLZL) |
89 | 0 | return __builtin_clzl(num); |
90 | | #elif (defined(__GNUC__) || __has_builtin(__builtin_clzll)) && defined(PHP_HAVE_BUILTIN_CLZLL) |
91 | | return __builtin_clzll(num); |
92 | | #elif defined(_WIN32) |
93 | | unsigned long index; |
94 | | |
95 | | #if defined(_WIN64) |
96 | | if (!BitScanReverse64(&index, num)) { |
97 | | #else |
98 | | if (!BitScanReverse(&index, num)) { |
99 | | #endif |
100 | | return SIZEOF_ZEND_LONG * 8; |
101 | | } |
102 | | |
103 | | return (int) (SIZEOF_ZEND_LONG * 8 - 1)- index; |
104 | | #else |
105 | | zend_ulong x; |
106 | | int n; |
107 | | |
108 | | #if SIZEOF_ZEND_LONG == 8 |
109 | | n = 64; |
110 | | x = num >> 32; if (x != 0) {n -= 32; num = x;} |
111 | | #else |
112 | | n = 32; |
113 | | #endif |
114 | | x = num >> 16; if (x != 0) {n -= 16; num = x;} |
115 | | x = num >> 8; if (x != 0) {n -= 8; num = x;} |
116 | | x = num >> 4; if (x != 0) {n -= 4; num = x;} |
117 | | x = num >> 2; if (x != 0) {n -= 2; num = x;} |
118 | | x = num >> 1; if (x != 0) return n - 2; |
119 | | return n - num; |
120 | | #endif |
121 | 0 | } Unexecuted instantiation: zend_jit.c:zend_ulong_nlz Unexecuted instantiation: array.c:zend_ulong_nlz Unexecuted instantiation: math.c:zend_ulong_nlz Unexecuted instantiation: string.c:zend_ulong_nlz Unexecuted instantiation: block_pass.c:zend_ulong_nlz Unexecuted instantiation: compact_vars.c:zend_ulong_nlz Unexecuted instantiation: dce.c:zend_ulong_nlz Unexecuted instantiation: dfa_pass.c:zend_ulong_nlz Unexecuted instantiation: escape_analysis.c:zend_ulong_nlz Unexecuted instantiation: optimize_temp_vars_5.c:zend_ulong_nlz Unexecuted instantiation: sccp.c:zend_ulong_nlz Unexecuted instantiation: scdf.c:zend_ulong_nlz Unexecuted instantiation: zend_call_graph.c:zend_ulong_nlz Unexecuted instantiation: zend_cfg.c:zend_ulong_nlz Unexecuted instantiation: zend_dfg.c:zend_ulong_nlz Unexecuted instantiation: zend_dump.c:zend_ulong_nlz Unexecuted instantiation: zend_func_info.c:zend_ulong_nlz Unexecuted instantiation: zend_inference.c:zend_ulong_nlz Unexecuted instantiation: zend_optimizer.c:zend_ulong_nlz Unexecuted instantiation: zend_ssa.c:zend_ulong_nlz Unexecuted instantiation: zend_alloc.c:zend_ulong_nlz |
122 | | |
123 | | /* Returns the number of zend_ulong words needed to store a bitset that is N |
124 | | bits long. */ |
125 | | static inline uint32_t zend_bitset_len(uint32_t n) |
126 | 1.82k | { |
127 | 1.82k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); |
128 | 1.82k | } Unexecuted instantiation: zend_jit.c:zend_bitset_len Unexecuted instantiation: array.c:zend_bitset_len Unexecuted instantiation: math.c:zend_bitset_len Unexecuted instantiation: string.c:zend_bitset_len block_pass.c:zend_bitset_len Line | Count | Source | 126 | 208 | { | 127 | 208 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 208 | } |
compact_vars.c:zend_bitset_len Line | Count | Source | 126 | 82 | { | 127 | 82 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 82 | } |
Line | Count | Source | 126 | 64 | { | 127 | 64 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 64 | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_len Unexecuted instantiation: escape_analysis.c:zend_bitset_len optimize_temp_vars_5.c:zend_bitset_len Line | Count | Source | 126 | 82 | { | 127 | 82 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 82 | } |
Unexecuted instantiation: sccp.c:zend_bitset_len Line | Count | Source | 126 | 128 | { | 127 | 128 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 128 | } |
zend_call_graph.c:zend_bitset_len Line | Count | Source | 126 | 61 | { | 127 | 61 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 61 | } |
zend_cfg.c:zend_bitset_len Line | Count | Source | 126 | 857 | { | 127 | 857 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 857 | } |
zend_dfg.c:zend_bitset_len Line | Count | Source | 126 | 32 | { | 127 | 32 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 32 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_len Unexecuted instantiation: zend_func_info.c:zend_bitset_len zend_inference.c:zend_bitset_len Line | Count | Source | 126 | 279 | { | 127 | 279 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 279 | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_len zend_ssa.c:zend_bitset_len Line | Count | Source | 126 | 32 | { | 127 | 32 | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 32 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_len |
129 | | |
130 | | static inline bool zend_bitset_in(zend_bitset set, uint32_t n) |
131 | 39.2k | { |
132 | 39.2k | return ZEND_BIT_TEST(set, n); |
133 | 39.2k | } Unexecuted instantiation: zend_jit.c:zend_bitset_in Unexecuted instantiation: array.c:zend_bitset_in Unexecuted instantiation: math.c:zend_bitset_in Unexecuted instantiation: string.c:zend_bitset_in block_pass.c:zend_bitset_in Line | Count | Source | 131 | 10.7k | { | 132 | 10.7k | return ZEND_BIT_TEST(set, n); | 133 | 10.7k | } |
compact_vars.c:zend_bitset_in Line | Count | Source | 131 | 1.59k | { | 132 | 1.59k | return ZEND_BIT_TEST(set, n); | 133 | 1.59k | } |
Line | Count | Source | 131 | 6.18k | { | 132 | 6.18k | return ZEND_BIT_TEST(set, n); | 133 | 6.18k | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_in Unexecuted instantiation: escape_analysis.c:zend_bitset_in optimize_temp_vars_5.c:zend_bitset_in Line | Count | Source | 131 | 2.61k | { | 132 | 2.61k | return ZEND_BIT_TEST(set, n); | 133 | 2.61k | } |
Line | Count | Source | 131 | 1.61k | { | 132 | 1.61k | return ZEND_BIT_TEST(set, n); | 133 | 1.61k | } |
Line | Count | Source | 131 | 4.23k | { | 132 | 4.23k | return ZEND_BIT_TEST(set, n); | 133 | 4.23k | } |
zend_call_graph.c:zend_bitset_in Line | Count | Source | 131 | 10 | { | 132 | 10 | return ZEND_BIT_TEST(set, n); | 133 | 10 | } |
zend_cfg.c:zend_bitset_in Line | Count | Source | 131 | 6.47k | { | 132 | 6.47k | return ZEND_BIT_TEST(set, n); | 133 | 6.47k | } |
zend_dfg.c:zend_bitset_in Line | Count | Source | 131 | 4.82k | { | 132 | 4.82k | return ZEND_BIT_TEST(set, n); | 133 | 4.82k | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_in Unexecuted instantiation: zend_func_info.c:zend_bitset_in zend_inference.c:zend_bitset_in Line | Count | Source | 131 | 550 | { | 132 | 550 | return ZEND_BIT_TEST(set, n); | 133 | 550 | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_in zend_ssa.c:zend_bitset_in Line | Count | Source | 131 | 321 | { | 132 | 321 | return ZEND_BIT_TEST(set, n); | 133 | 321 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_in |
134 | | |
135 | | static inline void zend_bitset_incl(zend_bitset set, uint32_t n) |
136 | 65.7k | { |
137 | 65.7k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); |
138 | 65.7k | } Unexecuted instantiation: zend_jit.c:zend_bitset_incl Unexecuted instantiation: array.c:zend_bitset_incl Unexecuted instantiation: math.c:zend_bitset_incl Unexecuted instantiation: string.c:zend_bitset_incl block_pass.c:zend_bitset_incl Line | Count | Source | 136 | 10.8k | { | 137 | 10.8k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 10.8k | } |
compact_vars.c:zend_bitset_incl Line | Count | Source | 136 | 11.0k | { | 137 | 11.0k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 11.0k | } |
Line | Count | Source | 136 | 5.03k | { | 137 | 5.03k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 5.03k | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_incl Unexecuted instantiation: escape_analysis.c:zend_bitset_incl optimize_temp_vars_5.c:zend_bitset_incl Line | Count | Source | 136 | 2.55k | { | 137 | 2.55k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 2.55k | } |
Line | Count | Source | 136 | 6.17k | { | 137 | 6.17k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 6.17k | } |
Line | Count | Source | 136 | 2.80k | { | 137 | 2.80k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 2.80k | } |
zend_call_graph.c:zend_bitset_incl Line | Count | Source | 136 | 10 | { | 137 | 10 | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 10 | } |
zend_cfg.c:zend_bitset_incl Line | Count | Source | 136 | 4.39k | { | 137 | 4.39k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 4.39k | } |
zend_dfg.c:zend_bitset_incl Line | Count | Source | 136 | 7.67k | { | 137 | 7.67k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 7.67k | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_incl Unexecuted instantiation: zend_func_info.c:zend_bitset_incl zend_inference.c:zend_bitset_incl Line | Count | Source | 136 | 14.8k | { | 137 | 14.8k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 14.8k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_incl zend_ssa.c:zend_bitset_incl Line | Count | Source | 136 | 321 | { | 137 | 321 | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 321 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_incl |
139 | | |
140 | | static inline void zend_bitset_excl(zend_bitset set, uint32_t n) |
141 | 26.3k | { |
142 | 26.3k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); |
143 | 26.3k | } Unexecuted instantiation: zend_jit.c:zend_bitset_excl Unexecuted instantiation: array.c:zend_bitset_excl Unexecuted instantiation: math.c:zend_bitset_excl Unexecuted instantiation: string.c:zend_bitset_excl block_pass.c:zend_bitset_excl Line | Count | Source | 141 | 2.49k | { | 142 | 2.49k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 2.49k | } |
Unexecuted instantiation: compact_vars.c:zend_bitset_excl Line | Count | Source | 141 | 6.05k | { | 142 | 6.05k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 6.05k | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_excl Unexecuted instantiation: escape_analysis.c:zend_bitset_excl optimize_temp_vars_5.c:zend_bitset_excl Line | Count | Source | 141 | 2.55k | { | 142 | 2.55k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 2.55k | } |
Unexecuted instantiation: sccp.c:zend_bitset_excl Line | Count | Source | 141 | 5.87k | { | 142 | 5.87k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 5.87k | } |
Unexecuted instantiation: zend_call_graph.c:zend_bitset_excl Unexecuted instantiation: zend_cfg.c:zend_bitset_excl zend_dfg.c:zend_bitset_excl Line | Count | Source | 141 | 874 | { | 142 | 874 | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 874 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_excl Unexecuted instantiation: zend_func_info.c:zend_bitset_excl zend_inference.c:zend_bitset_excl Line | Count | Source | 141 | 8.51k | { | 142 | 8.51k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 8.51k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_excl Unexecuted instantiation: zend_ssa.c:zend_bitset_excl Unexecuted instantiation: zend_alloc.c:zend_bitset_excl |
144 | | |
145 | | static inline void zend_bitset_clear(zend_bitset set, uint32_t len) |
146 | 1.36k | { |
147 | 1.36k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); |
148 | 1.36k | } Unexecuted instantiation: zend_jit.c:zend_bitset_clear Unexecuted instantiation: array.c:zend_bitset_clear Unexecuted instantiation: math.c:zend_bitset_clear Unexecuted instantiation: string.c:zend_bitset_clear block_pass.c:zend_bitset_clear Line | Count | Source | 146 | 974 | { | 147 | 974 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 974 | } |
compact_vars.c:zend_bitset_clear Line | Count | Source | 146 | 82 | { | 147 | 82 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 82 | } |
Unexecuted instantiation: dce.c:zend_bitset_clear Unexecuted instantiation: dfa_pass.c:zend_bitset_clear Unexecuted instantiation: escape_analysis.c:zend_bitset_clear optimize_temp_vars_5.c:zend_bitset_clear Line | Count | Source | 146 | 82 | { | 147 | 82 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 82 | } |
Unexecuted instantiation: sccp.c:zend_bitset_clear Unexecuted instantiation: scdf.c:zend_bitset_clear Unexecuted instantiation: zend_call_graph.c:zend_bitset_clear zend_cfg.c:zend_bitset_clear Line | Count | Source | 146 | 69 | { | 147 | 69 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 69 | } |
zend_dfg.c:zend_bitset_clear Line | Count | Source | 146 | 32 | { | 147 | 32 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 32 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_clear Unexecuted instantiation: zend_func_info.c:zend_bitset_clear zend_inference.c:zend_bitset_clear Line | Count | Source | 146 | 93 | { | 147 | 93 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 93 | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_clear zend_ssa.c:zend_bitset_clear Line | Count | Source | 146 | 32 | { | 147 | 32 | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 32 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_clear |
149 | | |
150 | | static inline bool zend_bitset_empty(zend_bitset set, uint32_t len) |
151 | 6.76k | { |
152 | 6.76k | uint32_t i; |
153 | 70.9k | for (i = 0; i < len; i++) { |
154 | 70.1k | if (set[i]) { |
155 | 6.03k | return 0; |
156 | 6.03k | } |
157 | 70.1k | } |
158 | 733 | return 1; |
159 | 6.76k | } Unexecuted instantiation: zend_jit.c:zend_bitset_empty Unexecuted instantiation: array.c:zend_bitset_empty Unexecuted instantiation: math.c:zend_bitset_empty Unexecuted instantiation: string.c:zend_bitset_empty Unexecuted instantiation: block_pass.c:zend_bitset_empty Unexecuted instantiation: compact_vars.c:zend_bitset_empty Line | Count | Source | 151 | 83 | { | 152 | 83 | uint32_t i; | 153 | 327 | for (i = 0; i < len; i++) { | 154 | 256 | if (set[i]) { | 155 | 12 | return 0; | 156 | 12 | } | 157 | 256 | } | 158 | 71 | return 1; | 159 | 83 | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_empty Unexecuted instantiation: escape_analysis.c:zend_bitset_empty Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_empty Unexecuted instantiation: sccp.c:zend_bitset_empty Line | Count | Source | 151 | 233 | { | 152 | 233 | uint32_t i; | 153 | 699 | for (i = 0; i < len; i++) { | 154 | 538 | if (set[i]) { | 155 | 72 | return 0; | 156 | 72 | } | 157 | 538 | } | 158 | 161 | return 1; | 159 | 233 | } |
Unexecuted instantiation: zend_call_graph.c:zend_bitset_empty Unexecuted instantiation: zend_cfg.c:zend_bitset_empty zend_dfg.c:zend_bitset_empty Line | Count | Source | 151 | 906 | { | 152 | 906 | uint32_t i; | 153 | 946 | for (i = 0; i < len; i++) { | 154 | 914 | if (set[i]) { | 155 | 874 | return 0; | 156 | 874 | } | 157 | 914 | } | 158 | 32 | return 1; | 159 | 906 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_empty Unexecuted instantiation: zend_func_info.c:zend_bitset_empty zend_inference.c:zend_bitset_empty Line | Count | Source | 151 | 4.75k | { | 152 | 4.75k | uint32_t i; | 153 | 63.9k | for (i = 0; i < len; i++) { | 154 | 63.9k | if (set[i]) { | 155 | 4.72k | return 0; | 156 | 4.72k | } | 157 | 63.9k | } | 158 | 32 | return 1; | 159 | 4.75k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_empty zend_ssa.c:zend_bitset_empty Line | Count | Source | 151 | 791 | { | 152 | 791 | uint32_t i; | 153 | 4.99k | for (i = 0; i < len; i++) { | 154 | 4.56k | if (set[i]) { | 155 | 354 | return 0; | 156 | 354 | } | 157 | 4.56k | } | 158 | 437 | return 1; | 159 | 791 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_empty |
160 | | |
161 | | static inline void zend_bitset_fill(zend_bitset set, uint32_t len) |
162 | 0 | { |
163 | 0 | memset(set, 0xff, len * ZEND_BITSET_ELM_SIZE); |
164 | 0 | } Unexecuted instantiation: zend_jit.c:zend_bitset_fill Unexecuted instantiation: array.c:zend_bitset_fill Unexecuted instantiation: math.c:zend_bitset_fill Unexecuted instantiation: string.c:zend_bitset_fill Unexecuted instantiation: block_pass.c:zend_bitset_fill Unexecuted instantiation: compact_vars.c:zend_bitset_fill Unexecuted instantiation: dce.c:zend_bitset_fill Unexecuted instantiation: dfa_pass.c:zend_bitset_fill Unexecuted instantiation: escape_analysis.c:zend_bitset_fill Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_fill Unexecuted instantiation: sccp.c:zend_bitset_fill Unexecuted instantiation: scdf.c:zend_bitset_fill Unexecuted instantiation: zend_call_graph.c:zend_bitset_fill Unexecuted instantiation: zend_cfg.c:zend_bitset_fill Unexecuted instantiation: zend_dfg.c:zend_bitset_fill Unexecuted instantiation: zend_dump.c:zend_bitset_fill Unexecuted instantiation: zend_func_info.c:zend_bitset_fill Unexecuted instantiation: zend_inference.c:zend_bitset_fill Unexecuted instantiation: zend_optimizer.c:zend_bitset_fill Unexecuted instantiation: zend_ssa.c:zend_bitset_fill Unexecuted instantiation: zend_alloc.c:zend_bitset_fill |
165 | | |
166 | | static inline bool zend_bitset_equal(zend_bitset set1, zend_bitset set2, uint32_t len) |
167 | 874 | { |
168 | 874 | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; |
169 | 874 | } Unexecuted instantiation: zend_jit.c:zend_bitset_equal Unexecuted instantiation: array.c:zend_bitset_equal Unexecuted instantiation: math.c:zend_bitset_equal Unexecuted instantiation: string.c:zend_bitset_equal Unexecuted instantiation: block_pass.c:zend_bitset_equal Unexecuted instantiation: compact_vars.c:zend_bitset_equal Unexecuted instantiation: dce.c:zend_bitset_equal Unexecuted instantiation: dfa_pass.c:zend_bitset_equal Unexecuted instantiation: escape_analysis.c:zend_bitset_equal Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_equal Unexecuted instantiation: sccp.c:zend_bitset_equal Unexecuted instantiation: scdf.c:zend_bitset_equal Unexecuted instantiation: zend_call_graph.c:zend_bitset_equal Unexecuted instantiation: zend_cfg.c:zend_bitset_equal zend_dfg.c:zend_bitset_equal Line | Count | Source | 167 | 874 | { | 168 | 874 | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; | 169 | 874 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_equal Unexecuted instantiation: zend_func_info.c:zend_bitset_equal Unexecuted instantiation: zend_inference.c:zend_bitset_equal Unexecuted instantiation: zend_optimizer.c:zend_bitset_equal Unexecuted instantiation: zend_ssa.c:zend_bitset_equal Unexecuted instantiation: zend_alloc.c:zend_bitset_equal |
170 | | |
171 | | static inline void zend_bitset_copy(zend_bitset set1, zend_bitset set2, uint32_t len) |
172 | 2.46k | { |
173 | 2.46k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); |
174 | 2.46k | } Unexecuted instantiation: zend_jit.c:zend_bitset_copy Unexecuted instantiation: array.c:zend_bitset_copy Unexecuted instantiation: math.c:zend_bitset_copy Unexecuted instantiation: string.c:zend_bitset_copy block_pass.c:zend_bitset_copy Line | Count | Source | 172 | 846 | { | 173 | 846 | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 846 | } |
Unexecuted instantiation: compact_vars.c:zend_bitset_copy Unexecuted instantiation: dce.c:zend_bitset_copy Unexecuted instantiation: dfa_pass.c:zend_bitset_copy Unexecuted instantiation: escape_analysis.c:zend_bitset_copy Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_copy Unexecuted instantiation: sccp.c:zend_bitset_copy Unexecuted instantiation: scdf.c:zend_bitset_copy Unexecuted instantiation: zend_call_graph.c:zend_bitset_copy Unexecuted instantiation: zend_cfg.c:zend_bitset_copy zend_dfg.c:zend_bitset_copy Line | Count | Source | 172 | 1.62k | { | 173 | 1.62k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 1.62k | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_copy Unexecuted instantiation: zend_func_info.c:zend_bitset_copy Unexecuted instantiation: zend_inference.c:zend_bitset_copy Unexecuted instantiation: zend_optimizer.c:zend_bitset_copy Unexecuted instantiation: zend_ssa.c:zend_bitset_copy Unexecuted instantiation: zend_alloc.c:zend_bitset_copy |
175 | | |
176 | | static inline void zend_bitset_intersection(zend_bitset set1, zend_bitset set2, uint32_t len) |
177 | 0 | { |
178 | 0 | uint32_t i; |
179 | |
|
180 | 0 | for (i = 0; i < len; i++) { |
181 | 0 | set1[i] &= set2[i]; |
182 | 0 | } |
183 | 0 | } Unexecuted instantiation: zend_jit.c:zend_bitset_intersection Unexecuted instantiation: array.c:zend_bitset_intersection Unexecuted instantiation: math.c:zend_bitset_intersection Unexecuted instantiation: string.c:zend_bitset_intersection Unexecuted instantiation: block_pass.c:zend_bitset_intersection Unexecuted instantiation: compact_vars.c:zend_bitset_intersection Unexecuted instantiation: dce.c:zend_bitset_intersection Unexecuted instantiation: dfa_pass.c:zend_bitset_intersection Unexecuted instantiation: escape_analysis.c:zend_bitset_intersection Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_intersection Unexecuted instantiation: sccp.c:zend_bitset_intersection Unexecuted instantiation: scdf.c:zend_bitset_intersection Unexecuted instantiation: zend_call_graph.c:zend_bitset_intersection Unexecuted instantiation: zend_cfg.c:zend_bitset_intersection Unexecuted instantiation: zend_dfg.c:zend_bitset_intersection Unexecuted instantiation: zend_dump.c:zend_bitset_intersection Unexecuted instantiation: zend_func_info.c:zend_bitset_intersection Unexecuted instantiation: zend_inference.c:zend_bitset_intersection Unexecuted instantiation: zend_optimizer.c:zend_bitset_intersection Unexecuted instantiation: zend_ssa.c:zend_bitset_intersection Unexecuted instantiation: zend_alloc.c:zend_bitset_intersection |
184 | | |
185 | | static inline void zend_bitset_union(zend_bitset set1, zend_bitset set2, uint32_t len) |
186 | 1.22k | { |
187 | 1.22k | uint32_t i; |
188 | | |
189 | 13.3k | for (i = 0; i < len; i++) { |
190 | 12.1k | set1[i] |= set2[i]; |
191 | 12.1k | } |
192 | 1.22k | } Unexecuted instantiation: zend_jit.c:zend_bitset_union Unexecuted instantiation: array.c:zend_bitset_union Unexecuted instantiation: math.c:zend_bitset_union Unexecuted instantiation: string.c:zend_bitset_union block_pass.c:zend_bitset_union Line | Count | Source | 186 | 458 | { | 187 | 458 | uint32_t i; | 188 | | | 189 | 4.48k | for (i = 0; i < len; i++) { | 190 | 4.03k | set1[i] |= set2[i]; | 191 | 4.03k | } | 192 | 458 | } |
Unexecuted instantiation: compact_vars.c:zend_bitset_union Unexecuted instantiation: dce.c:zend_bitset_union Unexecuted instantiation: dfa_pass.c:zend_bitset_union Unexecuted instantiation: escape_analysis.c:zend_bitset_union Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_union Unexecuted instantiation: sccp.c:zend_bitset_union Unexecuted instantiation: scdf.c:zend_bitset_union Unexecuted instantiation: zend_call_graph.c:zend_bitset_union Unexecuted instantiation: zend_cfg.c:zend_bitset_union zend_dfg.c:zend_bitset_union Line | Count | Source | 186 | 429 | { | 187 | 429 | uint32_t i; | 188 | | | 189 | 4.62k | for (i = 0; i < len; i++) { | 190 | 4.19k | set1[i] |= set2[i]; | 191 | 4.19k | } | 192 | 429 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_union Unexecuted instantiation: zend_func_info.c:zend_bitset_union Unexecuted instantiation: zend_inference.c:zend_bitset_union Unexecuted instantiation: zend_optimizer.c:zend_bitset_union zend_ssa.c:zend_bitset_union Line | Count | Source | 186 | 340 | { | 187 | 340 | uint32_t i; | 188 | | | 189 | 4.26k | for (i = 0; i < len; i++) { | 190 | 3.92k | set1[i] |= set2[i]; | 191 | 3.92k | } | 192 | 340 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_union |
193 | | |
194 | | static inline void zend_bitset_difference(zend_bitset set1, zend_bitset set2, uint32_t len) |
195 | 0 | { |
196 | 0 | uint32_t i; |
197 | 0 |
|
198 | 0 | for (i = 0; i < len; i++) { |
199 | 0 | set1[i] = set1[i] & ~set2[i]; |
200 | 0 | } |
201 | 0 | } Unexecuted instantiation: zend_jit.c:zend_bitset_difference Unexecuted instantiation: array.c:zend_bitset_difference Unexecuted instantiation: math.c:zend_bitset_difference Unexecuted instantiation: string.c:zend_bitset_difference Unexecuted instantiation: block_pass.c:zend_bitset_difference Unexecuted instantiation: compact_vars.c:zend_bitset_difference Unexecuted instantiation: dce.c:zend_bitset_difference Unexecuted instantiation: dfa_pass.c:zend_bitset_difference Unexecuted instantiation: escape_analysis.c:zend_bitset_difference Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_difference Unexecuted instantiation: sccp.c:zend_bitset_difference Unexecuted instantiation: scdf.c:zend_bitset_difference Unexecuted instantiation: zend_call_graph.c:zend_bitset_difference Unexecuted instantiation: zend_cfg.c:zend_bitset_difference Unexecuted instantiation: zend_dfg.c:zend_bitset_difference Unexecuted instantiation: zend_dump.c:zend_bitset_difference Unexecuted instantiation: zend_func_info.c:zend_bitset_difference Unexecuted instantiation: zend_inference.c:zend_bitset_difference Unexecuted instantiation: zend_optimizer.c:zend_bitset_difference Unexecuted instantiation: zend_ssa.c:zend_bitset_difference Unexecuted instantiation: zend_alloc.c:zend_bitset_difference |
202 | | |
203 | | static inline void zend_bitset_union_with_intersection(zend_bitset set1, zend_bitset set2, zend_bitset set3, zend_bitset set4, uint32_t len) |
204 | 1.04k | { |
205 | 1.04k | uint32_t i; |
206 | | |
207 | 9.93k | for (i = 0; i < len; i++) { |
208 | 8.89k | set1[i] = set2[i] | (set3[i] & set4[i]); |
209 | 8.89k | } |
210 | 1.04k | } Unexecuted instantiation: zend_jit.c:zend_bitset_union_with_intersection Unexecuted instantiation: array.c:zend_bitset_union_with_intersection Unexecuted instantiation: math.c:zend_bitset_union_with_intersection Unexecuted instantiation: string.c:zend_bitset_union_with_intersection Unexecuted instantiation: block_pass.c:zend_bitset_union_with_intersection Unexecuted instantiation: compact_vars.c:zend_bitset_union_with_intersection Unexecuted instantiation: dce.c:zend_bitset_union_with_intersection Unexecuted instantiation: dfa_pass.c:zend_bitset_union_with_intersection Unexecuted instantiation: escape_analysis.c:zend_bitset_union_with_intersection Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_union_with_intersection Unexecuted instantiation: sccp.c:zend_bitset_union_with_intersection Unexecuted instantiation: scdf.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_call_graph.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_cfg.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_dfg.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_dump.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_func_info.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_inference.c:zend_bitset_union_with_intersection Unexecuted instantiation: zend_optimizer.c:zend_bitset_union_with_intersection zend_ssa.c:zend_bitset_union_with_intersection Line | Count | Source | 204 | 1.04k | { | 205 | 1.04k | uint32_t i; | 206 | | | 207 | 9.93k | for (i = 0; i < len; i++) { | 208 | 8.89k | set1[i] = set2[i] | (set3[i] & set4[i]); | 209 | 8.89k | } | 210 | 1.04k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_union_with_intersection |
211 | | |
212 | | static inline void zend_bitset_union_with_difference(zend_bitset set1, zend_bitset set2, zend_bitset set3, zend_bitset set4, uint32_t len) |
213 | 874 | { |
214 | 874 | uint32_t i; |
215 | | |
216 | 9.26k | for (i = 0; i < len; i++) { |
217 | 8.39k | set1[i] = set2[i] | (set3[i] & ~set4[i]); |
218 | 8.39k | } |
219 | 874 | } Unexecuted instantiation: zend_jit.c:zend_bitset_union_with_difference Unexecuted instantiation: array.c:zend_bitset_union_with_difference Unexecuted instantiation: math.c:zend_bitset_union_with_difference Unexecuted instantiation: string.c:zend_bitset_union_with_difference Unexecuted instantiation: block_pass.c:zend_bitset_union_with_difference Unexecuted instantiation: compact_vars.c:zend_bitset_union_with_difference Unexecuted instantiation: dce.c:zend_bitset_union_with_difference Unexecuted instantiation: dfa_pass.c:zend_bitset_union_with_difference Unexecuted instantiation: escape_analysis.c:zend_bitset_union_with_difference Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_union_with_difference Unexecuted instantiation: sccp.c:zend_bitset_union_with_difference Unexecuted instantiation: scdf.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_call_graph.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_cfg.c:zend_bitset_union_with_difference zend_dfg.c:zend_bitset_union_with_difference Line | Count | Source | 213 | 874 | { | 214 | 874 | uint32_t i; | 215 | | | 216 | 9.26k | for (i = 0; i < len; i++) { | 217 | 8.39k | set1[i] = set2[i] | (set3[i] & ~set4[i]); | 218 | 8.39k | } | 219 | 874 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_func_info.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_inference.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_optimizer.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_ssa.c:zend_bitset_union_with_difference Unexecuted instantiation: zend_alloc.c:zend_bitset_union_with_difference |
220 | | |
221 | | static inline bool zend_bitset_subset(zend_bitset set1, zend_bitset set2, uint32_t len) |
222 | 715 | { |
223 | 715 | uint32_t i; |
224 | | |
225 | 4.78k | for (i = 0; i < len; i++) { |
226 | 4.41k | if (set1[i] & ~set2[i]) { |
227 | 340 | return 0; |
228 | 340 | } |
229 | 4.41k | } |
230 | 375 | return 1; |
231 | 715 | } Unexecuted instantiation: zend_jit.c:zend_bitset_subset Unexecuted instantiation: array.c:zend_bitset_subset Unexecuted instantiation: math.c:zend_bitset_subset Unexecuted instantiation: string.c:zend_bitset_subset Unexecuted instantiation: block_pass.c:zend_bitset_subset Unexecuted instantiation: compact_vars.c:zend_bitset_subset Unexecuted instantiation: dce.c:zend_bitset_subset Unexecuted instantiation: dfa_pass.c:zend_bitset_subset Unexecuted instantiation: escape_analysis.c:zend_bitset_subset Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_subset Unexecuted instantiation: sccp.c:zend_bitset_subset Unexecuted instantiation: scdf.c:zend_bitset_subset Unexecuted instantiation: zend_call_graph.c:zend_bitset_subset Unexecuted instantiation: zend_cfg.c:zend_bitset_subset Unexecuted instantiation: zend_dfg.c:zend_bitset_subset Unexecuted instantiation: zend_dump.c:zend_bitset_subset Unexecuted instantiation: zend_func_info.c:zend_bitset_subset Unexecuted instantiation: zend_inference.c:zend_bitset_subset Unexecuted instantiation: zend_optimizer.c:zend_bitset_subset zend_ssa.c:zend_bitset_subset Line | Count | Source | 222 | 715 | { | 223 | 715 | uint32_t i; | 224 | | | 225 | 4.78k | for (i = 0; i < len; i++) { | 226 | 4.41k | if (set1[i] & ~set2[i]) { | 227 | 340 | return 0; | 228 | 340 | } | 229 | 4.41k | } | 230 | 375 | return 1; | 231 | 715 | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_subset |
232 | | |
233 | | static inline int zend_bitset_first(zend_bitset set, uint32_t len) |
234 | 6.94k | { |
235 | 6.94k | uint32_t i; |
236 | | |
237 | 81.7k | for (i = 0; i < len; i++) { |
238 | 81.4k | if (set[i]) { |
239 | 6.67k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); |
240 | 6.67k | } |
241 | 81.4k | } |
242 | 272 | return -1; /* empty set */ |
243 | 6.94k | } Unexecuted instantiation: zend_jit.c:zend_bitset_first Unexecuted instantiation: array.c:zend_bitset_first Unexecuted instantiation: math.c:zend_bitset_first Unexecuted instantiation: string.c:zend_bitset_first Unexecuted instantiation: block_pass.c:zend_bitset_first Unexecuted instantiation: compact_vars.c:zend_bitset_first Line | Count | Source | 234 | 940 | { | 235 | 940 | uint32_t i; | 236 | | | 237 | 14.1k | for (i = 0; i < len; i++) { | 238 | 14.0k | if (set[i]) { | 239 | 884 | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 884 | } | 241 | 14.0k | } | 242 | 56 | return -1; /* empty set */ | 243 | 940 | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_first Unexecuted instantiation: escape_analysis.c:zend_bitset_first Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_first Unexecuted instantiation: sccp.c:zend_bitset_first Line | Count | Source | 234 | 1.28k | { | 235 | 1.28k | uint32_t i; | 236 | | | 237 | 3.80k | for (i = 0; i < len; i++) { | 238 | 3.58k | if (set[i]) { | 239 | 1.07k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 1.07k | } | 241 | 3.58k | } | 242 | 216 | return -1; /* empty set */ | 243 | 1.28k | } |
Unexecuted instantiation: zend_call_graph.c:zend_bitset_first Unexecuted instantiation: zend_cfg.c:zend_bitset_first Unexecuted instantiation: zend_dfg.c:zend_bitset_first Unexecuted instantiation: zend_dump.c:zend_bitset_first Unexecuted instantiation: zend_func_info.c:zend_bitset_first zend_inference.c:zend_bitset_first Line | Count | Source | 234 | 4.72k | { | 235 | 4.72k | uint32_t i; | 236 | | | 237 | 63.8k | for (i = 0; i < len; i++) { | 238 | 63.8k | if (set[i]) { | 239 | 4.72k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 4.72k | } | 241 | 63.8k | } | 242 | 0 | return -1; /* empty set */ | 243 | 4.72k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_first Unexecuted instantiation: zend_ssa.c:zend_bitset_first Unexecuted instantiation: zend_alloc.c:zend_bitset_first |
244 | | |
245 | | static inline int zend_bitset_last(zend_bitset set, uint32_t len) |
246 | 874 | { |
247 | 874 | uint32_t i = len; |
248 | | |
249 | 2.47k | while (i > 0) { |
250 | 2.47k | i--; |
251 | 2.47k | if (set[i]) { |
252 | 874 | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; |
253 | 874 | zend_ulong x = set[i]; |
254 | 24.4k | while (x != Z_UL(0)) { |
255 | 23.6k | x = x >> Z_UL(1); |
256 | 23.6k | j++; |
257 | 23.6k | } |
258 | 874 | return j; |
259 | 874 | } |
260 | 2.47k | } |
261 | 0 | return -1; /* empty set */ |
262 | 874 | } Unexecuted instantiation: zend_jit.c:zend_bitset_last Unexecuted instantiation: array.c:zend_bitset_last Unexecuted instantiation: math.c:zend_bitset_last Unexecuted instantiation: string.c:zend_bitset_last Unexecuted instantiation: block_pass.c:zend_bitset_last Unexecuted instantiation: compact_vars.c:zend_bitset_last Unexecuted instantiation: dce.c:zend_bitset_last Unexecuted instantiation: dfa_pass.c:zend_bitset_last Unexecuted instantiation: escape_analysis.c:zend_bitset_last Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_last Unexecuted instantiation: sccp.c:zend_bitset_last Unexecuted instantiation: scdf.c:zend_bitset_last Unexecuted instantiation: zend_call_graph.c:zend_bitset_last Unexecuted instantiation: zend_cfg.c:zend_bitset_last zend_dfg.c:zend_bitset_last Line | Count | Source | 246 | 874 | { | 247 | 874 | uint32_t i = len; | 248 | | | 249 | 2.47k | while (i > 0) { | 250 | 2.47k | i--; | 251 | 2.47k | if (set[i]) { | 252 | 874 | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; | 253 | 874 | zend_ulong x = set[i]; | 254 | 24.4k | while (x != Z_UL(0)) { | 255 | 23.6k | x = x >> Z_UL(1); | 256 | 23.6k | j++; | 257 | 23.6k | } | 258 | 874 | return j; | 259 | 874 | } | 260 | 2.47k | } | 261 | 0 | return -1; /* empty set */ | 262 | 874 | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_last Unexecuted instantiation: zend_func_info.c:zend_bitset_last Unexecuted instantiation: zend_inference.c:zend_bitset_last Unexecuted instantiation: zend_optimizer.c:zend_bitset_last Unexecuted instantiation: zend_ssa.c:zend_bitset_last Unexecuted instantiation: zend_alloc.c:zend_bitset_last |
263 | | |
264 | 2.19k | #define ZEND_BITSET_FOREACH(set, len, bit) do { \ |
265 | 2.19k | zend_bitset _set = (set); \ |
266 | 2.19k | uint32_t _i, _len = (len); \ |
267 | 19.4k | for (_i = 0; _i < _len; _i++) { \ |
268 | 17.2k | zend_ulong _x = _set[_i]; \ |
269 | 17.2k | if (_x) { \ |
270 | 1.37k | (bit) = ZEND_BITSET_ELM_SIZE * 8 * _i; \ |
271 | 46.6k | for (; _x != 0; _x >>= Z_UL(1), (bit)++) { \ |
272 | 45.2k | if (!(_x & Z_UL(1))) continue; |
273 | | |
274 | 354 | #define ZEND_BITSET_REVERSE_FOREACH(set, len, bit) do { \ |
275 | 354 | zend_bitset _set = (set); \ |
276 | 354 | uint32_t _i = (len); \ |
277 | 354 | zend_ulong _test = Z_UL(1) << (ZEND_BITSET_ELM_SIZE * 8 - 1); \ |
278 | 4.31k | while (_i-- > 0) { \ |
279 | 3.96k | zend_ulong _x = _set[_i]; \ |
280 | 3.96k | if (_x) { \ |
281 | 549 | (bit) = ZEND_BITSET_ELM_SIZE * 8 * (_i + 1) - 1; \ |
282 | 26.9k | for (; _x != 0; _x <<= Z_UL(1), (bit)--) { \ |
283 | 26.3k | if (!(_x & _test)) continue; \ |
284 | | |
285 | | #define ZEND_BITSET_FOREACH_END() \ |
286 | 4.44k | } \ |
287 | 1.92k | } \ |
288 | 21.1k | } \ |
289 | 2.54k | } while (0) |
290 | | |
291 | 2.22k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { |
292 | 2.22k | int i = zend_bitset_first(set, len); |
293 | 2.22k | if (i >= 0) { |
294 | 1.95k | zend_bitset_excl(set, i); |
295 | 1.95k | } |
296 | 2.22k | return i; |
297 | 2.22k | } Unexecuted instantiation: zend_jit.c:zend_bitset_pop_first Unexecuted instantiation: array.c:zend_bitset_pop_first Unexecuted instantiation: math.c:zend_bitset_pop_first Unexecuted instantiation: string.c:zend_bitset_pop_first Unexecuted instantiation: block_pass.c:zend_bitset_pop_first Unexecuted instantiation: compact_vars.c:zend_bitset_pop_first dce.c:zend_bitset_pop_first Line | Count | Source | 291 | 940 | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 940 | int i = zend_bitset_first(set, len); | 293 | 940 | if (i >= 0) { | 294 | 884 | zend_bitset_excl(set, i); | 295 | 884 | } | 296 | 940 | return i; | 297 | 940 | } |
Unexecuted instantiation: dfa_pass.c:zend_bitset_pop_first Unexecuted instantiation: escape_analysis.c:zend_bitset_pop_first Unexecuted instantiation: optimize_temp_vars_5.c:zend_bitset_pop_first Unexecuted instantiation: sccp.c:zend_bitset_pop_first scdf.c:zend_bitset_pop_first Line | Count | Source | 291 | 1.28k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 1.28k | int i = zend_bitset_first(set, len); | 293 | 1.28k | if (i >= 0) { | 294 | 1.07k | zend_bitset_excl(set, i); | 295 | 1.07k | } | 296 | 1.28k | return i; | 297 | 1.28k | } |
Unexecuted instantiation: zend_call_graph.c:zend_bitset_pop_first Unexecuted instantiation: zend_cfg.c:zend_bitset_pop_first Unexecuted instantiation: zend_dfg.c:zend_bitset_pop_first Unexecuted instantiation: zend_dump.c:zend_bitset_pop_first Unexecuted instantiation: zend_func_info.c:zend_bitset_pop_first Unexecuted instantiation: zend_inference.c:zend_bitset_pop_first Unexecuted instantiation: zend_optimizer.c:zend_bitset_pop_first Unexecuted instantiation: zend_ssa.c:zend_bitset_pop_first Unexecuted instantiation: zend_alloc.c:zend_bitset_pop_first |
298 | | |
299 | | #endif /* _ZEND_BITSET_H_ */ |