Shared type definitions for APFloat and its internal implementation classes.
Synopsis
Declared in <llvm/ADT/APFloat.h>
class APFloatBase;
Description
Holds floating‐point semantic enums, status/category codes, and accessors for built‐in fltSemantics. This class defines no non‐static data members.
Type Aliases
Name |
Description |
A signed type to represent a floating point numbers unbiased exponent. |
|
Unsigned word type used for multi‐precision integer parts of a float. |
|
IEEE‐754R 4.3: Rounding‐direction attributes. |
Enums
Name |
Description |
Enumeration of |
|
@{ Identifiers for the built‐in floating‐point formats APFloat supports. |
|
IEEE‐754R 5.11: Floating Point Comparison Relations. |
|
Category of internally‐represented number. |
|
IEEE‐754R 7: Default exception handling. |
|
Convenience enum used to construct an uninitialized APFloat. |
Static Member Functions
Name |
Description |
Return bfloat16 semantics. |
|
A Pseudo fltsemantic used to construct APFloats that cannot conflict with anything real. |
|
Map a |
|
Return 4‐bit S1E2M1 finite‐only floating‐point semantics. |
|
Return 6‐bit S1E2M3 finite‐only floating‐point semantics. |
|
Return 6‐bit S1E3M2 finite‐only floating‐point semantics. |
|
Return 8‐bit S1E3M4 floating‐point semantics. |
|
Return 8‐bit S1E4M3 floating‐point semantics. |
|
Return 8‐bit S1E4M3 bias‐11 finite / unsigned‐zero floating‐point semantics. |
|
Return 8‐bit S1E4M3 finite‐only floating‐point semantics. |
|
Return 8‐bit S1E4M3 finite / unsigned‐zero floating‐point semantics. |
|
Return 8‐bit S1E5M2 floating‐point semantics. |
|
Return 8‐bit S1E5M2 finite / unsigned‐zero floating‐point semantics. |
|
Return 8‐bit S0E5M3 floating‐point semantics. |
|
Return 8‐bit unsigned E8M0 scale floating‐point semantics. |
|
Return TensorFloat‐32 semantics. |
|
Return IEEE 754 binary64 (double) semantics. |
|
Return IEEE 754 binary16 (half) semantics. |
|
Return IEEE 754 binary128 (quad) semantics. |
|
Return IEEE 754 binary32 (single) semantics. |
|
Return IBM double‐double semantics. |
|
Return legacy IBM double‐double (consecutive 106‐bit mantissa) semantics. |
|
Map a |
|
Return the size in bits of a valid arbitrary floating‐point format string. |
|
Returns the fltSemantics for a given arbitrary FP format string, or nullptr if invalid. |
|
Returns the size of the floating point number (in bits) in the given semantics. |
|
Return true if the sign bit of |
|
Return true if |
|
Returns true if any number described by |
|
Return true if every finite value of semantics |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return how many integer bits are needed to hold values of |
|
Return the maximum unbiased exponent of |
|
Return the minimum normalized unbiased exponent of |
|
Return the significand precision (including the integer bit) of |
|
Return the storage size in bits of a value with semantics |
|
Return x87 80‐bit double‐extended semantics. |
Static Data Members
Name |
Description |
Number of bits in one |
|
Round to nearest, ties away from zero. |
|
Round to nearest, ties to even (IEEE default). |
|
Round toward negative infinity. |
|
Round toward positive infinity. |
|
Round toward zero (truncate). |
Friends
Name |
Description |
Arbitrary‐precision floating‐point value. |