Lines Matching refs:op2

1837 …result zend_ffi_cdata_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op2) /* {{{ */  in zend_ffi_cdata_do_operation()  argument
1842 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1849 offset = zval_get_long(op2); in zend_ffi_cdata_do_operation()
1856 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
1857 zend_ffi_cdata *cdata2 = (zend_ffi_cdata*)Z_OBJ_P(op2); in zend_ffi_cdata_do_operation()
1885 offset = zval_get_long(op2); in zend_ffi_cdata_do_operation()
1893 } else if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
1894 zend_ffi_cdata *cdata2 = (zend_ffi_cdata*)Z_OBJ_P(op2); in zend_ffi_cdata_do_operation()
7052 #define zend_ffi_expr_math(val, op2, OP) do { \ argument
7054 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7055 val->kind = MAX(val->kind, op2->kind); \
7056 val->u64 = val->u64 OP op2->u64; \
7057 } else if (op2->kind == ZEND_FFI_VAL_INT32) { \
7058 val->u64 = val->u64 OP op2->i64; \
7059 } else if (op2->kind == ZEND_FFI_VAL_INT64) { \
7060 val->u64 = val->u64 OP op2->i64; \
7061 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7062 val->kind = op2->kind; \
7063 val->d = (zend_ffi_double)val->u64 OP op2->d; \
7064 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7065 val->u64 = val->u64 OP op2->ch; \
7070 if (op2->kind == ZEND_FFI_VAL_UINT32) { \
7071 val->i64 = val->i64 OP op2->u64; \
7072 } else if (op2->kind == ZEND_FFI_VAL_UINT64) { \
7073 val->i64 = val->i64 OP op2->u64; \
7074 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7075 val->kind = MAX(val->kind, op2->kind); \
7076 val->i64 = val->i64 OP op2->i64; \
7077 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7078 val->kind = op2->kind; \
7079 val->d = (zend_ffi_double)val->i64 OP op2->d; \
7080 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7081 val->i64 = val->i64 OP op2->ch; \
7086 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7087 val->d = val->d OP (zend_ffi_double)op2->u64; \
7088 } else if (op2->kind == ZEND_FFI_VAL_INT32 ||op2->kind == ZEND_FFI_VAL_INT64) { \
7089 val->d = val->d OP (zend_ffi_double)op2->i64; \
7090 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7091 val->kind = MAX(val->kind, op2->kind); \
7092 val->d = val->d OP op2->d; \
7093 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7094 val->d = val->d OP (zend_ffi_double)op2->ch; \
7099 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7100 val->kind = op2->kind; \
7101 val->u64 = val->ch OP op2->u64; \
7102 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7104 val->i64 = val->ch OP op2->i64; \
7105 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7106 val->kind = op2->kind; \
7107 val->d = (zend_ffi_double)val->ch OP op2->d; \
7108 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7109 val->ch = val->ch OP op2->ch; \
7118 #define zend_ffi_expr_int_math(val, op2, OP) do { \ argument
7120 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7121 val->kind = MAX(val->kind, op2->kind); \
7122 val->u64 = val->u64 OP op2->u64; \
7123 } else if (op2->kind == ZEND_FFI_VAL_INT32) { \
7124 val->u64 = val->u64 OP op2->i64; \
7125 } else if (op2->kind == ZEND_FFI_VAL_INT64) { \
7126 val->u64 = val->u64 OP op2->i64; \
7127 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7128 val->u64 = val->u64 OP (uint64_t)op2->d; \
7129 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7130 val->u64 = val->u64 OP op2->ch; \
7135 if (op2->kind == ZEND_FFI_VAL_UINT32) { \
7136 val->i64 = val->i64 OP op2->u64; \
7137 } else if (op2->kind == ZEND_FFI_VAL_UINT64) { \
7138 val->i64 = val->i64 OP op2->u64; \
7139 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7140 val->kind = MAX(val->kind, op2->kind); \
7141 val->i64 = val->i64 OP op2->i64; \
7142 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7143 val->u64 = val->u64 OP (int64_t)op2->d; \
7144 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7145 val->i64 = val->i64 OP op2->ch; \
7150 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7151 val->kind = op2->kind; \
7152 val->u64 = (uint64_t)val->d OP op2->u64; \
7153 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7154 val->kind = op2->kind; \
7155 val->i64 = (int64_t)val->d OP op2->i64; \
7160 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7161 val->kind = op2->kind; \
7162 val->u64 = (uint64_t)val->ch OP op2->u64; \
7163 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7164 val->kind = op2->kind; \
7165 val->i64 = (int64_t)val->ch OP op2->u64; \
7166 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7167 val->ch = val->ch OP op2->ch; \
7176 #define zend_ffi_expr_cmp(val, op2, OP) do { \ argument
7178 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7180 val->i64 = val->u64 OP op2->u64; \
7181 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7183 val->i64 = val->u64 OP op2->u64; /*signed/unsigned */ \
7184 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7186 val->i64 = (zend_ffi_double)val->u64 OP op2->d; \
7187 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7189 val->i64 = val->u64 OP op2->d; \
7194 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7196 val->i64 = val->i64 OP op2->i64; /* signed/unsigned */ \
7197 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7199 val->i64 = val->i64 OP op2->i64; \
7200 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7202 val->i64 = (zend_ffi_double)val->i64 OP op2->d; \
7203 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7205 val->i64 = val->i64 OP op2->ch; \
7210 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7212 val->i64 = val->d OP (zend_ffi_double)op2->u64; \
7213 } else if (op2->kind == ZEND_FFI_VAL_INT32 ||op2->kind == ZEND_FFI_VAL_INT64) { \
7215 val->i64 = val->d OP (zend_ffi_double)op2->i64; \
7216 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7218 val->i64 = val->d OP op2->d; \
7219 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7221 val->i64 = val->d OP (zend_ffi_double)op2->ch; \
7226 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7228 val->i64 = val->ch OP op2->i64; /* signed/unsigned */ \
7229 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7231 val->i64 = val->ch OP op2->i64; \
7232 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7234 val->i64 = (zend_ffi_double)val->ch OP op2->d; \
7235 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7237 val->i64 = val->ch OP op2->ch; \
7246 void zend_ffi_expr_conditional(zend_ffi_val *val, zend_ffi_val *op2, zend_ffi_val *op3) /* {{{ */ argument
7251 *val = *op2;
7259 void zend_ffi_expr_bool_or(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7262 zend_ffi_expr_bool(op2);
7263 if (val->kind == ZEND_FFI_VAL_INT32 && op2->kind == ZEND_FFI_VAL_INT32) {
7264 val->i64 = val->i64 || op2->i64;
7271 void zend_ffi_expr_bool_and(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7274 zend_ffi_expr_bool(op2);
7275 if (val->kind == ZEND_FFI_VAL_INT32 && op2->kind == ZEND_FFI_VAL_INT32) {
7276 val->i64 = val->i64 && op2->i64;
7283 void zend_ffi_expr_bw_or(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7285 zend_ffi_expr_int_math(val, op2, |);
7289 void zend_ffi_expr_bw_xor(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7291 zend_ffi_expr_int_math(val, op2, ^);
7295 void zend_ffi_expr_bw_and(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7297 zend_ffi_expr_int_math(val, op2, &);
7301 void zend_ffi_expr_is_equal(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7303 zend_ffi_expr_cmp(val, op2, ==);
7307 void zend_ffi_expr_is_not_equal(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7309 zend_ffi_expr_cmp(val, op2, !=);
7313 void zend_ffi_expr_is_less(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7315 zend_ffi_expr_cmp(val, op2, <);
7319 void zend_ffi_expr_is_greater(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7321 zend_ffi_expr_cmp(val, op2, >);
7325 void zend_ffi_expr_is_less_or_equal(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7327 zend_ffi_expr_cmp(val, op2, <=);
7331 void zend_ffi_expr_is_greater_or_equal(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7333 zend_ffi_expr_cmp(val, op2, >=);
7337 void zend_ffi_expr_shift_left(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7339 zend_ffi_expr_int_math(val, op2, <<);
7343 void zend_ffi_expr_shift_right(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7345 zend_ffi_expr_int_math(val, op2, >>);
7349 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7351 zend_ffi_expr_math(val, op2, +);
7355 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7357 zend_ffi_expr_math(val, op2, -);
7361 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7363 zend_ffi_expr_math(val, op2, *);
7367 void zend_ffi_expr_div(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7369 zend_ffi_expr_math(val, op2, /);
7373 void zend_ffi_expr_mod(zend_ffi_val *val, zend_ffi_val *op2) /* {{{ */ argument
7375 zend_ffi_expr_int_math(val, op2, %); // ???