@@ -234,7 +234,7 @@ impl InstructionOperands {
234
234
panic ! ( "Index for WaitSource::IRQ should be in range 0..=7" ) ;
235
235
}
236
236
(
237
- ( * polarity) << 2 | ( * source as u8 ) ,
237
+ ( ( * polarity) << 2 ) | ( * source as u8 ) ,
238
238
* index | ( if * relative { 0b10000 } else { 0 } ) ,
239
239
)
240
240
}
@@ -254,18 +254,18 @@ impl InstructionOperands {
254
254
( * destination as u8 , * bit_count & 0b11111 )
255
255
}
256
256
InstructionOperands :: PUSH { if_full, block } => {
257
- ( ( * if_full as u8 ) << 1 | ( * block as u8 ) , 0 )
257
+ ( ( ( * if_full as u8 ) << 1 ) | ( * block as u8 ) , 0 )
258
258
}
259
259
InstructionOperands :: PULL { if_empty, block } => {
260
- ( 1 << 2 | ( * if_empty as u8 ) << 1 | ( * block as u8 ) , 0 )
260
+ ( ( 1 << 2 ) | ( ( * if_empty as u8 ) << 1 ) | ( * block as u8 ) , 0 )
261
261
}
262
262
InstructionOperands :: MOV {
263
263
destination,
264
264
op,
265
265
source,
266
- } => ( * destination as u8 , ( * op as u8 ) << 3 | ( * source as u8 ) ) ,
267
- InstructionOperands :: MOVTORX { fifo_index } => ( 0 , 1 << 4 | * fifo_index as u8 ) ,
268
- InstructionOperands :: MOVFROMRX { fifo_index } => ( 0b100 , 1 << 4 | * fifo_index as u8 ) ,
266
+ } => ( * destination as u8 , ( ( * op as u8 ) << 3 ) | ( * source as u8 ) ) ,
267
+ InstructionOperands :: MOVTORX { fifo_index } => ( 0 , ( 1 << 4 ) | * fifo_index as u8 ) ,
268
+ InstructionOperands :: MOVFROMRX { fifo_index } => ( 0b100 , ( 1 << 4 ) | * fifo_index as u8 ) ,
269
269
InstructionOperands :: IRQ {
270
270
clear,
271
271
wait,
@@ -276,8 +276,8 @@ impl InstructionOperands {
276
276
panic ! ( "invalid interrupt flags" ) ;
277
277
}
278
278
(
279
- ( * clear as u8 ) << 1 | ( * wait as u8 ) ,
280
- * index | ( * index_mode as u8 ) << 3 ,
279
+ ( ( * clear as u8 ) << 1 ) | ( * wait as u8 ) ,
280
+ * index | ( ( * index_mode as u8 ) << 3 ) ,
281
281
)
282
282
}
283
283
InstructionOperands :: SET { destination, data } => {
0 commit comments