This patch fixes step D4 of Knuth's division algorithm implementation. Negative sign of the step result was not always detected due to incorrect "borrow" handling.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'll have a look.
How do you find these bugs? by reviewing the code, fuzzing the inputs, or?
2015-04-22 18:31 GMT+03:00 Paweł Bylica <chfast@gmail.com>:
Hi Yaron,
You reviewed my previous fix in the algorithm, so you might be interested.
REPOSITORY
rL LLVMEMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
unittests/ADT/APIntTest.cpp | ||
---|---|---|
307 | Please factor this code segment to a helper function, it's the same in divrem_big1, divrem_big2, divrem_big3, divrem_big5 and divrem_big6. |
Please factor this code segment to a helper function, it's the same in divrem_big1, divrem_big2, divrem_big3, divrem_big5 and divrem_big6.