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

Method copySignificand

ext/src/llvm/APFloat.cpp:736–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void IEEEFloat::copySignificand(const IEEEFloat &rhs) {
737 assert(isFiniteNonZero() || category == fcNaN);
738 assert(rhs.partCount() >= partCount());
739
740 APInt::tcAssign(significandParts(), rhs.significandParts(),
741 partCount());
742}
743
744/* Make this number a NaN, with an arbitrary but deterministic value
745 for the significand. If double or longer, this is a signalling NaN,

Callers

nothing calls this directly

Calls 3

assertClass · 0.85
partCountMethod · 0.80
significandPartsMethod · 0.80

Tested by

no test coverage detected