Lines Matching refs:op2
43 ZEND_API int add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
44 ZEND_API int sub_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
45 ZEND_API int mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
46 ZEND_API int div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
47 ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
48 ZEND_API int boolean_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
51 ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
52 ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
53 ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
54 ZEND_API int shift_left_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
55 ZEND_API int shift_right_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
56 ZEND_API int concat_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
58 ZEND_API int is_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
59 ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
60 ZEND_API int is_not_identical_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
61 ZEND_API int is_not_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
62 ZEND_API int is_smaller_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
63 ZEND_API int is_smaller_or_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
302 ZEND_API int decrement_function(zval *op2);
316 ZEND_API int add_char_to_string(zval *result, const zval *op1, const zval *op2);
317 ZEND_API int add_string_to_string(zval *result, const zval *op1, const zval *op2);
323 ZEND_API int compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
324 ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
325 ZEND_API int string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensit…
326 ZEND_API int string_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
327 ZEND_API int string_case_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
329 ZEND_API int string_locale_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
551 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_add_function()
554 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
573 "r"(op2) in fast_add_function()
593 "r"(op2) in fast_add_function()
602 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_add_function()
603 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_add_function()
604 Z_DVAL_P(result) = (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2); in fast_add_function()
607 Z_LVAL_P(result) = Z_LVAL_P(op1) + Z_LVAL_P(op2); in fast_add_function()
612 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
613 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2); in fast_add_function()
618 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_add_function()
619 Z_DVAL_P(result) = Z_DVAL_P(op1) + Z_DVAL_P(op2); in fast_add_function()
622 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_add_function()
623 Z_DVAL_P(result) = Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)); in fast_add_function()
628 return add_function(result, op1, op2 TSRMLS_CC); in fast_add_function()
631 static zend_always_inline int fast_sub_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_sub_function()
634 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_sub_function()
657 "r"(op2) in fast_sub_function()
681 "r"(op2) in fast_sub_function()
684 Z_LVAL_P(result) = Z_LVAL_P(op1) - Z_LVAL_P(op2); in fast_sub_function()
686 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_sub_function()
688 Z_DVAL_P(result) = (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2); in fast_sub_function()
695 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_sub_function()
696 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) - Z_DVAL_P(op2); in fast_sub_function()
701 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_sub_function()
702 Z_DVAL_P(result) = Z_DVAL_P(op1) - Z_DVAL_P(op2); in fast_sub_function()
705 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_sub_function()
706 Z_DVAL_P(result) = Z_DVAL_P(op1) - ((double)Z_LVAL_P(op2)); in fast_sub_function()
711 return sub_function(result, op1, op2 TSRMLS_CC); in fast_sub_function()
714 static zend_always_inline int fast_mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_mul_function()
717 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_mul_function()
720 …ZEND_SIGNED_MULTIPLY_LONG(Z_LVAL_P(op1), Z_LVAL_P(op2), Z_LVAL_P(result), Z_DVAL_P(result), overfl… in fast_mul_function()
723 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_mul_function()
724 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) * Z_DVAL_P(op2); in fast_mul_function()
729 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_mul_function()
730 Z_DVAL_P(result) = Z_DVAL_P(op1) * Z_DVAL_P(op2); in fast_mul_function()
733 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_mul_function()
734 Z_DVAL_P(result) = Z_DVAL_P(op1) * ((double)Z_LVAL_P(op2)); in fast_mul_function()
739 return mul_function(result, op1, op2 TSRMLS_CC); in fast_mul_function()
742 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_div_function()
746 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_div_function()
747 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_div_function()
752 } else if (UNEXPECTED(Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == LONG_MIN)) { in fast_div_function()
756 } else if (EXPECTED(Z_LVAL_P(op1) % Z_LVAL_P(op2) == 0)) { in fast_div_function()
758 Z_LVAL_P(result) = Z_LVAL_P(op1) / Z_LVAL_P(op2); in fast_div_function()
761 Z_DVAL_P(result) = ((double) Z_LVAL_P(op1)) / ((double)Z_LVAL_P(op2)); in fast_div_function()
765 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_div_function()
766 if (UNEXPECTED(Z_DVAL_P(op2) == 0)) { in fast_div_function()
772 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) / Z_DVAL_P(op2); in fast_div_function()
777 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_div_function()
778 if (UNEXPECTED(Z_DVAL_P(op2) == 0)) { in fast_div_function()
784 Z_DVAL_P(result) = Z_DVAL_P(op1) / Z_DVAL_P(op2); in fast_div_function()
787 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_div_function()
788 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_div_function()
794 Z_DVAL_P(result) = Z_DVAL_P(op1) / ((double)Z_LVAL_P(op2)); in fast_div_function()
800 return div_function(result, op1, op2 TSRMLS_CC); in fast_div_function()
803 static zend_always_inline int fast_mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_mod_function()
806 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_mod_function()
807 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_mod_function()
812 } else if (UNEXPECTED(Z_LVAL_P(op2) == -1)) { in fast_mod_function()
818 Z_LVAL_P(result) = Z_LVAL_P(op1) % Z_LVAL_P(op2); in fast_mod_function()
823 return mod_function(result, op1, op2 TSRMLS_CC); in fast_mod_function()
826 static zend_always_inline int fast_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_equal_function()
829 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_function()
830 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_function()
831 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_function()
832 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_function()
835 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_equal_function()
836 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_function()
837 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_equal_function()
838 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_function()
841 compare_function(result, op1, op2 TSRMLS_CC); in fast_equal_function()
845 static zend_always_inline int fast_not_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_not_equal_function()
848 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_not_equal_function()
849 return Z_LVAL_P(op1) != Z_LVAL_P(op2); in fast_not_equal_function()
850 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_not_equal_function()
851 return ((double)Z_LVAL_P(op1)) != Z_DVAL_P(op2); in fast_not_equal_function()
854 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_not_equal_function()
855 return Z_DVAL_P(op1) != Z_DVAL_P(op2); in fast_not_equal_function()
856 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_not_equal_function()
857 return Z_DVAL_P(op1) != ((double)Z_LVAL_P(op2)); in fast_not_equal_function()
860 compare_function(result, op1, op2 TSRMLS_CC); in fast_not_equal_function()
864 static zend_always_inline int fast_is_smaller_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_is_smaller_function()
867 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_is_smaller_function()
868 return Z_LVAL_P(op1) < Z_LVAL_P(op2); in fast_is_smaller_function()
869 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_is_smaller_function()
870 return ((double)Z_LVAL_P(op1)) < Z_DVAL_P(op2); in fast_is_smaller_function()
873 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_is_smaller_function()
874 return Z_DVAL_P(op1) < Z_DVAL_P(op2); in fast_is_smaller_function()
875 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_is_smaller_function()
876 return Z_DVAL_P(op1) < ((double)Z_LVAL_P(op2)); in fast_is_smaller_function()
879 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_function()
883 static zend_always_inline int fast_is_smaller_or_equal_function(zval *result, zval *op1, zval *op2 … in fast_is_smaller_or_equal_function()
886 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_is_smaller_or_equal_function()
887 return Z_LVAL_P(op1) <= Z_LVAL_P(op2); in fast_is_smaller_or_equal_function()
888 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_is_smaller_or_equal_function()
889 return ((double)Z_LVAL_P(op1)) <= Z_DVAL_P(op2); in fast_is_smaller_or_equal_function()
892 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) { in fast_is_smaller_or_equal_function()
893 return Z_DVAL_P(op1) <= Z_DVAL_P(op2); in fast_is_smaller_or_equal_function()
894 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) { in fast_is_smaller_or_equal_function()
895 return Z_DVAL_P(op1) <= ((double)Z_LVAL_P(op2)); in fast_is_smaller_or_equal_function()
898 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_or_equal_function()