commit | b67877704edf8a32e71ce825d7ab4703be39f8ce | [log] [tgz] |
---|---|---|
author | Aart Bik <ajcbik@google.com> | Mon Dec 19 13:57:31 2016 -0800 |
committer | Aart Bik <ajcbik@google.com> | Tue Dec 20 12:51:52 2016 -0800 |
tree | d91105a807ad11eaf29c3675875ec5d9f532b6ff | |
parent | d54f43ca39dfa92f08c2d760123f185f0f65fb86 [diff] |
Tests on FP Math.abs() Rationale: As a "quality of implementation" rather than pure "spec compliance" we require that Math.abs() clears the sign bit (but changes nothing else) for all numbers, including NaN. These tests ensure that remains the case. **NOTE** This CL depends on the pending libcore change (https://android-review.googlesource.com/#/c/316368/). Test: test-art-host Bug: 30758343 Change-Id: I01044a73992b2e89d97060ed8bbb76abea0933b9