From 3c92b79ea056543ad711a9ad3a042847dd0904a2 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 7 May 2019 03:07:21 +0200 Subject: [PATCH] Remove unused functions - zend_mm_bitset_find_zero - zend_mm_bitset_find_one - zend_mm_bitset_find_zero_and_set - zend_is_by_ref_func_arg_fetch --- Zend/zend_alloc.c | 44 -------------------------------------------- Zend/zend_execute.c | 9 --------- 2 files changed, 53 deletions(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 3531e79df4..c57cfbedbd 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -532,50 +532,6 @@ static zend_always_inline int zend_mm_bitset_nts(zend_mm_bitset bitset) #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); diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 39cf01e5af..a49ee0a50b 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -3541,15 +3541,6 @@ ZEND_API void zend_init_execute_data(zend_execute_data *execute_data, zend_op_ar } /* }}} */ -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; -- 2.40.0