llvm::APFloat::convertToInteger

convertToInteger overloads

Synopses

Declared in <llvm/ADT/APFloat.h>

Convert this value to an integer stored in Result.

opStatus
convertToInteger(
    APSInt& Result,
    roundingMode RM,
    bool* IsExact) const;
» more...

Convert this floating-point value to an integer bit pattern in Input.

opStatus
convertToInteger(
    MutableArrayRef<integerPart> Input,
    unsigned int Width,
    bool IsSigned,
    roundingMode RM,
    bool* IsExact) const;
» more...

Return Value

IEEE exception status flags for the conversion

Parameters

NameDescription
Resultdestination APSInt (width and signedness select the format)
RMrounding mode for the conversion
IsExact [out]set when the conversion is exact
Inputdestination buffer for the integer limbs
Widthbit width of the destination integer
IsSignedtrue if the destination integer is signed