2014-04-10 21:35:25 +02:00
|
|
|
Expected result
|
|
|
|
===============
|
2017-10-25 11:07:14 +02:00
|
|
|
This application increases a non-even floating point number in steps of 0.1
|
|
|
|
starting from from 1234567.0 / 1024.0 ~= 1205.631835938. For each step it checks
|
|
|
|
if the sum minus its 'floored' values is less than 1.0 (which it should always be
|
|
|
|
by definition of `floor`).
|
2014-04-10 21:35:25 +02:00
|
|
|
|
|
|
|
Background
|
|
|
|
==========
|
2017-10-25 11:07:14 +02:00
|
|
|
This test was introduced due to an error for floating point handling in an older
|
|
|
|
newlib version.
|
2014-04-10 21:35:25 +02:00
|
|
|
|
|
|
|
The idea for this test is taken from:
|
|
|
|
http://sourceware.org/ml/newlib/2010/msg00149.html
|