Lines Matching refs:op1
54 ZEND_API zend_result ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
55 ZEND_API zend_result ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
56 ZEND_API zend_result ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
57 ZEND_API zend_result ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
58 ZEND_API zend_result ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
59 ZEND_API zend_result ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
60 ZEND_API zend_result ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
61 ZEND_API zend_result ZEND_FASTCALL boolean_not_function(zval *result, zval *op1);
62 ZEND_API zend_result ZEND_FASTCALL bitwise_not_function(zval *result, zval *op1);
63 ZEND_API zend_result ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
64 ZEND_API zend_result ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
65 ZEND_API zend_result ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
66 ZEND_API zend_result ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
67 ZEND_API zend_result ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
68 ZEND_API zend_result ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
70 ZEND_API bool ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2);
72 ZEND_API zend_result ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
73 ZEND_API zend_result ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
74 ZEND_API zend_result ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
75 ZEND_API zend_result ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
76 ZEND_API zend_result ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
77 ZEND_API zend_result ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
277 ZEND_API zend_result ZEND_FASTCALL increment_function(zval *op1);
428 ZEND_API int ZEND_FASTCALL zend_compare(zval *op1, zval *op2);
430 ZEND_API zend_result ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
432 ZEND_API int ZEND_FASTCALL numeric_compare_function(zval *op1, zval *op2);
433 ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, bool case_insensitive);
434 ZEND_API int ZEND_FASTCALL string_compare_function(zval *op1, zval *op2);
435 ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2);
436 ZEND_API int ZEND_FASTCALL string_locale_compare_function(zval *op1, zval *op2);
506 static zend_always_inline void fast_long_increment_function(zval *op1) in fast_long_increment_function() argument
513 : "r"(&op1->value) in fast_long_increment_function()
518 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
524 : "r"(&op1->value) in fast_long_increment_function()
529 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
537 : "r"(&op1->value) in fast_long_increment_function()
542 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
545 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_increment_function()
547 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
549 Z_LVAL_P(op1) = lresult; in fast_long_increment_function()
553 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_increment_function()
555 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
557 Z_LVAL_P(op1) = llresult; in fast_long_increment_function()
560 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MAX)) { in fast_long_increment_function()
562 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
564 Z_LVAL_P(op1)++; in fast_long_increment_function()
569 static zend_always_inline void fast_long_decrement_function(zval *op1) in fast_long_decrement_function() argument
576 : "r"(&op1->value) in fast_long_decrement_function()
581 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
587 : "r"(&op1->value) in fast_long_decrement_function()
592 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
600 : "r"(&op1->value) in fast_long_decrement_function()
605 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
608 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_decrement_function()
610 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
612 Z_LVAL_P(op1) = lresult; in fast_long_decrement_function()
616 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_decrement_function()
618 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
620 Z_LVAL_P(op1) = llresult; in fast_long_decrement_function()
623 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MIN)) { in fast_long_decrement_function()
625 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
627 Z_LVAL_P(op1)--; in fast_long_decrement_function()
632 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
643 "r"(&op1->value), in fast_long_add_function()
651 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
661 "r"(&op1->value), in fast_long_add_function()
669 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
681 "r"(&op1->value), in fast_long_add_function()
689 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
692 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_add_function()
693 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
699 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_add_function()
700 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
711 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
712 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function()
713 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
715 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function()
720 static zend_always_inline zend_result fast_add_function(zval *result, zval *op1, zval *op2) in fast_add_function() argument
722 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_add_function()
724 fast_long_add_function(result, op1, op2); in fast_add_function()
727 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
730 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_add_function()
732 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
735 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
739 return add_function(result, op1, op2); in fast_add_function()
742 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2) in fast_long_sub_function() argument
753 "r"(&op1->value), in fast_long_sub_function()
761 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
771 "r"(&op1->value), in fast_long_sub_function()
779 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
791 "r"(&op1->value), in fast_long_sub_function()
799 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
802 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_sub_function()
803 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
809 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_sub_function()
810 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
815 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function()
817 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
818 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & LONG_SIGN_MASK))) { in fast_long_sub_function()
819 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
835 static zend_always_inline bool fast_equal_check_function(zval *op1, zval *op2) in fast_equal_check_function() argument
837 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_equal_check_function()
839 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
841 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
843 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_equal_check_function()
845 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
847 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
849 } else if (EXPECTED(Z_TYPE_P(op1) == IS_STRING)) { in fast_equal_check_function()
851 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_function()
854 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
857 static zend_always_inline bool fast_equal_check_long(zval *op1, zval *op2) in fast_equal_check_long() argument
860 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_long()
862 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
865 static zend_always_inline bool fast_equal_check_string(zval *op1, zval *op2) in fast_equal_check_string() argument
868 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_string()
870 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
873 static zend_always_inline bool fast_is_identical_function(zval *op1, zval *op2) in fast_is_identical_function() argument
875 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function()
877 } else if (Z_TYPE_P(op1) <= IS_TRUE) { in fast_is_identical_function()
880 return zend_is_identical(op1, op2); in fast_is_identical_function()
883 static zend_always_inline bool fast_is_not_identical_function(zval *op1, zval *op2) in fast_is_not_identical_function() argument
885 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_not_identical_function()
887 } else if (Z_TYPE_P(op1) <= IS_TRUE) { in fast_is_not_identical_function()
890 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()