Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Safely right shift values when undefined behavior could occur. More...
Safely right shift values when undefined behavior could occur.
bits | the number of bit positions to shift the value |
T | class or type |
value | the value to right shift |
SafeRightShift safely shifts the value to the right when undefined behavior could occur under C/C++ rules. SafeRightShift will return the shifted value or 0 if undefined behavior would occur.