Lines Matching refs:APFloatBase

52 static_assert(APFloatBase::integerPartWidth % 4 == 0, "Part width must be divisible by 4!");
106 APFloatBase::ExponentType maxExponent;
110 APFloatBase::ExponentType minExponent;
194 const llvm::fltSemantics &APFloatBase::EnumToSemantics(Semantics S) { in EnumToSemantics()
234 APFloatBase::Semantics
235 APFloatBase::SemanticsToEnum(const llvm::fltSemantics &Sem) { in SemanticsToEnum()
274 const fltSemantics &APFloatBase::IEEEhalf() { return semIEEEhalf; } in IEEEhalf()
275 const fltSemantics &APFloatBase::BFloat() { return semBFloat; } in BFloat()
276 const fltSemantics &APFloatBase::IEEEsingle() { return semIEEEsingle; } in IEEEsingle()
277 const fltSemantics &APFloatBase::IEEEdouble() { return semIEEEdouble; } in IEEEdouble()
278 const fltSemantics &APFloatBase::IEEEquad() { return semIEEEquad; } in IEEEquad()
279 const fltSemantics &APFloatBase::PPCDoubleDouble() { in PPCDoubleDouble()
282 const fltSemantics &APFloatBase::Float8E5M2() { return semFloat8E5M2; } in Float8E5M2()
283 const fltSemantics &APFloatBase::Float8E5M2FNUZ() { return semFloat8E5M2FNUZ; } in Float8E5M2FNUZ()
284 const fltSemantics &APFloatBase::Float8E4M3() { return semFloat8E4M3; } in Float8E4M3()
285 const fltSemantics &APFloatBase::Float8E4M3FN() { return semFloat8E4M3FN; } in Float8E4M3FN()
286 const fltSemantics &APFloatBase::Float8E4M3FNUZ() { return semFloat8E4M3FNUZ; } in Float8E4M3FNUZ()
287 const fltSemantics &APFloatBase::Float8E4M3B11FNUZ() { in Float8E4M3B11FNUZ()
290 const fltSemantics &APFloatBase::FloatTF32() { return semFloatTF32; } in FloatTF32()
291 const fltSemantics &APFloatBase::Float6E3M2FN() { return semFloat6E3M2FN; } in Float6E3M2FN()
292 const fltSemantics &APFloatBase::Float6E2M3FN() { return semFloat6E2M3FN; } in Float6E2M3FN()
293 const fltSemantics &APFloatBase::Float4E2M1FN() { return semFloat4E2M1FN; } in Float4E2M1FN()
294 const fltSemantics &APFloatBase::x87DoubleExtended() { in x87DoubleExtended()
297 const fltSemantics &APFloatBase::Bogus() { return semBogus; } in Bogus()
299 constexpr RoundingMode APFloatBase::rmNearestTiesToEven;
300 constexpr RoundingMode APFloatBase::rmTowardPositive;
301 constexpr RoundingMode APFloatBase::rmTowardNegative;
302 constexpr RoundingMode APFloatBase::rmTowardZero;
303 constexpr RoundingMode APFloatBase::rmNearestTiesToAway;
321 ((maxPowerOfFiveExponent * 815) / (351 * APFloatBase::integerPartWidth));
323 unsigned int APFloatBase::semanticsPrecision(const fltSemantics &semantics) { in semanticsPrecision()
326 APFloatBase::ExponentType
327 APFloatBase::semanticsMaxExponent(const fltSemantics &semantics) { in semanticsMaxExponent()
330 APFloatBase::ExponentType
331 APFloatBase::semanticsMinExponent(const fltSemantics &semantics) { in semanticsMinExponent()
334 unsigned int APFloatBase::semanticsSizeInBits(const fltSemantics &semantics) { in semanticsSizeInBits()
337 unsigned int APFloatBase::semanticsIntSizeInBits(const fltSemantics &semantics, in semanticsIntSizeInBits()
348 bool APFloatBase::isRepresentableAsNormalIn(const fltSemantics &Src, in isRepresentableAsNormalIn()
362 unsigned APFloatBase::getSizeInBits(const fltSemantics &Sem) { in getSizeInBits()
366 static constexpr APFloatBase::ExponentType
371 static constexpr APFloatBase::ExponentType
376 static constexpr APFloatBase::ExponentType
393 return ((bits) + APFloatBase::integerPartWidth - 1) / APFloatBase::integerPartWidth; in partCountForBits()
646 lostFractionThroughTruncation(const APFloatBase::integerPart *parts, in lostFractionThroughTruncation()
659 if (bits <= partCount * APFloatBase::integerPartWidth && in lostFractionThroughTruncation()
668 shiftRight(APFloatBase::integerPart *dst, unsigned int parts, unsigned int bits) in shiftRight()
715 static APFloatBase::integerPart
716 ulpsFromBoundary(const APFloatBase::integerPart *parts, unsigned int bits, in ulpsFromBoundary()
719 APFloatBase::integerPart part, boundary; in ulpsFromBoundary()
724 count = bits / APFloatBase::integerPartWidth; in ulpsFromBoundary()
725 partBits = bits % APFloatBase::integerPartWidth + 1; in ulpsFromBoundary()
727 …part = parts[count] & (~(APFloatBase::integerPart) 0 >> (APFloatBase::integerPartWidth - partBits)… in ulpsFromBoundary()
730 boundary = (APFloatBase::integerPart) 1 << (partBits - 1); in ulpsFromBoundary()
744 return ~(APFloatBase::integerPart) 0; /* A lot. */ in ulpsFromBoundary()
750 return ~(APFloatBase::integerPart) 0; /* A lot. */ in ulpsFromBoundary()
755 return ~(APFloatBase::integerPart) 0; /* A lot. */ in ulpsFromBoundary()
761 powerOf5(APFloatBase::integerPart *dst, unsigned int power) { in powerOf5()
762 …static const APFloatBase::integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125, 15625, 7812… in powerOf5()
763 APFloatBase::integerPart pow5s[maxPowerOfFiveParts * 2 + 5]; in powerOf5()
767 APFloatBase::integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5; in powerOf5()
791 APFloatBase::integerPart *tmp; in powerOf5()
827 partAsHex (char *dst, APFloatBase::integerPart part, unsigned int count, in partAsHex()
832 assert(count != 0 && count <= APFloatBase::integerPartWidth / 4); in partAsHex()
834 part >>= (APFloatBase::integerPartWidth - 4 * count); in partAsHex()
4581 APFloatBase::ExponentType IEEEFloat::exponentNaN() const { in exponentNaN()
4585 APFloatBase::ExponentType IEEEFloat::exponentInf() const { in exponentInf()
4589 APFloatBase::ExponentType IEEEFloat::exponentZero() const { in exponentZero()