BloombergLP::bdldfp::operator>>

Return the bitwise right shift of the specified lhs by rhs bits.

Synopsis

Declared in <bdldfp_uint128.h>

bdldfp::Uint128
operator>>(
    Uint128 lhs,
    int rhs);

Description

Return an Uint128 value equal to the value of a bitwise right shift of the specified lhs 128-bit integer shifted by the specified rhs value. The behavior is undefined unless 0 <= rhs < 128.

Return Value

the bitwise right shift of lhs by rhs bits

Parameters

NameDescription
lhsvalue to shift
rhsnumber of bits to shift