summaryrefslogtreecommitdiff
path: root/changes/laplace-edge-cases
AgeCommit message (Collapse)Author
2015-05-06Tweak teor's and dgoulet's #13192 patches.Karsten Loesing
- Rewrite changes file. - Avoid float comparison with == and use <= instead. - Add teor's tor_llround(trunc(...)) back to silence clang warnings. - Replace tt_assert() with tt_i64_op() and friends. - Fix whitespace and a comment.
2015-05-06Handle edge cases in the round_*_to_next_multiple_of functionsteor
Consistently check for overflow in round_*_to_next_multiple_of. Check all round_*_to_next_multiple_of functions with expected values. Check all round_*_to_next_multiple_of functions with maximal values. Related to HS stats in #13192.
2015-05-06Handle edge cases in laplace functionsteor
Avoid division by zero. Avoid taking the log of zero. Silence clang type conversion warnings using round and trunc. The existing values returned by the laplace functions do not change. Add tests for laplace edge cases. These changes pass the existing unit tests without modification. Related to HS stats in #13192.