Perform a unary negation (‐X) on this fixed point type, taking into account saturation if applicable.
Synopsis
Declared in <llvm/ADT/APFixedPoint.h>
APFixedPoint
negate(bool* Overflow = nullptr) const;
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.
Created with MrDocs