Lines Matching refs:result
47 ZEND_API int add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
48 ZEND_API int sub_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
49 ZEND_API int mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
50 ZEND_API int div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
51 ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
52 ZEND_API int boolean_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
53 ZEND_API int boolean_not_function(zval *result, zval *op1 TSRMLS_DC);
54 ZEND_API int bitwise_not_function(zval *result, zval *op1 TSRMLS_DC);
55 ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
56 ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
57 ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
58 ZEND_API int shift_left_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
59 ZEND_API int shift_right_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
60 ZEND_API int concat_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
62 ZEND_API int is_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
63 ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
64 ZEND_API int is_not_identical_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
65 ZEND_API int is_not_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
66 ZEND_API int is_smaller_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
67 ZEND_API int is_smaller_or_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
339 ZEND_API int add_char_to_string(zval *result, const zval *op1, const zval *op2);
340 ZEND_API int add_string_to_string(zval *result, const zval *op1, const zval *op2);
347 ZEND_API int compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
348 ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
349 ZEND_API int string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensit…
350 ZEND_API int string_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
351 ZEND_API int string_case_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
353 ZEND_API int string_locale_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
370 ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2);
371 ZEND_API void zend_compare_symbol_tables(zval *result, HashTable *ht1, HashTable *ht2 TSRMLS_DC);
372 ZEND_API void zend_compare_arrays(zval *result, zval *a1, zval *a2 TSRMLS_DC);
373 ZEND_API void zend_compare_objects(zval *result, zval *o1, zval *o2 TSRMLS_DC);
592 static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_add_function() argument
612 : "r"(&result->value), in fast_add_function()
635 : "r"(&result->value), in fast_add_function()
651 Z_DVAL_P(result) = (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2); in fast_add_function()
652 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
654 Z_LVAL_P(result) = Z_LVAL_P(op1) + Z_LVAL_P(op2); in fast_add_function()
655 Z_TYPE_P(result) = IS_LONG; in fast_add_function()
660 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2); in fast_add_function()
661 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
666 Z_DVAL_P(result) = Z_DVAL_P(op1) + Z_DVAL_P(op2); in fast_add_function()
667 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
670 Z_DVAL_P(result) = Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)); in fast_add_function()
671 Z_TYPE_P(result) = IS_DOUBLE; in fast_add_function()
675 return add_function(result, op1, op2 TSRMLS_CC); in fast_add_function()
678 static zend_always_inline int fast_sub_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_sub_function() argument
702 : "r"(&result->value), in fast_sub_function()
729 : "r"(&result->value), in fast_sub_function()
737 Z_LVAL_P(result) = Z_LVAL_P(op1) - Z_LVAL_P(op2); in fast_sub_function()
740 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(result) & LONG_SIGN_MASK))) { in fast_sub_function()
741 Z_DVAL_P(result) = (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2); in fast_sub_function()
742 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
744 Z_TYPE_P(result) = IS_LONG; in fast_sub_function()
749 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) - Z_DVAL_P(op2); in fast_sub_function()
750 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
755 Z_DVAL_P(result) = Z_DVAL_P(op1) - Z_DVAL_P(op2); in fast_sub_function()
756 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
759 Z_DVAL_P(result) = Z_DVAL_P(op1) - ((double)Z_LVAL_P(op2)); in fast_sub_function()
760 Z_TYPE_P(result) = IS_DOUBLE; in fast_sub_function()
764 return sub_function(result, op1, op2 TSRMLS_CC); in fast_sub_function()
767 static zend_always_inline int fast_mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_mul_function() argument
773 …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()
774 Z_TYPE_P(result) = overflow ? IS_DOUBLE : IS_LONG; in fast_mul_function()
777 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) * Z_DVAL_P(op2); in fast_mul_function()
778 Z_TYPE_P(result) = IS_DOUBLE; in fast_mul_function()
783 Z_DVAL_P(result) = Z_DVAL_P(op1) * Z_DVAL_P(op2); in fast_mul_function()
784 Z_TYPE_P(result) = IS_DOUBLE; in fast_mul_function()
787 Z_DVAL_P(result) = Z_DVAL_P(op1) * ((double)Z_LVAL_P(op2)); in fast_mul_function()
788 Z_TYPE_P(result) = IS_DOUBLE; in fast_mul_function()
792 return mul_function(result, op1, op2 TSRMLS_CC); in fast_mul_function()
795 static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_div_function() argument
802 Z_LVAL_P(result) = 0; in fast_div_function()
803 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
807 Z_DVAL_P(result) = (double) LONG_MIN / -1; in fast_div_function()
808 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
811 Z_LVAL_P(result) = Z_LVAL_P(op1) / Z_LVAL_P(op2); in fast_div_function()
812 Z_TYPE_P(result) = IS_LONG; in fast_div_function()
814 Z_DVAL_P(result) = ((double) Z_LVAL_P(op1)) / ((double)Z_LVAL_P(op2)); in fast_div_function()
815 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
821 Z_LVAL_P(result) = 0; in fast_div_function()
822 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
825 Z_DVAL_P(result) = ((double)Z_LVAL_P(op1)) / Z_DVAL_P(op2); in fast_div_function()
826 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
833 Z_LVAL_P(result) = 0; in fast_div_function()
834 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
837 Z_DVAL_P(result) = Z_DVAL_P(op1) / Z_DVAL_P(op2); in fast_div_function()
838 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
843 Z_LVAL_P(result) = 0; in fast_div_function()
844 Z_TYPE_P(result) = IS_BOOL; in fast_div_function()
847 Z_DVAL_P(result) = Z_DVAL_P(op1) / ((double)Z_LVAL_P(op2)); in fast_div_function()
848 Z_TYPE_P(result) = IS_DOUBLE; in fast_div_function()
853 return div_function(result, op1, op2 TSRMLS_CC); in fast_div_function()
856 static zend_always_inline int fast_mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_mod_function() argument
862 Z_LVAL_P(result) = 0; in fast_mod_function()
863 Z_TYPE_P(result) = IS_BOOL; in fast_mod_function()
867 Z_LVAL_P(result) = 0; in fast_mod_function()
868 Z_TYPE_P(result) = IS_LONG; in fast_mod_function()
871 Z_LVAL_P(result) = Z_LVAL_P(op1) % Z_LVAL_P(op2); in fast_mod_function()
872 Z_TYPE_P(result) = IS_LONG; in fast_mod_function()
876 return mod_function(result, op1, op2 TSRMLS_CC); in fast_mod_function()
879 static zend_always_inline int fast_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_equal_function() argument
894 compare_function(result, op1, op2 TSRMLS_CC); in fast_equal_function()
895 return Z_LVAL_P(result) == 0; in fast_equal_function()
898 static zend_always_inline int fast_not_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_not_equal_function() argument
913 compare_function(result, op1, op2 TSRMLS_CC); in fast_not_equal_function()
914 return Z_LVAL_P(result) != 0; in fast_not_equal_function()
917 static zend_always_inline int fast_is_smaller_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in fast_is_smaller_function() argument
932 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_function()
933 return Z_LVAL_P(result) < 0; in fast_is_smaller_function()
936 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
951 compare_function(result, op1, op2 TSRMLS_CC); in fast_is_smaller_or_equal_function()
952 return Z_LVAL_P(result) <= 0; in fast_is_smaller_or_equal_function()