Skip to content

Rose::BitOps::shiftRightSigned

shiftRightSigned overloads

Synopses

Declared in <src/Rose/BitOps.h>

Right shift replicating MSB.

template<typename Unsigned>
Unsigned
shiftRightSigned(
    Unsigned src,
    size_t n);

Right shift low bits without affecting other bits.

template<typename Unsigned>
Unsigned
shiftRightSigned(
    Unsigned src,
    size_t w,
    size_t n);

Return Value

  • Shifted value.

  • Updated value.

Parameters

Name

Description

src

Input value.

n

Shift count.

w

Width of the low‐order region.

Created with MrDocs