commit | d74c1cd61ff9c240423a1f788c82dc844aad2d74 | [log] [tgz] |
---|---|---|
author | Usama Arif <usama.arif@linaro.org> | Wed Oct 30 14:58:40 2019 +0000 |
committer | Usama Arif <usama.arif@linaro.org> | Fri Nov 08 13:53:57 2019 +0000 |
tree | 1996dd92ec2c13d2bce16dfe2d383000bc010e26 | |
parent | 666f7a3cfee31e3a721cc5407cc00062ba17c5c4 [diff] |
Mask result with qNaN if input to rint is NaN This CL masks the output with qNaN for rint of FP16 NaN values i.e. mask the most significant mantissa bit with 1. In ARM hardware, the rest of the mantissa bits are still processed when input is NaN, therefore the mask comes at the end of the rint function. Test: cts-tradefed run singleCommand cts-dev --module CtsLibcoreTestCases --test libcore.libcore.util.FP16Test Change-Id: I431ea90e22b813491d2cdb95daf9b186c7ca15f2