On 02/24/2018 12:18 PM, Laurent Vivier wrote:
> Since f3218a8 ("softfloat: add floatx80 constants")
> floatx80_infinity is defined but never used.
> 
> This patch updates floatx80 functions to use
> this definition.
> 
> This allows to define a different default Infinity
> value on m68k: the m68k FPU defines infinity with
> all bits set to zero in the mantissa.
> 
> Signed-off-by: Laurent Vivier <laur...@vivier.eu>
> ---
> CC: Aurelien Jarno <aurel...@aurel32.net>
>     v4: fix floatx80_to_int64() to check for NaN, not for infinity
>         fix floatx80_is_infinity() to ignore mantissa's MSB
> 
>  fpu/softfloat-specialize.h | 14 ++++++++++++++
>  fpu/softfloat.c            | 39 +++++++++++++++++++++++++--------------
>  include/fpu/softfloat.h    | 13 +++++++++++--
>  3 files changed, 50 insertions(+), 16 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to