Re: [Qemu-devel] [PATCH v2 23/32] arm/helper.c: re-factor recpe and add recepe_f16

2018-02-09 Thread Richard Henderson
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); >

[Qemu-devel] [PATCH v2 23/32] arm/helper.c: re-factor recpe and add recepe_f16

2018-02-08 Thread Alex Bennée
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