Lines Matching refs:op2_lval
433 #define convert_op1_op2_long(op1, op1_lval, op2, op2_lval, result, opcode, sigil) \ argument
463 op2_lval = Z_LVAL_P(op2); \
468 op2_lval = zendi_try_get_long(op2, &failed); \
477 op2_lval = Z_LVAL_P(op2); \
1413 zend_long op1_lval, op2_lval; in mod_function() local
1415 convert_op1_op2_long(op1, op1_lval, op2, op2_lval, result, ZEND_MOD, "%"); in mod_function()
1417 if (op2_lval == 0) { in mod_function()
1434 if (op2_lval == -1) { in mod_function()
1440 ZVAL_LONG(result, op1_lval % op2_lval); in mod_function()
1573 zend_long op1_lval, op2_lval; in bitwise_or_function() local
1633 op2_lval = zendi_try_get_long(op2, &failed); in bitwise_or_function()
1642 op2_lval = Z_LVAL_P(op2); in bitwise_or_function()
1648 ZVAL_LONG(result, op1_lval | op2_lval); in bitwise_or_function()
1655 zend_long op1_lval, op2_lval; in bitwise_and_function() local
1715 op2_lval = zendi_try_get_long(op2, &failed); in bitwise_and_function()
1724 op2_lval = Z_LVAL_P(op2); in bitwise_and_function()
1730 ZVAL_LONG(result, op1_lval & op2_lval); in bitwise_and_function()
1737 zend_long op1_lval, op2_lval; in bitwise_xor_function() local
1797 op2_lval = zendi_try_get_long(op2, &failed); in bitwise_xor_function()
1806 op2_lval = Z_LVAL_P(op2); in bitwise_xor_function()
1812 ZVAL_LONG(result, op1_lval ^ op2_lval); in bitwise_xor_function()
1819 zend_long op1_lval, op2_lval; in shift_left_function() local
1821 convert_op1_op2_long(op1, op1_lval, op2, op2_lval, result, ZEND_SL, "<<"); in shift_left_function()
1824 if (UNEXPECTED((zend_ulong)op2_lval >= SIZEOF_ZEND_LONG * 8)) { in shift_left_function()
1825 if (EXPECTED(op2_lval > 0)) { in shift_left_function()
1849 ZVAL_LONG(result, (zend_long) ((zend_ulong) op1_lval << op2_lval)); in shift_left_function()
1856 zend_long op1_lval, op2_lval; in shift_right_function() local
1858 convert_op1_op2_long(op1, op1_lval, op2, op2_lval, result, ZEND_SR, ">>"); in shift_right_function()
1861 if (UNEXPECTED((zend_ulong)op2_lval >= SIZEOF_ZEND_LONG * 8)) { in shift_right_function()
1862 if (EXPECTED(op2_lval > 0)) { in shift_right_function()
1885 ZVAL_LONG(result, op1_lval >> op2_lval); in shift_right_function()