Re: [Qemu-devel] [RFC PATCH 20/30] softfloat: half-precision compare functions

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > +int float16_eq(float16 a, float16 b, float_status *status) > +{ > +uint32_t av, bv; > +a = float16_squash_input_denormal(a, status); > +b = float16_squash_input_denormal(b, status); > + > +if (( ( extractFloat16Exp( a ) == 0x1F ) &&

[Qemu-devel] [RFC PATCH 20/30] softfloat: half-precision compare functions

2017-10-13 Thread Alex Bennée
This is mostly a mechanical conversion of the float32 variants of the same name with some judicious search/replace and some constants changed. Signed-off-by: Alex Bennée --- fpu/softfloat.c | 216 include/fpu/softfloat.h | 8 ++ 2 files