[PATCH] powerpc: define USE_FMAF128_BUILTIN in math-use-builtins.h

Andreas Schwab schwab@linux-m68k.org
Wed Jun 3 20:43:06 GMT 2020


On Jun 03 2020, Paul E. Murphy via Libc-alpha wrote:

> diff --git a/sysdeps/powerpc/fpu/math-use-builtins.h b/sysdeps/powerpc/fpu/math-use-builtins.h
> index 4780934379..e4b9b18659 100644
> --- a/sysdeps/powerpc/fpu/math-use-builtins.h
> +++ b/sysdeps/powerpc/fpu/math-use-builtins.h
> @@ -66,4 +66,8 @@
>  #define USE_FMA_BUILTIN 1
>  #define USE_FMAF_BUILTIN 1
>  
> +/*  This is not available for P8 or BE targets.  */
> +#define USE_FMAF128_BUILTIN (defined(__FP_FAST_FMAF128) \
> +                            && __FP_FAST_FMAF128 == 1)

Using defined in a macro expansion is undefined.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list