From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 3D5DE3857C53; Mon, 10 Aug 2020 19:06:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D5DE3857C53 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libm: Detect fast fmaf support X-Act-Checkin: newlib-cygwin X-Git-Author: Keith Packard via Newlib X-Git-Refname: refs/heads/master X-Git-Oldrev: 432b331c79a379ef92635fc173b4689b6d5b3feb X-Git-Newrev: 0c1989070ee1d849c7a25ad2eb6c8e3fb1df6393 Message-Id: <20200810190634.3D5DE3857C53@sourceware.org> Date: Mon, 10 Aug 2020 19:06:34 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2020 19:06:34 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0c1989070ee1d849c7a25ad2eb6c8e3fb1df6393 commit 0c1989070ee1d849c7a25ad2eb6c8e3fb1df6393 Author: Keith Packard via Newlib Date: Sat Aug 8 15:34:12 2020 -0700 libm: Detect fast fmaf support Anything with fast FMA is assumed to have fast FMAF, along with 32-bit arms that advertise 32-bit FP support and __ARM_FEATURE_FMA Signed-off-by: Keith Packard Diff: --- newlib/libm/common/math_config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h index df8f8d6e4..e7a8bb7fe 100644 --- a/newlib/libm/common/math_config.h +++ b/newlib/libm/common/math_config.h @@ -79,6 +79,14 @@ # endif #endif +#ifndef HAVE_FAST_FMAF +# if HAVE_FAST_FMA || (__ARM_FEATURE_FMA && (__ARM_FP & 4)) +# define HAVE_FAST_FMAF 1 +# else +# define HAVE_FAST_FMAF 0 +# endif +#endif + #if HAVE_FAST_ROUND /* When set, the roundtoint and converttoint functions are provided with the semantics documented below. */