Lines Matching refs:op2
44 ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
45 ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
46 ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
47 ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
48 ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
49 ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
50 ZEND_API int ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
53 ZEND_API int ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
54 ZEND_API int ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
55 ZEND_API int ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
56 ZEND_API int ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
57 ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
58 ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
60 ZEND_API int ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2);
62 ZEND_API int ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
63 ZEND_API int ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
64 ZEND_API int ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
65 ZEND_API int ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
66 ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
67 ZEND_API int ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
245 ZEND_API int ZEND_FASTCALL decrement_function(zval *op2);
358 ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
360 ZEND_API int ZEND_FASTCALL numeric_compare_function(zval *op1, zval *op2);
361 ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, zend_bool case_insensit…
362 ZEND_API int ZEND_FASTCALL string_compare_function(zval *op1, zval *op2);
363 ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2);
365 ZEND_API int ZEND_FASTCALL string_locale_compare_function(zval *op1, zval *op2);
572 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
584 "r"(&op2->value), in fast_long_add_function()
591 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
602 "r"(&op2->value), in fast_long_add_function()
609 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
612 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_add_function()
613 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
619 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_add_function()
620 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
631 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
632 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function()
633 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
635 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function()
640 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2) in fast_add_function() argument
643 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
644 fast_long_add_function(result, op1, op2); in fast_add_function()
646 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
647 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
651 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
652 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
654 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
655 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
659 return add_function(result, op1, op2); in fast_add_function()
662 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2) in fast_long_sub_function() argument
674 "r"(&op2->value), in fast_long_sub_function()
681 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
692 "r"(&op2->value), in fast_long_sub_function()
699 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
702 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_sub_function()
703 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
709 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_sub_function()
710 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
715 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function()
717 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
719 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
724 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2) in fast_div_function() argument
726 return div_function(result, op1, op2); in fast_div_function()
740 static zend_always_inline int fast_equal_check_function(zval *op1, zval *op2) in fast_equal_check_function() argument
744 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
745 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
746 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
747 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
750 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
751 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
752 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
753 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
756 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_function()
757 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_function()
760 compare_function(&result, op1, op2); in fast_equal_check_function()
764 static zend_always_inline int fast_equal_check_long(zval *op1, zval *op2) in fast_equal_check_long() argument
767 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_long()
768 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_long()
770 compare_function(&result, op1, op2); in fast_equal_check_long()
774 static zend_always_inline int fast_equal_check_string(zval *op1, zval *op2) in fast_equal_check_string() argument
777 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_string()
778 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_string()
780 compare_function(&result, op1, op2); in fast_equal_check_string()
784 static zend_always_inline int fast_is_identical_function(zval *op1, zval *op2) in fast_is_identical_function() argument
786 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function()
791 return zend_is_identical(op1, op2); in fast_is_identical_function()
794 static zend_always_inline int fast_is_not_identical_function(zval *op1, zval *op2) in fast_is_not_identical_function() argument
796 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_not_identical_function()
801 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()
813 ret = binary_op(objval, objval, op2); \
819 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2))) { \
825 …if (UNEXPECTED(Z_TYPE_P(op2) == IS_OBJECT) …
826 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op2, do_operation)) …
827 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2))) { \