Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/include/llvm/ADT/APFloat.h | ||
---|---|---|
495 | "getExactLog2" or similar would make more sense to me. |
llvm/lib/Support/APFloat.cpp | ||
---|---|---|
4306 | I would like to see a test that exercises the case of two different parts each having popcount = 1. Testing next(false) on the existing subnormal checks should do the trick, I think. |
llvm/lib/Support/APFloat.cpp | ||
---|---|---|
4306 | if (PartCount == 2) { assert(!(llvm::popcount(Parts[0]) == 1 && llvm::popcount(Parts[0]) == 1)); } already fires on the existing tests |
llvm/include/llvm/ADT/APFloat.h | ||
---|---|---|
493 | Do you intentionally ignore the sign bit? Should at least document that, since most people would not call -8 a power of two. |
Do you intentionally ignore the sign bit? Should at least document that, since most people would not call -8 a power of two.