/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 | 1.67M | #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 | 11.7M | # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) |
38 | 11.7M | # 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 | 42.8k | (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 | 727k | { |
50 | 727k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ |
51 | 727k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) |
52 | 727k | 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 | 727k | } 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 | 100k | { | 50 | 100k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 100k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 100k | 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 | 100k | } |
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 | 83.1k | { | 50 | 83.1k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 83.1k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 83.1k | 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 | 83.1k | } |
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 | 543k | { | 50 | 543k | #if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) \ | 51 | 543k | && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL) | 52 | 543k | 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 | 543k | } |
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 | 378k | { |
127 | 378k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); |
128 | 378k | } 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 | 42.6k | { | 127 | 42.6k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 42.6k | } |
compact_vars.c:zend_bitset_len Line | Count | Source | 126 | 17.0k | { | 127 | 17.0k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 17.0k | } |
Line | Count | Source | 126 | 13.5k | { | 127 | 13.5k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 13.5k | } |
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 | 17.0k | { | 127 | 17.0k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 17.0k | } |
Unexecuted instantiation: sccp.c:zend_bitset_len Line | Count | Source | 126 | 27.1k | { | 127 | 27.1k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 27.1k | } |
zend_call_graph.c:zend_bitset_len Line | Count | Source | 126 | 12.1k | { | 127 | 12.1k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 12.1k | } |
zend_cfg.c:zend_bitset_len Line | Count | Source | 126 | 176k | { | 127 | 176k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 176k | } |
zend_dfg.c:zend_bitset_len Line | Count | Source | 126 | 6.78k | { | 127 | 6.78k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 6.78k | } |
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 | 59.6k | { | 127 | 59.6k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 59.6k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_len zend_ssa.c:zend_bitset_len Line | Count | Source | 126 | 6.78k | { | 127 | 6.78k | return (n + ((sizeof(zend_long) * 8) - 1)) / (sizeof(zend_long) * 8); | 128 | 6.78k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_len |
129 | | |
130 | | static inline bool zend_bitset_in(zend_bitset set, uint32_t n) |
131 | 72.8M | { |
132 | 72.8M | return ZEND_BIT_TEST(set, n); |
133 | 72.8M | } 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.49M | { | 132 | 1.49M | return ZEND_BIT_TEST(set, n); | 133 | 1.49M | } |
compact_vars.c:zend_bitset_in Line | Count | Source | 131 | 301k | { | 132 | 301k | return ZEND_BIT_TEST(set, n); | 133 | 301k | } |
Line | Count | Source | 131 | 818k | { | 132 | 818k | return ZEND_BIT_TEST(set, n); | 133 | 818k | } |
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 | 68.2M | { | 132 | 68.2M | return ZEND_BIT_TEST(set, n); | 133 | 68.2M | } |
Line | Count | Source | 131 | 172k | { | 132 | 172k | return ZEND_BIT_TEST(set, n); | 133 | 172k | } |
Line | Count | Source | 131 | 408k | { | 132 | 408k | return ZEND_BIT_TEST(set, n); | 133 | 408k | } |
zend_call_graph.c:zend_bitset_in Line | Count | Source | 131 | 4.01k | { | 132 | 4.01k | return ZEND_BIT_TEST(set, n); | 133 | 4.01k | } |
zend_cfg.c:zend_bitset_in Line | Count | Source | 131 | 826k | { | 132 | 826k | return ZEND_BIT_TEST(set, n); | 133 | 826k | } |
zend_dfg.c:zend_bitset_in Line | Count | Source | 131 | 533k | { | 132 | 533k | return ZEND_BIT_TEST(set, n); | 133 | 533k | } |
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 | 22.9k | { | 132 | 22.9k | return ZEND_BIT_TEST(set, n); | 133 | 22.9k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_in zend_ssa.c:zend_bitset_in Line | Count | Source | 131 | 33.1k | { | 132 | 33.1k | return ZEND_BIT_TEST(set, n); | 133 | 33.1k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_in |
134 | | |
135 | | static inline void zend_bitset_incl(zend_bitset set, uint32_t n) |
136 | 8.12M | { |
137 | 8.12M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); |
138 | 8.12M | } 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.46M | { | 137 | 1.46M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 1.46M | } |
compact_vars.c:zend_bitset_incl Line | Count | Source | 136 | 1.60M | { | 137 | 1.60M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 1.60M | } |
Line | Count | Source | 136 | 565k | { | 137 | 565k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 565k | } |
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 | 455k | { | 137 | 455k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 455k | } |
Line | Count | Source | 136 | 670k | { | 137 | 670k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 670k | } |
Line | Count | Source | 136 | 307k | { | 137 | 307k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 307k | } |
zend_call_graph.c:zend_bitset_incl Line | Count | Source | 136 | 3.53k | { | 137 | 3.53k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 3.53k | } |
zend_cfg.c:zend_bitset_incl Line | Count | Source | 136 | 572k | { | 137 | 572k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 572k | } |
zend_dfg.c:zend_bitset_incl Line | Count | Source | 136 | 837k | { | 137 | 837k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 837k | } |
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 | 1.61M | { | 137 | 1.61M | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 1.61M | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_incl zend_ssa.c:zend_bitset_incl Line | Count | Source | 136 | 32.0k | { | 137 | 32.0k | set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n); | 138 | 32.0k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_incl |
139 | | |
140 | | static inline void zend_bitset_excl(zend_bitset set, uint32_t n) |
141 | 3.63M | { |
142 | 3.63M | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); |
143 | 3.63M | } 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 | 596k | { | 142 | 596k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 596k | } |
Unexecuted instantiation: compact_vars.c:zend_bitset_excl Line | Count | Source | 141 | 731k | { | 142 | 731k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 731k | } |
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 | 455k | { | 142 | 455k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 455k | } |
Unexecuted instantiation: sccp.c:zend_bitset_excl Line | Count | Source | 141 | 743k | { | 142 | 743k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 743k | } |
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 | 94.7k | { | 142 | 94.7k | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 94.7k | } |
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.00M | { | 142 | 1.00M | set[ZEND_BITSET_ELM_NUM(n)] &= ~(Z_UL(1) << ZEND_BITSET_BIT_NUM(n)); | 143 | 1.00M | } |
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 | 213k | { |
147 | 213k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); |
148 | 213k | } 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 | 156k | { | 147 | 156k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 156k | } |
compact_vars.c:zend_bitset_clear Line | Count | Source | 146 | 17.0k | { | 147 | 17.0k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 17.0k | } |
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 | 17.0k | { | 147 | 17.0k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 17.0k | } |
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 | 1.17k | { | 147 | 1.17k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 1.17k | } |
zend_dfg.c:zend_bitset_clear Line | Count | Source | 146 | 6.96k | { | 147 | 6.96k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 6.96k | } |
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 | 7.38k | { | 147 | 7.38k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 7.38k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_clear zend_ssa.c:zend_bitset_clear Line | Count | Source | 146 | 6.78k | { | 147 | 6.78k | memset(set, 0, len * ZEND_BITSET_ELM_SIZE); | 148 | 6.78k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_clear |
149 | | |
150 | | static inline bool zend_bitset_empty(zend_bitset set, uint32_t len) |
151 | 791k | { |
152 | 791k | uint32_t i; |
153 | 8.08M | for (i = 0; i < len; i++) { |
154 | 7.97M | if (set[i]) { |
155 | 682k | return 0; |
156 | 682k | } |
157 | 7.97M | } |
158 | 109k | return 1; |
159 | 791k | } 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 | 16.3k | { | 152 | 16.3k | uint32_t i; | 153 | 49.7k | for (i = 0; i < len; i++) { | 154 | 34.9k | if (set[i]) { | 155 | 1.64k | return 0; | 156 | 1.64k | } | 157 | 34.9k | } | 158 | 14.7k | return 1; | 159 | 16.3k | } |
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 | 41.4k | { | 152 | 41.4k | uint32_t i; | 153 | 102k | for (i = 0; i < len; i++) { | 154 | 68.5k | if (set[i]) { | 155 | 7.34k | return 0; | 156 | 7.34k | } | 157 | 68.5k | } | 158 | 34.0k | return 1; | 159 | 41.4k | } |
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 | 101k | { | 152 | 101k | uint32_t i; | 153 | 109k | for (i = 0; i < len; i++) { | 154 | 102k | if (set[i]) { | 155 | 94.7k | return 0; | 156 | 94.7k | } | 157 | 102k | } | 158 | 6.78k | return 1; | 159 | 101k | } |
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 | 550k | { | 152 | 550k | uint32_t i; | 153 | 7.38M | for (i = 0; i < len; i++) { | 154 | 7.37M | if (set[i]) { | 155 | 543k | return 0; | 156 | 543k | } | 157 | 7.37M | } | 158 | 6.78k | return 1; | 159 | 550k | } |
Unexecuted instantiation: zend_optimizer.c:zend_bitset_empty zend_ssa.c:zend_bitset_empty Line | Count | Source | 151 | 81.9k | { | 152 | 81.9k | uint32_t i; | 153 | 436k | for (i = 0; i < len; i++) { | 154 | 389k | if (set[i]) { | 155 | 35.0k | return 0; | 156 | 35.0k | } | 157 | 389k | } | 158 | 46.9k | return 1; | 159 | 81.9k | } |
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 | 94.7k | { |
168 | 94.7k | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; |
169 | 94.7k | } 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 | 94.7k | { | 168 | 94.7k | return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0; | 169 | 94.7k | } |
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 | 301k | { |
173 | 301k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); |
174 | 301k | } 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 | 129k | { | 173 | 129k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 129k | } |
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 | 172k | { | 173 | 172k | memcpy(set1, set2, len * ZEND_BITSET_ELM_SIZE); | 174 | 172k | } |
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 | 152k | { |
187 | 152k | uint32_t i; |
188 | | |
189 | 1.24M | for (i = 0; i < len; i++) { |
190 | 1.09M | set1[i] |= set2[i]; |
191 | 1.09M | } |
192 | 152k | } 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 | 73.2k | { | 187 | 73.2k | uint32_t i; | 188 | | | 189 | 461k | for (i = 0; i < len; i++) { | 190 | 387k | set1[i] |= set2[i]; | 191 | 387k | } | 192 | 73.2k | } |
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 | 44.2k | { | 187 | 44.2k | uint32_t i; | 188 | | | 189 | 417k | for (i = 0; i < len; i++) { | 190 | 373k | set1[i] |= set2[i]; | 191 | 373k | } | 192 | 44.2k | } |
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 | 34.9k | { | 187 | 34.9k | uint32_t i; | 188 | | | 189 | 363k | for (i = 0; i < len; i++) { | 190 | 329k | set1[i] |= set2[i]; | 191 | 329k | } | 192 | 34.9k | } |
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 | 127k | { |
205 | 127k | uint32_t i; |
206 | | |
207 | 1.00M | for (i = 0; i < len; i++) { |
208 | 877k | set1[i] = set2[i] | (set3[i] & set4[i]); |
209 | 877k | } |
210 | 127k | } 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 | 127k | { | 205 | 127k | uint32_t i; | 206 | | | 207 | 1.00M | for (i = 0; i < len; i++) { | 208 | 877k | set1[i] = set2[i] | (set3[i] & set4[i]); | 209 | 877k | } | 210 | 127k | } |
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 | 94.7k | { |
214 | 94.7k | uint32_t i; |
215 | | |
216 | 849k | for (i = 0; i < len; i++) { |
217 | 755k | set1[i] = set2[i] | (set3[i] & ~set4[i]); |
218 | 755k | } |
219 | 94.7k | } 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 | 94.7k | { | 214 | 94.7k | uint32_t i; | 215 | | | 216 | 849k | for (i = 0; i < len; i++) { | 217 | 755k | set1[i] = set2[i] | (set3[i] & ~set4[i]); | 218 | 755k | } | 219 | 94.7k | } |
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 | 74.4k | { |
223 | 74.4k | uint32_t i; |
224 | | |
225 | 429k | for (i = 0; i < len; i++) { |
226 | 389k | if (set1[i] & ~set2[i]) { |
227 | 34.9k | return 0; |
228 | 34.9k | } |
229 | 389k | } |
230 | 39.5k | return 1; |
231 | 74.4k | } 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 | 74.4k | { | 223 | 74.4k | uint32_t i; | 224 | | | 225 | 429k | for (i = 0; i < len; i++) { | 226 | 389k | if (set1[i] & ~set2[i]) { | 227 | 34.9k | return 0; | 228 | 34.9k | } | 229 | 389k | } | 230 | 39.5k | return 1; | 231 | 74.4k | } |
Unexecuted instantiation: zend_alloc.c:zend_bitset_subset |
232 | | |
233 | | static inline int zend_bitset_first(zend_bitset set, uint32_t len) |
234 | 759k | { |
235 | 759k | uint32_t i; |
236 | | |
237 | 9.01M | for (i = 0; i < len; i++) { |
238 | 8.98M | if (set[i]) { |
239 | 727k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); |
240 | 727k | } |
241 | 8.98M | } |
242 | 32.0k | return -1; /* empty set */ |
243 | 759k | } 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 | 110k | { | 235 | 110k | uint32_t i; | 236 | | | 237 | 1.36M | for (i = 0; i < len; i++) { | 238 | 1.35M | if (set[i]) { | 239 | 100k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 100k | } | 241 | 1.35M | } | 242 | 10.0k | return -1; /* empty set */ | 243 | 110k | } |
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 | 105k | { | 235 | 105k | uint32_t i; | 236 | | | 237 | 283k | for (i = 0; i < len; i++) { | 238 | 261k | if (set[i]) { | 239 | 83.1k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 83.1k | } | 241 | 261k | } | 242 | 22.0k | return -1; /* empty set */ | 243 | 105k | } |
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 | 543k | { | 235 | 543k | uint32_t i; | 236 | | | 237 | 7.36M | for (i = 0; i < len; i++) { | 238 | 7.36M | if (set[i]) { | 239 | 543k | return ZEND_BITSET_ELM_SIZE * 8 * i + zend_ulong_ntz(set[i]); | 240 | 543k | } | 241 | 7.36M | } | 242 | 0 | return -1; /* empty set */ | 243 | 543k | } |
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 | 94.7k | { |
247 | 94.7k | uint32_t i = len; |
248 | | |
249 | 281k | while (i > 0) { |
250 | 281k | i--; |
251 | 281k | if (set[i]) { |
252 | 94.7k | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; |
253 | 94.7k | zend_ulong x = set[i]; |
254 | 2.58M | while (x != Z_UL(0)) { |
255 | 2.49M | x = x >> Z_UL(1); |
256 | 2.49M | j++; |
257 | 2.49M | } |
258 | 94.7k | return j; |
259 | 94.7k | } |
260 | 281k | } |
261 | 0 | return -1; /* empty set */ |
262 | 94.7k | } 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 | 94.7k | { | 247 | 94.7k | uint32_t i = len; | 248 | | | 249 | 281k | while (i > 0) { | 250 | 281k | i--; | 251 | 281k | if (set[i]) { | 252 | 94.7k | int j = ZEND_BITSET_ELM_SIZE * 8 * i - 1; | 253 | 94.7k | zend_ulong x = set[i]; | 254 | 2.58M | while (x != Z_UL(0)) { | 255 | 2.49M | x = x >> Z_UL(1); | 256 | 2.49M | j++; | 257 | 2.49M | } | 258 | 94.7k | return j; | 259 | 94.7k | } | 260 | 281k | } | 261 | 0 | return -1; /* empty set */ | 262 | 94.7k | } |
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 | 129k | #define ZEND_BITSET_FOREACH(set, len, bit) do { \ |
265 | 129k | zend_bitset _set = (set); \ |
266 | 129k | uint32_t _i, _len = (len); \ |
267 | 1.04M | for (_i = 0; _i < _len; _i++) { \ |
268 | 912k | zend_ulong _x = _set[_i]; \ |
269 | 912k | if (_x) { \ |
270 | 89.1k | (bit) = ZEND_BITSET_ELM_SIZE * 8 * _i; \ |
271 | 3.09M | for (; _x != 0; _x >>= Z_UL(1), (bit)++) { \ |
272 | 3.00M | if (!(_x & Z_UL(1))) continue; |
273 | | |
274 | 35.0k | #define ZEND_BITSET_REVERSE_FOREACH(set, len, bit) do { \ |
275 | 35.0k | zend_bitset _set = (set); \ |
276 | 35.0k | uint32_t _i = (len); \ |
277 | 35.0k | zend_ulong _test = Z_UL(1) << (ZEND_BITSET_ELM_SIZE * 8 - 1); \ |
278 | 364k | while (_i-- > 0) { \ |
279 | 329k | zend_ulong _x = _set[_i]; \ |
280 | 329k | if (_x) { \ |
281 | 56.6k | (bit) = ZEND_BITSET_ELM_SIZE * 8 * (_i + 1) - 1; \ |
282 | 2.88M | for (; _x != 0; _x <<= Z_UL(1), (bit)--) { \ |
283 | 2.82M | if (!(_x & _test)) continue; \ |
284 | | |
285 | | #define ZEND_BITSET_FOREACH_END() \ |
286 | 544k | } \ |
287 | 145k | } \ |
288 | 1.24M | } \ |
289 | 164k | } while (0) |
290 | | |
291 | 216k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { |
292 | 216k | int i = zend_bitset_first(set, len); |
293 | 216k | if (i >= 0) { |
294 | 184k | zend_bitset_excl(set, i); |
295 | 184k | } |
296 | 216k | return i; |
297 | 216k | } 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 | 110k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 110k | int i = zend_bitset_first(set, len); | 293 | 110k | if (i >= 0) { | 294 | 100k | zend_bitset_excl(set, i); | 295 | 100k | } | 296 | 110k | return i; | 297 | 110k | } |
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 | 105k | static inline int zend_bitset_pop_first(zend_bitset set, uint32_t len) { | 292 | 105k | int i = zend_bitset_first(set, len); | 293 | 105k | if (i >= 0) { | 294 | 83.1k | zend_bitset_excl(set, i); | 295 | 83.1k | } | 296 | 105k | return i; | 297 | 105k | } |
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_ */ |