fn emit_simm(sink: &mut MachBuffer<Inst>, size: u8, simm32: u32) {
    match size {
        8 | 4 => sink.put4(simm32),
        2 => sink.put2(simm32 as u16),
        1 => sink.put1(simm32 as u8),
        _ => unreachable!(),
    }
}
/// Write a suitable number of bits from an imm64 to the sink.
Write a suitable number of bits from an imm64 to the sink.
Write a suitable number of bits from an imm64 to the sink .
fn emit_simm(sink: &mut MachBuffer<Inst>, size: u8, simm32: u32) {
    match size {
        8 | 4 => sink.put4(simm32),
        2 => sink.put2(simm32 as u16),
        1 => sink.put1(simm32 as u8),
        _ => unreachable!(),
    }
}
fn emit_simm ( sink : & mut MachBuffer < Inst > , size : u8 , simm32 : u32 ) { match size { 8 | 4 => sink . put4 ( simm32 ) , 2 => sink . put2 ( simm32 as u16 ) , 1 => sink . put1 ( simm32 as u8 ) , _ => unreachable ! ( ) , } }
Write a suitable number of bits from an imm64 to the sink.
Write a suitable number of bits from an imm64 to the sink .
sink
&mut MachBuffer<Inst>
size
u8
simm32
u32
sink
&mut MachBuffer<Inst>
size
u8
simm32
u32