libm: fix rint/scalb testcase failures
commit4435b3ae24b6f76892b7c06c300687c23fab2729
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 30 Oct 2010 21:45:41 +0000 (30 23:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 30 Oct 2010 21:45:41 +0000 (30 23:45 +0200)
tree7fd9676b25e7177963eca799831497354fe1b5ae
parentae73aafe99fa6bb5e7422f2bdedea39f03ead72c
libm: fix rint/scalb testcase failures

These failures no longer happen:

Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception
Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception
Failure: Test: rint (0.5) == 0.0
Failure: Test: rint (1.5) == 2.0
Failure: Test: rint (2.5) == 2.0
Failure: Test: rint (3.5) == 4.0
Failure: Test: rint (4.5) == 4.0
Failure: Test: rint (-0.5) == -0.0
Failure: Test: rint (-1.5) == -2.0
Failure: Test: rint (-2.5) == -2.0
Failure: Test: rint (-3.5) == -4.0
Failure: Test: rint (-4.5) == -4.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libm/s_rint.c
test/math/rint.c
test/math/signgam.c