/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 | 2.42M | #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 | 14.4M | # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) |
38 | 14.4M | # 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 | 164k | (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 | 818k | { |
50 | 818k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ |
51 | 818k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) |
52 | 818k | 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 | 818k | } 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 | 70.9k | { | 50 | 70.9k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 70.9k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 70.9k | 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 | 70.9k | } |
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 | 111k | { | 50 | 111k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 111k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 111k | 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 | 111k | } |
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 | 635k | { | 50 | 635k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 635k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 635k | 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 | 635k | } |
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.34M | { |
127 | 1.34M | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); |
128 | 1.34M | } 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 | 117k | { | 127 | 117k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 117k | } |
compact_vars.c:zend_bitset_len Line | Count | Source | 126 | 54.8k | { | 127 | 54.8k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 54.8k | } |
Line | Count | Source | 126 | 76.6k | { | 127 | 76.6k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 76.6k | } |
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 | 54.8k | { | 127 | 54.8k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 54.8k | } |
Unexecuted instantiation: sccp.c:zend_bitset_len Line | Count | Source | 126 | 153k | { | 127 | 153k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 153k | } |
zend_call_graph.c:zend_bitset_len Line | Count | Source | 126 | 33.0k | { | 127 | 33.0k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 33.0k | } |
zend_cfg.c:zend_bitset_len Line | Count | Source | 126 | 458k | { | 127 | 458k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 458k | } |
zend_dfg.c:zend_bitset_len Line | Count | Source | 126 | 38.3k | { | 127 | 38.3k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 38.3k | } |
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 | 317k | { | 127 | 317k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 317k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_len zend_ssa.c:zend_bitset_len Line | Count | Source | 126 | 38.3k | { | 127 | 38.3k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 38.3k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_len |
129 | | |
130 | | static inline bool zend_bitset_in(zend_bitset set, uint32_t n) |
131 | 105M | { |
132 | 105M | return ZEND_BIT_TEST(set, n); |
133 | 105M | } 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 | 1.75M | { | 132 | 1.75M | return ZEND_BIT_TEST(set, n); | 133 | 1.75M | } |
compact_vars.c:zend_bitset_in Line | Count | Source | 131 | 431k | { | 132 | 431k | return ZEND_BIT_TEST(set, n); | 133 | 431k | } |
Line | Count | Source | 131 | 1.04M | { | 132 | 1.04M | return ZEND_BIT_TEST(set, n); | 133 | 1.04M | } |
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 | 100M | { | 132 | 100M | return ZEND_BIT_TEST(set, n); | 133 | 100M | } |
Line | Count | Source | 131 | 129k | { | 132 | 129k | return ZEND_BIT_TEST(set, n); | 133 | 129k | } |
Line | Count | Source | 131 | 392k | { | 132 | 392k | return ZEND_BIT_TEST(set, n); | 133 | 392k | } |
zend_call_graph.c:zend_bitset_in Line | Count | Source | 131 | 13.9k | { | 132 | 13.9k | return ZEND_BIT_TEST(set, n); | 133 | 13.9k | } |
zend_cfg.c:zend_bitset_in Line | Count | Source | 131 | 966k | { | 132 | 966k | return ZEND_BIT_TEST(set, n); | 133 | 966k | } |
zend_dfg.c:zend_bitset_in Line | Count | Source | 131 | 681k | { | 132 | 681k | return ZEND_BIT_TEST(set, n); | 133 | 681k | } |
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 | 55.2k | { | 132 | 55.2k | return ZEND_BIT_TEST(set, n); | 133 | 55.2k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_in zend_ssa.c:zend_bitset_in Line | Count | Source | 131 | 25.3k | { | 132 | 25.3k | return ZEND_BIT_TEST(set, n); | 133 | 25.3k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_in |
134 | | |
135 | | static inline void zend_bitset_incl(zend_bitset set, uint32_t n) |
136 | 9.75M | { |
137 | 9.75M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); |
138 | 9.75M | } 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 | 1.67M | { | 137 | 1.67M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 1.67M | } |
compact_vars.c:zend_bitset_incl Line | Count | Source | 136 | 1.96M | { | 137 | 1.96M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 1.96M | } |
Line | Count | Source | 136 | 649k | { | 137 | 649k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 649k | } |
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 | 581k | { | 137 | 581k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 581k | } |
Line | Count | Source | 136 | 736k | { | 137 | 736k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 736k | } |
Line | Count | Source | 136 | 360k | { | 137 | 360k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 360k | } |
zend_call_graph.c:zend_bitset_incl Line | Count | Source | 136 | 13.0k | { | 137 | 13.0k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 13.0k | } |
zend_cfg.c:zend_bitset_incl Line | Count | Source | 136 | 745k | { | 137 | 745k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 745k | } |
zend_dfg.c:zend_bitset_incl Line | Count | Source | 136 | 972k | { | 137 | 972k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 972k | } |
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 | 2.04M | { | 137 | 2.04M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 2.04M | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_incl zend_ssa.c:zend_bitset_incl Line | Count | Source | 136 | 21.8k | { | 137 | 21.8k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 21.8k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_incl |
139 | | |
140 | | static inline void zend_bitset_excl(zend_bitset set, uint32_t n) |
141 | 4.69M | { |
142 | 4.69M | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); |
143 | 4.69M | } 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 | 778k | { | 142 | 778k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 778k | } |
Unexecuted instantiation: compact_vars.c:zend_bitset_excl Line | Count | Source | 141 | 700k | { | 142 | 700k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 700k | } |
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 | 581k | { | 142 | 581k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 581k | } |
Unexecuted instantiation: sccp.c:zend_bitset_excl Line | Count | Source | 141 | 1.07M | { | 142 | 1.07M | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 1.07M | } |
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 | 134k | { | 142 | 134k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 134k | } |
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 | 1.42M | { | 142 | 1.42M | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 1.42M | } |
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 | 490k | { |
147 | 490k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); |
148 | 490k | } 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 | 257k | { | 147 | 257k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 257k | } |
compact_vars.c:zend_bitset_clear Line | Count | Source | 146 | 54.8k | { | 147 | 54.8k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 54.8k | } |
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 | 54.8k | { | 147 | 54.8k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 54.8k | } |
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 | 5.94k | { | 147 | 5.94k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 5.94k | } |
zend_dfg.c:zend_bitset_clear Line | Count | Source | 146 | 39.1k | { | 147 | 39.1k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 39.1k | } |
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 | 40.3k | { | 147 | 40.3k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 40.3k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_clear zend_ssa.c:zend_bitset_clear Line | Count | Source | 146 | 38.3k | { | 147 | 38.3k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 38.3k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_clear |
149 | | |
150 | | static inline bool zend_bitset_empty(zend_bitset set, uint32_t len) |
151 | 1.27M | { |
152 | 1.27M | uint32_t i; |
153 | 6.71M | for (i = 0; i < len; i++) { |
154 | 6.28M | if (set[i]) { |
155 | 845k | return 0; |
156 | 845k | } |
157 | 6.28M | } |
158 | 430k | return 1; |
159 | 1.27M | } 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 | 88.9k | { | 152 | 88.9k | uint32_t i; | 153 | 181k | for (i = 0; i < len; i++) { | 154 | 98.9k | if (set[i]) { | 155 | 6.76k | return 0; | 156 | 6.76k | } | 157 | 98.9k | } | 158 | 82.1k | return 1; | 159 | 88.9k | } |
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 | 232k | { | 152 | 232k | uint32_t i; | 153 | 435k | for (i = 0; i < len; i++) { | 154 | 243k | if (set[i]) { | 155 | 40.1k | return 0; | 156 | 40.1k | } | 157 | 243k | } | 158 | 192k | return 1; | 159 | 232k | } |
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 | 173k | { | 152 | 173k | uint32_t i; | 153 | 211k | for (i = 0; i < len; i++) { | 154 | 173k | if (set[i]) { | 155 | 134k | return 0; | 156 | 134k | } | 157 | 173k | } | 158 | 38.3k | return 1; | 159 | 173k | } |
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 | 674k | { | 152 | 674k | uint32_t i; | 153 | 5.54M | for (i = 0; i < len; i++) { | 154 | 5.50M | if (set[i]) { | 155 | 635k | return 0; | 156 | 635k | } | 157 | 5.50M | } | 158 | 38.3k | return 1; | 159 | 674k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_empty zend_ssa.c:zend_bitset_empty Line | Count | Source | 151 | 106k | { | 152 | 106k | uint32_t i; | 153 | 338k | for (i = 0; i < len; i++) { | 154 | 259k | if (set[i]) { | 155 | 27.7k | return 0; | 156 | 27.7k | } | 157 | 259k | } | 158 | 79.0k | return 1; | 159 | 106k | } |
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 | 134k | { |
168 | 134k | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; |
169 | 134k | } 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 | 134k | { | 168 | 134k | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; | 169 | 134k | } |
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 | 377k | { |
173 | 377k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); |
174 | 377k | } 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 | 187k | { | 173 | 187k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 187k | } |
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 | 190k | { | 173 | 190k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 190k | } |
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 | 143k | { |
187 | 143k | uint32_t i; |
188 | | |
189 | 757k | for (i = 0; i < len; i++) { |
190 | 614k | set1[i] |= set2[i]; |
191 | 614k | } |
192 | 143k | } 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 | 67.8k | { | 187 | 67.8k | uint32_t i; | 188 | | | 189 | 280k | for (i = 0; i < len; i++) { | 190 | 212k | set1[i] |= set2[i]; | 191 | 212k | } | 192 | 67.8k | } |
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 | 48.5k | { | 187 | 48.5k | uint32_t i; | 188 | | | 189 | 290k | for (i = 0; i < len; i++) { | 190 | 241k | set1[i] |= set2[i]; | 191 | 241k | } | 192 | 48.5k | } |
Unexecuted instantiation: zend_dump.c:zend_bitset_union Unexecuted instantiation: zend_func_info.c:zend_bitset_union zend_inference.c:zend_bitset_union Line | Count | Source | 186 | 6 | { | 187 | 6 | uint32_t i; | 188 | | | 189 | 12 | for (i = 0; i < len; i++) { | 190 | 6 | set1[i] |= set2[i]; | 191 | 6 | } | 192 | 6 | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_union zend_ssa.c:zend_bitset_union Line | Count | Source | 186 | 26.5k | { | 187 | 26.5k | uint32_t i; | 188 | | | 189 | 187k | for (i = 0; i < len; i++) { | 190 | 160k | set1[i] |= set2[i]; | 191 | 160k | } | 192 | 26.5k | } |
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 | 120k | { |
205 | 120k | uint32_t i; |
206 | | |
207 | 711k | for (i = 0; i < len; i++) { |
208 | 590k | set1[i] = set2[i] | (set3[i] & set4[i]); |
209 | 590k | } |
210 | 120k | } 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 | 120k | { | 205 | 120k | uint32_t i; | 206 | | | 207 | 711k | for (i = 0; i < len; i++) { | 208 | 590k | set1[i] = set2[i] | (set3[i] & set4[i]); | 209 | 590k | } | 210 | 120k | } |
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 | 134k | { |
214 | 134k | uint32_t i; |
215 | | |
216 | 653k | for (i = 0; i < len; i++) { |
217 | 518k | set1[i] = set2[i] | (set3[i] & ~set4[i]); |
218 | 518k | } |
219 | 134k | } 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 | 134k | { | 214 | 134k | uint32_t i; | 215 | | | 216 | 653k | for (i = 0; i < len; i++) { | 217 | 518k | set1[i] = set2[i] | (set3[i] & ~set4[i]); | 218 | 518k | } | 219 | 134k | } |
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 | 61.1k | { |
223 | 61.1k | uint32_t i; |
224 | | |
225 | 247k | for (i = 0; i < len; i++) { |
226 | 212k | if (set1[i] & ~set2[i]) { |
227 | 26.5k | return 0; |
228 | 26.5k | } |
229 | 212k | } |
230 | 34.5k | return 1; |
231 | 61.1k | } 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 | 61.1k | { | 223 | 61.1k | uint32_t i; | 224 | | | 225 | 247k | for (i = 0; i < len; i++) { | 226 | 212k | if (set1[i] & ~set2[i]) { | 227 | 26.5k | return 0; | 228 | 26.5k | } | 229 | 212k | } | 230 | 34.5k | return 1; | 231 | 61.1k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_subset |
232 | | |
233 | | static inline int zend_bitset_first(zend_bitset set, uint32_t len) |
234 | 990k | { |
235 | 990k | uint32_t i; |
236 | | |
237 | 6.51M | for (i = 0; i < len; i++) { |
238 | 6.34M | if (set[i]) { |
239 | 818k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); |
240 | 818k | } |
241 | 6.34M | } |
242 | 172k | return -1; /* empty set */ |
243 | 990k | } 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 | 122k | { | 235 | 122k | uint32_t i; | 236 | | | 237 | 636k | for (i = 0; i < len; i++) { | 238 | 584k | if (set[i]) { | 239 | 70.9k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 70.9k | } | 241 | 584k | } | 242 | 51.8k | return -1; /* empty set */ | 243 | 122k | } |
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 | 232k | { | 235 | 232k | uint32_t i; | 236 | | | 237 | 407k | for (i = 0; i < len; i++) { | 238 | 287k | if (set[i]) { | 239 | 111k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 111k | } | 241 | 287k | } | 242 | 120k | return -1; /* empty set */ | 243 | 232k | } |
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 | 635k | { | 235 | 635k | uint32_t i; | 236 | | | 237 | 5.47M | for (i = 0; i < len; i++) { | 238 | 5.47M | if (set[i]) { | 239 | 635k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 635k | } | 241 | 5.47M | } | 242 | 0 | return -1; /* empty set */ | 243 | 635k | } |
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 | 134k | { |
247 | 134k | uint32_t i = len; |
248 | | |
249 | 221k | while (i > 0) { |
250 | 221k | i--; |
251 | 221k | if (set[i]) { |
252 | 134k | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; |
253 | 134k | zend_ulong x = set[i]; |
254 | 1.98M | while (x != Z_UL(0)) { |
255 | 1.85M | x = x >> Z_UL(1); |
256 | 1.85M | j++; |
257 | 1.85M | } |
258 | 134k | return j; |
259 | 134k | } |
260 | 221k | } |
261 | 0 | return -1; /* empty set */ |
262 | 134k | } 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 | 134k | { | 247 | 134k | uint32_t i = len; | 248 | | | 249 | 221k | while (i > 0) { | 250 | 221k | i--; | 251 | 221k | if (set[i]) { | 252 | 134k | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; | 253 | 134k | zend_ulong x = set[i]; | 254 | 1.98M | while (x != Z_UL(0)) { | 255 | 1.85M | x = x >> Z_UL(1); | 256 | 1.85M | j++; | 257 | 1.85M | } | 258 | 134k | return j; | 259 | 134k | } | 260 | 221k | } | 261 | 0 | return -1; /* empty set */ | 262 | 134k | } |
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 | 430k | #define ZEND_BITSET_FOREACH(set, len, bit) do { \ |
265 | 430k | zend_bitset _set = (set); \ |
266 | 430k | uint32_t _i, _len = (len); \ |
267 | 1.48M | for (_i = 0; _i < _len; _i++) { \ |
268 | 1.05M | zend_ulong _x = _set[_i]; \ |
269 | 1.05M | if (_x) { \ |
270 | 197k | (bit) = ZEND_BITSET_ELM_SIZE * 8 * _i; \ |
271 | 4.76M | for (; _x != 0; _x >>= Z_UL(1), (bit)++) { \ |
272 | 4.56M | if (!(_x & Z_UL(1))) continue; |
273 | | |
274 | 27.7k | #define ZEND_BITSET_REVERSE_FOREACH(set, len, bit) do { \ |
275 | 27.7k | zend_bitset _set = (set); \ |
276 | 27.7k | uint32_t _i = (len); \ |
277 | 27.7k | zend_ulong _test = Z_UL(1) << (ZEND_BITSET_ELM_SIZE * 8 - 1); \ |
278 | 191k | while (_i-- > 0) { \ |
279 | 163k | zend_ulong _x = _set[_i]; \ |
280 | 163k | if (_x) { \ |
281 | 36.8k | (bit) = ZEND_BITSET_ELM_SIZE * 8 * (_i + 1) - 1; \ |
282 | 1.95M | for (; _x != 0; _x <<= Z_UL(1), (bit)--) { \ |
283 | 1.91M | if (!(_x & _test)) continue; \ |
284 | | |
285 | | #define ZEND_BITSET_FOREACH_END() \ |
286 | 852k | } \ |
287 | 234k | } \ |
288 | 1.22M | } \ |
289 | 458k | } while (0) |
290 | | |
291 | 355k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { |
292 | 355k | int i = zend_bitset_first(set, len); |
293 | 355k | if (i >= 0) { |
294 | 182k | zend_bitset_excl(set, i); |
295 | 182k | } |
296 | 355k | return i; |
297 | 355k | } 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 | 122k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 122k | int i = zend_bitset_first(set, len); | 293 | 122k | if (i >= 0) { | 294 | 70.9k | zend_bitset_excl(set, i); | 295 | 70.9k | } | 296 | 122k | return i; | 297 | 122k | } |
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 | 232k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 232k | int i = zend_bitset_first(set, len); | 293 | 232k | if (i >= 0) { | 294 | 111k | zend_bitset_excl(set, i); | 295 | 111k | } | 296 | 232k | return i; | 297 | 232k | } |
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_ */ |