Lines Matching refs:result

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);
49 ZEND_API int boolean_not_function(zval *result, zval *op1 TSRMLS_DC);
50 ZEND_API int bitwise_not_function(zval *result, zval *op1 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);
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);
345 ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2);
346 ZEND_API void zend_compare_symbol_tables(zval *result, HashTable *ht1, HashTable *ht2 TSRMLS_DC);
347 ZEND_API void zend_compare_arrays(zval *result, zval *a1, zval *a2 TSRMLS_DC);
348 ZEND_API void zend_compare_objects(zval *result, zval *o1, zval *o2 TSRMLS_DC);
551 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_add_function() argument
571 : "r"(result), in fast_add_function()
591 : "r"(result), in fast_add_function()
604 Z_DVAL_P(result) = (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2); in fast_add_function()
605 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
607 Z_LVAL_P(result) = Z_LVAL_P(op1) + Z_LVAL_P(op2); in fast_add_function()
608 Z_TYPE_P(result) = IS_LONG; in fast_add_function()
613 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2); in fast_add_function()
614 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
619 Z_DVAL_P(result) = Z_DVAL_P(op1) + Z_DVAL_P(op2); in fast_add_function()
620 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
623 Z_DVAL_P(result) = Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)); in fast_add_function()
624 Z_TYPE_P(result) = IS_DOUBLE; 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() argument
655 : "r"(result), in fast_sub_function()
679 : "r"(result), in fast_sub_function()
684 Z_LVAL_P(result) = Z_LVAL_P(op1) - Z_LVAL_P(op2); in fast_sub_function()
687 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & 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()
689 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
691 Z_TYPE_P(result) = IS_LONG; in fast_sub_function()
696 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) - Z_DVAL_P(op2); in fast_sub_function()
697 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
702 Z_DVAL_P(result) = Z_DVAL_P(op1) - Z_DVAL_P(op2); in fast_sub_function()
703 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
706 Z_DVAL_P(result) = Z_DVAL_P(op1) - ((double)Z_LVAL_P(op2)); in fast_sub_function()
707 Z_TYPE_P(result) = IS_DOUBLE; 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() argument
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()
721 Z_TYPE_P(result) = overflow ? IS_DOUBLE : IS_LONG; in fast_mul_function()
724 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) * Z_DVAL_P(op2); in fast_mul_function()
725 Z_TYPE_P(result) = IS_DOUBLE; in fast_mul_function()
730 Z_DVAL_P(result) = Z_DVAL_P(op1) * Z_DVAL_P(op2); in fast_mul_function()
731 Z_TYPE_P(result) = IS_DOUBLE; in fast_mul_function()
734 Z_DVAL_P(result) = Z_DVAL_P(op1) * ((double)Z_LVAL_P(op2)); in fast_mul_function()
735 Z_TYPE_P(result) = IS_DOUBLE; 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() argument
749 Z_LVAL_P(result) = 0; in fast_div_function()
750 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
754 Z_DVAL_P(result) = (double) LONG_MIN / -1; in fast_div_function()
755 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
758 Z_LVAL_P(result) = Z_LVAL_P(op1) / Z_LVAL_P(op2); in fast_div_function()
759 Z_TYPE_P(result) = IS_LONG; in fast_div_function()
761 Z_DVAL_P(result) = ((double) Z_LVAL_P(op1)) / ((double)Z_LVAL_P(op2)); in fast_div_function()
762 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
768 Z_LVAL_P(result) = 0; in fast_div_function()
769 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
772 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) / Z_DVAL_P(op2); in fast_div_function()
773 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
780 Z_LVAL_P(result) = 0; in fast_div_function()
781 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
784 Z_DVAL_P(result) = Z_DVAL_P(op1) / Z_DVAL_P(op2); in fast_div_function()
785 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
790 Z_LVAL_P(result) = 0; in fast_div_function()
791 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
794 Z_DVAL_P(result) = Z_DVAL_P(op1) / ((double)Z_LVAL_P(op2)); in fast_div_function()
795 Z_TYPE_P(result) = IS_DOUBLE; 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() argument
809 Z_LVAL_P(result) = 0; in fast_mod_function()
810 Z_TYPE_P(result) = IS_BOOL; in fast_mod_function()
814 Z_LVAL_P(result) = 0; in fast_mod_function()
815 Z_TYPE_P(result) = IS_LONG; in fast_mod_function()
818 Z_LVAL_P(result) = Z_LVAL_P(op1) % Z_LVAL_P(op2); in fast_mod_function()
819 Z_TYPE_P(result) = IS_LONG; 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() argument
841 compare_function(result, op1, op2 TSRMLS_CC); in fast_equal_function()
842 return Z_LVAL_P(result) == 0; 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() argument
860 compare_function(result, op1, op2 TSRMLS_CC); in fast_not_equal_function()
861 return Z_LVAL_P(result) != 0; 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() argument
879 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_function()
880 return Z_LVAL_P(result) < 0; 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() argument
898 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_or_equal_function()
899 return Z_LVAL_P(result) <= 0; in fast_is_smaller_or_equal_function()