more intuitive left shift and right shift operators
Before: * << is left shift, not allowed to shift 1 bits out * <<% is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out After: * << is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out * @shlExact is left shift, not allowed to shift 1 bits out * @shrExact is right shift, not allowed to shift 1 bits out Closes #413
This commit is contained in:
@@ -92,12 +92,14 @@ static const char *ir_bin_op_id_str(IrBinOp op_id) {
|
||||
return "^";
|
||||
case IrBinOpBinAnd:
|
||||
return "&";
|
||||
case IrBinOpBitShiftLeft:
|
||||
case IrBinOpBitShiftLeftLossy:
|
||||
return "<<";
|
||||
case IrBinOpBitShiftLeftWrap:
|
||||
return "<<%";
|
||||
case IrBinOpBitShiftRight:
|
||||
case IrBinOpBitShiftLeftExact:
|
||||
return "@shlExact";
|
||||
case IrBinOpBitShiftRightLossy:
|
||||
return ">>";
|
||||
case IrBinOpBitShiftRightExact:
|
||||
return "@shrExact";
|
||||
case IrBinOpAdd:
|
||||
return "+";
|
||||
case IrBinOpAddWrap:
|
||||
|
||||
Reference in New Issue
Block a user