File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,8 @@ fn eval_const_expr(e: @expr) -> const_val {
265
265
mul { const_int ( a * b) } div { const_int ( a / b) }
266
266
rem { const_int ( a % b) } and | bitand { const_int ( a & b) }
267
267
or | bitor { const_int ( a | b) } bitxor { const_int ( a ^ b) }
268
+ lsl { const_int ( a << b) } lsr { const_int ( a >> b) }
269
+ asr { const_int ( a >>> b) }
268
270
eq { fromb ( a == b) } lt { fromb ( a < b) }
269
271
le { fromb ( a <= b) } ne { fromb ( a != b) }
270
272
ge { fromb ( a >= b) } gt { fromb ( a > b) }
@@ -276,6 +278,8 @@ fn eval_const_expr(e: @expr) -> const_val {
276
278
mul { const_uint ( a * b) } div { const_uint ( a / b) }
277
279
rem { const_uint ( a % b) } and | bitand { const_uint ( a & b) }
278
280
or | bitor { const_uint ( a | b) } bitxor { const_uint ( a ^ b) }
281
+ lsl { const_int ( a << b as i64 ) } lsr { const_int ( a >> b as i64 ) }
282
+ asr { const_int ( a >>> b as i64 ) }
279
283
eq { fromb ( a == b) } lt { fromb ( a < b) }
280
284
le { fromb ( a <= b) } ne { fromb ( a != b) }
281
285
ge { fromb ( a >= b) } gt { fromb ( a > b) }
You can’t perform that action at this time.
0 commit comments