Skip to main content

SextHEmitter

Trait SextHEmitter 

Source
pub trait SextHEmitter<T0, T1> {
    // Required method
    fn sext_h(&mut self, rd: T0, rs1: T1);
}
Expand description

Sign-extend halfword

This instruction sign-extends the least-significant halfword in the source to XLEN by copying the most-significant bit in the halfword (i.e., bit 15) to all of the more-significant bits.

§Forms

Assembly: sext.h xd, xs1 Rust: sext_h(rd, rs1)

§Arguments

  • rd — Destination register.
  • rs1 — Source register.

Required Methods§

Source

fn sext_h(&mut self, rd: T0, rs1: T1)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§