| 881 | } |
| 882 | |
| 883 | bool 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 | |
| 891 | bool IEEEFloat::bitwiseIsEqual(const IEEEFloat &rhs) const { |
| 892 | if (this == &rhs) |
nothing calls this directly
no test coverage detected