On 02/08/2018 09:31 AM, Alex Bennée wrote:
> +float16 HELPER(recpe_f16)(float16 input, void *fpstp)
> +{
> +float_status *fpst = fpstp;
> +float16 f16 = float16_squash_input_denormal(input, fpst);
> +uint32_t f16_val = float16_val(f16);
> +uint32_t f16_sign = float16_is_neg(f16);
>
It looks like the ARM ARM has simplified the pseudo code for the
calculation which is done on a fixed point 9 bit integer maths. So
while adding f16 we can also clean this up to be a little less heavy
on the floating point and just return the fractional part and leave
the calle's to do the final