about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-08-26 19:46:20 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-08-28 14:31:12 -0400
commit687db5d887a700bccf6d752caf9b5cc8805641a0 (patch)
tree360338902df8663624859c5b73200fc1bf6269ed /src/rustllvm/RustWrapper.cpp
parentb5165321e48c1fd8422803fb40693afab7939c8c (diff)
downloadrust-687db5d887a700bccf6d752caf9b5cc8805641a0.tar.gz
rust-687db5d887a700bccf6d752caf9b5cc8805641a0.zip
Fix issue #15826.
The implemented fix rounds half-way cases away from zero as described in
the original comments.

This rounding algorithm is sometimes called arithmetic rounding. It is
described further here:
http://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero

I also added several new tests to prevent regressions.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions