Home   Manual   Type Index   Symbol Index   Topics Index

std::shift_right

bitwise shift-right operation

Description

The first operand (must be positive integer) is shifted right by the number of bits specified by the second operandt, that must be a positive integer, too.

Bits that are shifted out on the right side are "lost".

There is no restriction in the size of the integer numbers!

See also

std::shift_right   bitwise shift-right operation
std::bit_and   bitwise and operation
std::bit_or   bitwise inclusive or operation
std::bit_xor   bitwise exclusive or operation

Implemented by

std_types::positive_integer  as  std_types::positive_integer/std::shift_right