MCPcopy Create free account
hub / github.com/ablab/spades / convertFromZeroExtendedInteger

Method convertFromZeroExtendedInteger

ext/src/llvm/APFloat.cpp:2477–2491  ·  view source on GitHub ↗

FIXME: should this just take a const APInt reference? */

Source from the content-addressed store, hash-verified

2475
2476/* FIXME: should this just take a const APInt reference? */
2477IEEEFloat::opStatus
2478IEEEFloat::convertFromZeroExtendedInteger(const integerPart *parts,
2479 unsigned int width, bool isSigned,
2480 roundingMode rounding_mode) {
2481 unsigned int partCount = partCountForBits(width);
2482 APInt api = APInt(width, makeArrayRef(parts, partCount));
2483
2484 sign = false;
2485 if (isSigned && APInt::tcExtractBit(parts, width - 1)) {
2486 sign = true;
2487 api = -api;
2488 }
2489
2490 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2491}
2492
2493Expected<IEEEFloat::opStatus>
2494IEEEFloat::convertFromHexadecimalString(StringRef s,

Callers

nothing calls this directly

Calls 6

partCountForBitsFunction · 0.85
makeArrayRefFunction · 0.85
assertClass · 0.85
DoubleAPFloatClass · 0.85
APIntFunction · 0.50
bitcastToAPIntMethod · 0.45

Tested by

no test coverage detected