Lines Matching refs:op1

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);
55 ZEND_API int ZEND_FASTCALL boolean_not_function(zval *result, zval *op1);
56 ZEND_API int ZEND_FASTCALL bitwise_not_function(zval *result, zval *op1);
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);
248 ZEND_API int ZEND_FASTCALL increment_function(zval *op1);
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);
445 static zend_always_inline void fast_long_increment_function(zval *op1) in fast_long_increment_function() argument
456 : "r"(&op1->value), in fast_long_increment_function()
469 : "r"(&op1->value), in fast_long_increment_function()
474 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MAX)) { in fast_long_increment_function()
476 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
478 Z_LVAL_P(op1)++; in fast_long_increment_function()
483 static zend_always_inline void fast_long_decrement_function(zval *op1) in fast_long_decrement_function() argument
494 : "r"(&op1->value), in fast_long_decrement_function()
507 : "r"(&op1->value), in fast_long_decrement_function()
512 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MIN)) { in fast_long_decrement_function()
514 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
516 Z_LVAL_P(op1)--; in fast_long_decrement_function()
521 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
543 "r"(&op1->value), in fast_long_add_function()
566 "r"(&op1->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
590 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_add_function()
592 fast_long_add_function(result, op1, op2); in fast_add_function()
595 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
598 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_add_function()
600 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); 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
636 "r"(&op1->value), in fast_long_sub_function()
663 "r"(&op1->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()
673 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & 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
687 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_equal_check_function()
689 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
691 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
693 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_equal_check_function()
695 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
697 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
699 } else if (EXPECTED(Z_TYPE_P(op1) == 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() local
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
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
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() local
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()
752 } else if (Z_TYPE_P(op1) <= IS_TRUE) { 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()
762 } else if (Z_TYPE_P(op1) <= IS_TRUE) { in fast_is_not_identical_function()
765 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()
769 …if (UNEXPECTED(Z_TYPE_P(op1) == IS_OBJECT) …
770 …&& op1 == result …
771 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op1, get)) …
772 …&& EXPECTED(Z_OBJ_HANDLER_P(op1, set))) { …
775 zval *objval = Z_OBJ_HANDLER_P(op1, get)(op1, &rv); \
778 Z_OBJ_HANDLER_P(op1, set)(op1, objval); \
781 …} else if (UNEXPECTED(Z_TYPE_P(op1) == IS_OBJECT) …
782 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op1, do_operation))) { …
783 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2))) { \
791 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2))) { \
801 …if (UNEXPECTED(Z_TYPE_P(op1) == IS_OBJECT) …
802 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op1, do_operation)) …
803 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, NULL))) { \