#endif
}
-static zend_always_inline int zend_mm_bitset_find_zero(zend_mm_bitset *bitset, int size)
-{
- int i = 0;
-
- do {
- zend_mm_bitset tmp = bitset[i];
- if (tmp != (zend_mm_bitset)-1) {
- return i * ZEND_MM_BITSET_LEN + zend_mm_bitset_nts(tmp);
- }
- i++;
- } while (i < size);
- return -1;
-}
-
-static zend_always_inline int zend_mm_bitset_find_one(zend_mm_bitset *bitset, int size)
-{
- int i = 0;
-
- do {
- zend_mm_bitset tmp = bitset[i];
- if (tmp != 0) {
- return i * ZEND_MM_BITSET_LEN + zend_ulong_ntz(tmp);
- }
- i++;
- } while (i < size);
- return -1;
-}
-
-static zend_always_inline int zend_mm_bitset_find_zero_and_set(zend_mm_bitset *bitset, int size)
-{
- int i = 0;
-
- do {
- zend_mm_bitset tmp = bitset[i];
- if (tmp != (zend_mm_bitset)-1) {
- int n = zend_mm_bitset_nts(tmp);
- bitset[i] |= Z_UL(1) << n;
- return i * ZEND_MM_BITSET_LEN + n;
- }
- i++;
- } while (i < size);
- return -1;
-}
-
static zend_always_inline int zend_mm_bitset_is_set(zend_mm_bitset *bitset, int bit)
{
return ZEND_BIT_TEST(bitset, bit);
}
/* }}} */
-static zend_always_inline zend_bool zend_is_by_ref_func_arg_fetch(uint32_t arg_num, zend_function *func) /* {{{ */
-{
- if (EXPECTED(arg_num <= MAX_ARG_FLAG_NUM)) {
- return QUICK_ARG_SHOULD_BE_SENT_BY_REF(func, arg_num);
- }
- return ARG_SHOULD_BE_SENT_BY_REF(func, arg_num);
-}
-/* }}} */
-
static zend_execute_data *zend_vm_stack_copy_call_frame(zend_execute_data *call, uint32_t passed_args, uint32_t additional_args) /* {{{ */
{
zend_execute_data *new_call;