Mask result with qNaN if input to ceil is NaN

This CL masks the output with qNaN for ceil 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 ceil function.

Test: cts-tradefed  run singleCommand cts-dev --module CtsUtilTestCases --test android.util.cts.FP16Test
Test: Exhaustive testing of 0x0..0xFFFF input bits between the java
      implementation and FRINTP ARM instruction
Change-Id: Id48a9f1c9afd0504d4f6d9d36d66a23a0e94c328
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2 files changed