Lines Matching refs:op2

45 ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
46 ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
47 ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
48 ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
49 ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
50 ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
51 ZEND_API int ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
54 ZEND_API int ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
55 ZEND_API int ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
56 ZEND_API int ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
57 ZEND_API int ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
58 ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
59 ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
61 ZEND_API int ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2);
63 ZEND_API int ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
64 ZEND_API int ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
65 ZEND_API int ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
66 ZEND_API int ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
67 ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
68 ZEND_API int ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
246 ZEND_API int ZEND_FASTCALL decrement_function(zval *op2);
337 ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
339 ZEND_API int ZEND_FASTCALL numeric_compare_function(zval *op1, zval *op2);
340 ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, zend_bool case_insensit…
341 ZEND_API int ZEND_FASTCALL string_compare_function(zval *op1, zval *op2);
342 ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2);
344 ZEND_API int ZEND_FASTCALL string_locale_compare_function(zval *op1, zval *op2);
550 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
554 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_add_function()
555 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
561 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_add_function()
562 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
587 "r"(&op2->value), in fast_long_add_function()
610 "r"(&op2->value), in fast_long_add_function()
622 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
623 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function()
624 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
626 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function()
631 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2) in fast_add_function() argument
634 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
635 fast_long_add_function(result, op1, op2); in fast_add_function()
637 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
638 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
642 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
643 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
645 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
646 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
650 return add_function(result, op1, op2); in fast_add_function()
653 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2) in fast_long_sub_function() argument
657 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_sub_function()
658 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
664 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_sub_function()
665 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
694 "r"(&op2->value), in fast_long_sub_function()
721 "r"(&op2->value), in fast_long_sub_function()
727 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function()
729 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
731 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
736 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2) in fast_div_function() argument
738 return div_function(result, op1, op2); in fast_div_function()
741 static zend_always_inline int fast_equal_check_function(zval *op1, zval *op2) in fast_equal_check_function() argument
745 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
746 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
747 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
748 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
751 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
752 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
753 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
754 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
757 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_function()
758 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_function()
760 } else if (Z_STRVAL_P(op1)[0] > '9' || Z_STRVAL_P(op2)[0] > '9') { in fast_equal_check_function()
761 if (Z_STRLEN_P(op1) != Z_STRLEN_P(op2)) { in fast_equal_check_function()
764 return memcmp(Z_STRVAL_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op1)) == 0; in fast_equal_check_function()
767 return zendi_smart_strcmp(Z_STR_P(op1), Z_STR_P(op2)) == 0; in fast_equal_check_function()
771 compare_function(&result, op1, op2); in fast_equal_check_function()
775 static zend_always_inline int fast_equal_check_long(zval *op1, zval *op2) in fast_equal_check_long() argument
778 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_long()
779 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_long()
781 compare_function(&result, op1, op2); in fast_equal_check_long()
785 static zend_always_inline int fast_equal_check_string(zval *op1, zval *op2) in fast_equal_check_string() argument
788 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_string()
789 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_string()
791 } else if (Z_STRVAL_P(op1)[0] > '9' || Z_STRVAL_P(op2)[0] > '9') { in fast_equal_check_string()
792 if (Z_STRLEN_P(op1) != Z_STRLEN_P(op2)) { in fast_equal_check_string()
795 return memcmp(Z_STRVAL_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op1)) == 0; in fast_equal_check_string()
798 return zendi_smart_strcmp(Z_STR_P(op1), Z_STR_P(op2)) == 0; in fast_equal_check_string()
801 compare_function(&result, op1, op2); in fast_equal_check_string()
805 static zend_always_inline int fast_is_identical_function(zval *op1, zval *op2) in fast_is_identical_function() argument
807 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function()
812 return zend_is_identical(op1, op2); in fast_is_identical_function()
815 static zend_always_inline int fast_is_not_identical_function(zval *op1, zval *op2) in fast_is_not_identical_function() argument
817 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_not_identical_function()
822 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()
834 ret = binary_op(objval, objval, op2); \
840 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2))) { \
846 …if (UNEXPECTED(Z_TYPE_P(op2) == IS_OBJECT) …
847 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op2, do_operation)) …
848 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2))) { \