Lines Matching refs:result

41 ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
42 ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
43 ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
44 ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
45 ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
46 ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
47 ZEND_API int ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
48 ZEND_API int ZEND_FASTCALL boolean_not_function(zval *result, zval *op1);
49 ZEND_API int ZEND_FASTCALL bitwise_not_function(zval *result, zval *op1);
50 ZEND_API int ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
51 ZEND_API int ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
52 ZEND_API int ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
53 ZEND_API int ZEND_FASTCALL shift_left_function(zval *result, zval *op1, zval *op2);
54 ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *op2);
55 ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2);
59 ZEND_API int ZEND_FASTCALL is_equal_function(zval *result, zval *op1, zval *op2);
60 ZEND_API int ZEND_FASTCALL is_identical_function(zval *result, zval *op1, zval *op2);
61 ZEND_API int ZEND_FASTCALL is_not_identical_function(zval *result, zval *op1, zval *op2);
62 ZEND_API int ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval *op2);
63 ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2);
64 ZEND_API int ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
342 int result = 0;
347 result = 1;
351 result = 1;
356 result = 1;
361 result = 1;
366 result = 1;
371 result = 1;
373 result = zend_object_is_true(op);
378 result = 1;
388 return result;
391 ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2);
635 static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2)
645 : "r"(&result->value),
654 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
663 : "r"(&result->value),
672 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
683 : "r"(&result->value),
692 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
696 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
698 ZVAL_LONG(result, lresult);
703 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
705 ZVAL_LONG(result, llresult);
709 * 'result' may alias with op1 or op2, so we need to
710 * ensure that 'result' is not updated until after we
716 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
718 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2));
723 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2)
727 fast_long_add_function(result, op1, op2);
730 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2));
735 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
738 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)));
742 return add_function(result, op1, op2);
745 static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2)
755 : "r"(&result->value),
764 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
773 : "r"(&result->value),
782 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
793 : "r"(&result->value),
802 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
806 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
808 ZVAL_LONG(result, lresult);
813 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
815 ZVAL_LONG(result, llresult);
818 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2));
821 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & LONG_SIGN_MASK))) {
822 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2));
827 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2)
829 return div_function(result, op1, op2);
845 zval result;
863 compare_function(&result, op1, op2);
864 return Z_LVAL(result) == 0;
869 zval result;
873 compare_function(&result, op1, op2);
874 return Z_LVAL(result) == 0;
879 zval result;
883 compare_function(&result, op1, op2);
884 return Z_LVAL(result) == 0;
909 && op1 == result \
922 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2))) { \
930 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2))) { \
942 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, NULL))) { \
959 char *result = zend_print_ulong_to_buf(buf, ~((zend_ulong) num) + 1);
960 *--result = '-';
961 return result;