]> git.ipfire.org Git - thirdparty/glibc.git/commit
Add more tests for ceil, floor, round, trunc.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 16 Oct 2015 21:28:03 +0000 (21:28 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 16 Oct 2015 21:28:03 +0000 (21:28 +0000)
commitb0c3e04b71dabc701527bb07871c97a19689656d
tree45ff94af970f08e3165bbfd7a20408e5e77261d5
parent9d46370ca338054cb6ea7ebeddcf06c7ac7ad1a9
Add more tests for ceil, floor, round, trunc.

This patch adds more tests for ceil, floor, round and trunc, with a
particular focus on verifying they don't raise spurious "inexact"
exceptions for integer arguments (a C99 / C11 requirement, as opposed
to the general principle that they shouldn't raise "inexact" for any
arguments at all which is a TS 18661-1 requirement).

Tested for x86_64 and x86.

* math/libm-test.inc (ceil_test_data): Add more tests and more
expectations for "inexact".
(floor_test_data): Add more tests.
(round_test_data): Likewise.
(trunc_test_data): Likewise.
ChangeLog
math/libm-test.inc