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

Method isInteger

ext/src/llvm/APFloat.cpp:883–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883bool IEEEFloat::isInteger() const {
884 // This could be made more efficient; I'm going for obviously correct.
885 if (!isFinite()) return false;
886 IEEEFloat truncated = *this;
887 truncated.roundToIntegral(rmTowardZero);
888 return compare(truncated) == cmpEqual;
889}
890
891bool IEEEFloat::bitwiseIsEqual(const IEEEFloat &rhs) const {
892 if (this == &rhs)

Callers

nothing calls this directly

Calls 3

assertClass · 0.85
compareFunction · 0.50
roundToIntegralMethod · 0.45

Tested by

no test coverage detected