LLVM API Documentation
#include "llvm/ADT/APFloat.h"#include "llvm/ADT/FoldingSet.h"#include "llvm/Support/MathExtras.h"#include <cstring>

Go to the source code of this file.
Namespaces | |
| namespace | llvm |
Classes | |
| struct | llvm::fltSemantics |
Defines | |
| #define | convolve(lhs, rhs) ((lhs) * 4 + (rhs)) |
| #define | COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1] |
Functions | |
| COMPILE_TIME_ASSERT (integerPartWidth%4==0) | |
| static unsigned int | partCountForBits (unsigned int bits) |
| static unsigned int | decDigitValue (unsigned int c) |
| static unsigned int | hexDigitValue (unsigned int c) |
| static void | assertArithmeticOK (const llvm::fltSemantics &semantics) |
| static int | readExponent (const char *p) |
| static int | totalExponent (const char *p, int exponentAdjustment) |
| static const char * | skipLeadingZeroesAndAnyDot (const char *p, const char **dot) |
| static void | interpretDecimal (const char *p, decimalInfo *D) |
| static lostFraction | trailingHexadecimalFraction (const char *p, unsigned int digitValue) |
| static lostFraction | lostFractionThroughTruncation (const integerPart *parts, unsigned int partCount, unsigned int bits) |
| static lostFraction | shiftRight (integerPart *dst, unsigned int parts, unsigned int bits) |
| static lostFraction | combineLostFractions (lostFraction moreSignificant, lostFraction lessSignificant) |
| static unsigned int | HUerrBound (bool inexactMultiply, unsigned int HUerr1, unsigned int HUerr2) |
| static integerPart | ulpsFromBoundary (const integerPart *parts, unsigned int bits, bool isNearest) |
| static unsigned int | powerOf5 (integerPart *dst, unsigned int power) |
| static unsigned int | partAsHex (char *dst, integerPart part, unsigned int count, const char *hexDigitChars) |
| static char * | writeUnsignedDecimal (char *dst, unsigned int n) |
| static char * | writeSignedDecimal (char *dst, int value) |
Variables | |
| const unsigned int | llvm::maxExponent = 16383 |
| const unsigned int | llvm::maxPrecision = 113 |
| const unsigned int | llvm::maxPowerOfFiveExponent = maxExponent + maxPrecision - 1 |
| const unsigned int | llvm::maxPowerOfFiveParts |
| static const char | hexDigitsLower [] = "0123456789abcdef0" |
| static const char | hexDigitsUpper [] = "0123456789ABCDEF0" |
| static const char | infinityL [] = "infinity" |
| static const char | infinityU [] = "INFINITY" |
| static const char | NaNL [] = "nan" |
| static const char | NaNU [] = "NAN" |
| #define COMPILE_TIME_ASSERT | ( | cond | ) | extern int CTAssert[(cond) ? 1 : -1] |
Definition at line 26 of file APFloat.cpp.
| #define convolve | ( | lhs, | |||
| rhs | ) | ((lhs) * 4 + (rhs)) |
| static void @473::assertArithmeticOK | ( | const llvm::fltSemantics & | semantics | ) | [inline, static] |
Definition at line 115 of file APFloat.cpp.
References llvm::fltSemantics::arithmeticOK.
Referenced by llvm::APFloat::APFloat(), llvm::APFloat::compare(), llvm::APFloat::convert(), llvm::APFloat::convertFromSignExtendedInteger(), llvm::APFloat::convertFromString(), llvm::APFloat::convertToHexString(), llvm::APFloat::divide(), llvm::APFloat::fusedMultiplyAdd(), llvm::APFloat::mod(), and llvm::APFloat::multiply().
| static lostFraction @473::combineLostFractions | ( | lostFraction | moreSignificant, | |
| lostFraction | lessSignificant | |||
| ) | [static] |
Definition at line 359 of file APFloat.cpp.
References llvm::lfExactlyHalf, llvm::lfExactlyZero, llvm::lfLessThanHalf, and llvm::lfMoreThanHalf.
| COMPILE_TIME_ASSERT | ( | integerPartWidth% | 4 = =0 |
) |
Definition at line 89 of file APFloat.cpp.
Referenced by interpretDecimal(), readExponent(), and totalExponent().
| static unsigned int @473::HUerrBound | ( | bool | inexactMultiply, | |
| unsigned int | HUerr1, | |||
| unsigned int | HUerr2 | |||
| ) | [static] |
Definition at line 380 of file APFloat.cpp.
| static void @473::interpretDecimal | ( | const char * | p, | |
| decimalInfo * | D | |||
| ) | [static] |
Definition at line 246 of file APFloat.cpp.
References decDigitValue(), readExponent(), and skipLeadingZeroesAndAnyDot().
| static lostFraction @473::lostFractionThroughTruncation | ( | const integerPart * | parts, | |
| unsigned int | partCount, | |||
| unsigned int | bits | |||
| ) | [static] |
Definition at line 324 of file APFloat.cpp.
References llvm::integerPartWidth, llvm::lfExactlyHalf, llvm::lfExactlyZero, llvm::lfLessThanHalf, and llvm::lfMoreThanHalf.
Referenced by llvm::APFloat::convert(), and shiftRight().
| static unsigned int @473::partAsHex | ( | char * | dst, | |
| integerPart | part, | |||
| unsigned int | count, | |||
| const char * | hexDigitChars | |||
| ) | [static] |
Definition at line 82 of file APFloat.cpp.
References llvm::integerPartWidth.
Referenced by llvm::APFloat::convert(), llvm::APFloat::convertFromZeroExtendedInteger(), and llvm::APFloat::convertToInteger().
| static unsigned int @473::powerOf5 | ( | integerPart * | dst, | |
| unsigned int | power | |||
| ) | [static] |
Definition at line 439 of file APFloat.cpp.
References llvm::maxExponent, and llvm::maxPowerOfFiveParts.
| static int @473::readExponent | ( | const char * | p | ) | [static] |
Definition at line 126 of file APFloat.cpp.
References decDigitValue().
Referenced by interpretDecimal().
| static lostFraction @473::shiftRight | ( | integerPart * | dst, | |
| unsigned int | parts, | |||
| unsigned int | bits | |||
| ) | [static] |
| static const char* @473::skipLeadingZeroesAndAnyDot | ( | const char * | p, | |
| const char ** | dot | |||
| ) | [static] |
| static int @473::totalExponent | ( | const char * | p, | |
| int | exponentAdjustment | |||
| ) | [static] |
| static lostFraction @473::trailingHexadecimalFraction | ( | const char * | p, | |
| unsigned int | digitValue | |||
| ) | [static] |
Definition at line 296 of file APFloat.cpp.
References hexDigitValue(), llvm::lfExactlyHalf, llvm::lfExactlyZero, llvm::lfLessThanHalf, and llvm::lfMoreThanHalf.
| static integerPart @473::ulpsFromBoundary | ( | const integerPart * | parts, | |
| unsigned int | bits, | |||
| bool | isNearest | |||
| ) | [static] |
| static char* @473::writeSignedDecimal | ( | char * | dst, | |
| int | value | |||
| ) | [static] |
| static char* @473::writeUnsignedDecimal | ( | char * | dst, | |
| unsigned int | n | |||
| ) | [static] |
| int exponent |
| const char* firstSigDigit |
Definition at line 239 of file APFloat.cpp.
const char hexDigitsLower[] = "0123456789abcdef0" [static] |
Definition at line 499 of file APFloat.cpp.
const char hexDigitsUpper[] = "0123456789ABCDEF0" [static] |
Definition at line 500 of file APFloat.cpp.
const char infinityL[] = "infinity" [static] |
const char infinityU[] = "INFINITY" [static] |
| const char* lastSigDigit |
Definition at line 240 of file APFloat.cpp.
const char NaNL[] = "nan" [static] |
const char NaNU[] = "NAN" [static] |
Definition at line 242 of file APFloat.cpp.
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.