Lines Matching refs:op2
48 ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
49 ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
50 ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
51 ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
52 ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
53 ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
54 ZEND_API int ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
57 ZEND_API int ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
58 ZEND_API int ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
59 ZEND_API int ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
60 ZEND_API int ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
61 ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
62 ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
64 ZEND_API int ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2);
66 ZEND_API int ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
67 ZEND_API int ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
68 ZEND_API int ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
69 ZEND_API int ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
70 ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
71 ZEND_API int ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
249 ZEND_API int ZEND_FASTCALL decrement_function(zval *op2);
340 ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
342 ZEND_API int ZEND_FASTCALL numeric_compare_function(zval *op1, zval *op2);
343 ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, zend_bool case_insensit…
344 ZEND_API int ZEND_FASTCALL string_compare_function(zval *op1, zval *op2);
345 ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2);
347 ZEND_API int ZEND_FASTCALL string_locale_compare_function(zval *op1, zval *op2);
521 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
544 "r"(&op2->value), in fast_long_add_function()
567 "r"(&op2->value), in fast_long_add_function()
579 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
580 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function()
581 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
583 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function()
588 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2) in fast_add_function() argument
591 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
592 fast_long_add_function(result, op1, op2); in fast_add_function()
594 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
595 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
599 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
600 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
602 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
603 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
607 return add_function(result, op1, op2); in fast_add_function()
610 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2) in fast_long_sub_function() argument
637 "r"(&op2->value), in fast_long_sub_function()
664 "r"(&op2->value), in fast_long_sub_function()
670 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function()
672 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
674 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
679 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2) in fast_div_function() argument
681 return div_function(result, op1, op2); in fast_div_function()
684 static zend_always_inline int fast_equal_check_function(zval *op1, zval *op2) in fast_equal_check_function() argument
688 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
689 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
690 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
691 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
694 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_check_function()
695 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
696 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_function()
697 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
700 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_function()
701 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_function()
703 } else if (Z_STRVAL_P(op1)[0] > '9' || Z_STRVAL_P(op2)[0] > '9') { in fast_equal_check_function()
704 if (Z_STRLEN_P(op1) != Z_STRLEN_P(op2)) { in fast_equal_check_function()
707 return memcmp(Z_STRVAL_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op1)) == 0; in fast_equal_check_function()
710 return zendi_smart_strcmp(Z_STR_P(op1), Z_STR_P(op2)) == 0; in fast_equal_check_function()
714 compare_function(&result, op1, op2); in fast_equal_check_function()
718 static zend_always_inline int fast_equal_check_long(zval *op1, zval *op2) in fast_equal_check_long() argument
721 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_check_long()
722 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_long()
724 compare_function(&result, op1, op2); in fast_equal_check_long()
728 static zend_always_inline int fast_equal_check_string(zval *op1, zval *op2) in fast_equal_check_string() argument
731 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) { in fast_equal_check_string()
732 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_string()
734 } else if (Z_STRVAL_P(op1)[0] > '9' || Z_STRVAL_P(op2)[0] > '9') { in fast_equal_check_string()
735 if (Z_STRLEN_P(op1) != Z_STRLEN_P(op2)) { in fast_equal_check_string()
738 return memcmp(Z_STRVAL_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op1)) == 0; in fast_equal_check_string()
741 return zendi_smart_strcmp(Z_STR_P(op1), Z_STR_P(op2)) == 0; in fast_equal_check_string()
744 compare_function(&result, op1, op2); in fast_equal_check_string()
748 static zend_always_inline int fast_is_identical_function(zval *op1, zval *op2) in fast_is_identical_function() argument
750 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function()
755 return zend_is_identical(op1, op2); in fast_is_identical_function()
758 static zend_always_inline int fast_is_not_identical_function(zval *op1, zval *op2) in fast_is_not_identical_function() argument
760 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_not_identical_function()
765 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()
777 ret = binary_op(objval, objval, op2); \
783 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2))) { \
789 …if (UNEXPECTED(Z_TYPE_P(op2) == IS_OBJECT) …
790 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op2, do_operation)) …
791 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2))) { \