Right‐shift the scaled integer by Amt bits, keeping these semantics.
Synopsis
Declared in <llvm/ADT/APFixedPoint.h>
APFixedPoint
shr(
unsigned int Amt,
bool* Overflow = nullptr) const;
Description
Right shift cannot overflow; if Overflow is non‐null it is set false.
Return Value
The APFixedPoint class works similarly to APInt/APSInt in that it is a functional replacement for a scaled integer. It supports a wide range of semantics including the one used by fixed point types proposed in ISO/IEC JTC1 SC22 WG14 N1169. The class carries the value and semantics of a fixed point, and provides different operations that would normally be performed on fixed point types.
Parameters
Name |
Description |
Amt |
Number of bits to shift right. |
Overflow |
Optional overflow out‐parameter (always set false). |
Created with MrDocs