clang
8.0.0
|
The fixed point semantics work similarly to llvm::fltSemantics. More...
#include "clang/Basic/FixedPoint.h"
Public Member Functions | |
FixedPointSemantics (unsigned Width, unsigned Scale, bool IsSigned, bool IsSaturated, bool HasUnsignedPadding) | |
unsigned | getWidth () const |
unsigned | getScale () const |
bool | isSigned () const |
bool | isSaturated () const |
bool | hasUnsignedPadding () const |
void | setSaturated (bool Saturated) |
unsigned | getIntegralBits () const |
The fixed point semantics work similarly to llvm::fltSemantics.
The width specifies the whole bit width of the underlying scaled integer (with padding if any). The scale represents the number of fractional bits in this type. When HasUnsignedPadding is true and this type is signed, the first bit in the value this represents is treaded as padding.
Definition at line 32 of file FixedPoint.h.
|
inline |
Definition at line 34 of file FixedPoint.h.
|
inline |
Definition at line 49 of file FixedPoint.h.
Referenced by clang::APFixedPoint::convert().
|
inline |
Definition at line 42 of file FixedPoint.h.
Referenced by clang::APFixedPoint::convert(), and clang::APFixedPoint::getIntPart().
|
inline |
Definition at line 41 of file FixedPoint.h.
Referenced by clang::APFixedPoint::APFixedPoint(), clang::APFixedPoint::convert(), clang::APFixedPoint::getMax(), and clang::APFixedPoint::getMin().
|
inline |
Definition at line 45 of file FixedPoint.h.
Referenced by clang::APFixedPoint::getMax().
|
inline |
Definition at line 44 of file FixedPoint.h.
Referenced by clang::APFixedPoint::convert().
|
inline |
Definition at line 43 of file FixedPoint.h.
Referenced by clang::APFixedPoint::convert(), clang::APFixedPoint::getMax(), and clang::APFixedPoint::getMin().
|
inline |
Definition at line 47 of file FixedPoint.h.