Lines Matching refs:op1

41 ZEND_API zend_result ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
42 ZEND_API zend_result ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
43 ZEND_API zend_result ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
44 ZEND_API zend_result ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
45 ZEND_API zend_result ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
46 ZEND_API zend_result ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
47 ZEND_API zend_result ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
48 ZEND_API zend_result ZEND_FASTCALL boolean_not_function(zval *result, zval *op1);
49 ZEND_API zend_result ZEND_FASTCALL bitwise_not_function(zval *result, zval *op1);
50 ZEND_API zend_result ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
51 ZEND_API zend_result ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
52 ZEND_API zend_result ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
53 ZEND_API zend_result ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
54 ZEND_API zend_result ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
55 ZEND_API zend_result ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
57 ZEND_API zend_bool ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2);
59 ZEND_API zend_result ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
60 ZEND_API zend_result ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
61 ZEND_API zend_result ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
62 ZEND_API zend_result ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
63 ZEND_API zend_result ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
64 ZEND_API zend_result ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
247 ZEND_API zend_result ZEND_FASTCALL increment_function(zval *op1);
396 ZEND_API int ZEND_FASTCALL zend_compare(zval *op1, zval *op2);
398 ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
400 ZEND_API int ZEND_FASTCALL numeric_compare_function(zval *op1, zval *op2);
401 ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, zend_bool case_insensit…
402 ZEND_API int ZEND_FASTCALL string_compare_function(zval *op1, zval *op2);
403 ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2);
404 ZEND_API int ZEND_FASTCALL string_locale_compare_function(zval *op1, zval *op2);
516 static zend_always_inline void fast_long_increment_function(zval *op1) in fast_long_increment_function() argument
523 : "r"(&op1->value) in fast_long_increment_function()
528 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
534 : "r"(&op1->value) in fast_long_increment_function()
539 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
547 : "r"(&op1->value) in fast_long_increment_function()
552 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
555 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_increment_function()
557 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
559 Z_LVAL_P(op1) = lresult; in fast_long_increment_function()
563 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_increment_function()
565 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
567 Z_LVAL_P(op1) = llresult; in fast_long_increment_function()
570 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MAX)) { in fast_long_increment_function()
572 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MAX + 1.0); in fast_long_increment_function()
574 Z_LVAL_P(op1)++; in fast_long_increment_function()
579 static zend_always_inline void fast_long_decrement_function(zval *op1) in fast_long_decrement_function() argument
586 : "r"(&op1->value) in fast_long_decrement_function()
591 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
597 : "r"(&op1->value) in fast_long_decrement_function()
602 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
610 : "r"(&op1->value) in fast_long_decrement_function()
615 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
618 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_decrement_function()
620 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
622 Z_LVAL_P(op1) = lresult; in fast_long_decrement_function()
626 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_decrement_function()
628 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
630 Z_LVAL_P(op1) = llresult; in fast_long_decrement_function()
633 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MIN)) { in fast_long_decrement_function()
635 ZVAL_DOUBLE(op1, (double)ZEND_LONG_MIN - 1.0); in fast_long_decrement_function()
637 Z_LVAL_P(op1)--; in fast_long_decrement_function()
642 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2) in fast_long_add_function() argument
653 "r"(&op1->value), in fast_long_add_function()
661 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
671 "r"(&op1->value), in fast_long_add_function()
679 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
691 "r"(&op1->value), in fast_long_add_function()
699 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
702 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_add_function()
703 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
709 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_add_function()
710 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
721 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
722 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function()
723 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function()
725 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function()
730 static zend_always_inline zend_result fast_add_function(zval *result, zval *op1, zval *op2) in fast_add_function() argument
732 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_add_function()
734 fast_long_add_function(result, op1, op2); in fast_add_function()
737 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
740 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_add_function()
742 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
745 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
749 return add_function(result, op1, op2); in fast_add_function()
752 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2) in fast_long_sub_function() argument
763 "r"(&op1->value), in fast_long_sub_function()
771 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
781 "r"(&op1->value), in fast_long_sub_function()
789 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
801 "r"(&op1->value), in fast_long_sub_function()
809 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
812 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_sub_function()
813 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
819 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &llresult))) { in fast_long_sub_function()
820 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
825 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function()
827 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
828 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & LONG_SIGN_MASK))) { in fast_long_sub_function()
829 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function()
834 static zend_always_inline zend_result fast_div_function(zval *result, zval *op1, zval *op2) in fast_div_function() argument
836 return div_function(result, op1, op2); in fast_div_function()
850 static zend_always_inline bool fast_equal_check_function(zval *op1, zval *op2) in fast_equal_check_function() argument
852 if (EXPECTED(Z_TYPE_P(op1) == IS_LONG)) { in fast_equal_check_function()
854 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function()
856 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
858 } else if (EXPECTED(Z_TYPE_P(op1) == IS_DOUBLE)) { in fast_equal_check_function()
860 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
862 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
864 } else if (EXPECTED(Z_TYPE_P(op1) == IS_STRING)) { in fast_equal_check_function()
866 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_function()
869 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
872 static zend_always_inline bool fast_equal_check_long(zval *op1, zval *op2) in fast_equal_check_long() argument
875 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_long()
877 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
880 static zend_always_inline bool fast_equal_check_string(zval *op1, zval *op2) in fast_equal_check_string() argument
883 return zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2)); in fast_equal_check_string()
885 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
888 static zend_always_inline zend_bool fast_is_identical_function(zval *op1, zval *op2) in fast_is_identical_function() argument
890 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function()
892 } else if (Z_TYPE_P(op1) <= IS_TRUE) { in fast_is_identical_function()
895 return zend_is_identical(op1, op2); in fast_is_identical_function()
898 static zend_always_inline zend_bool fast_is_not_identical_function(zval *op1, zval *op2) in fast_is_not_identical_function() argument
900 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_not_identical_function()
902 } else if (Z_TYPE_P(op1) <= IS_TRUE) { in fast_is_not_identical_function()
905 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()