From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 36CD83857C53; Mon, 10 Aug 2020 19:06:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36CD83857C53 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: ARM without HW double does not have fast FMA X-Act-Checkin: newlib-cygwin X-Git-Author: Keith Packard via Newlib X-Git-Refname: refs/heads/master X-Git-Oldrev: 73b02710ecbea5ace2508527fbc4f939c87069cd X-Git-Newrev: 432b331c79a379ef92635fc173b4689b6d5b3feb Message-Id: <20200810190629.36CD83857C53@sourceware.org> Date: Mon, 10 Aug 2020 19:06:29 +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:29 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=432b331c79a379ef92635fc173b4689b6d5b3feb commit 432b331c79a379ef92635fc173b4689b6d5b3feb Author: Keith Packard via Newlib Date: Sat Aug 8 15:34:11 2020 -0700 libm: ARM without HW double does not have fast FMA 32-bit ARM processors with HW float (but not HW double) may define __ARM_FEATURE_FMA, but that only means they have fast FMA for 32-bit floats. Signed-off-by: Keith Packard Diff: --- newlib/libm/common/math_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h index 1089b0ec6..df8f8d6e4 100644 --- a/newlib/libm/common/math_config.h +++ b/newlib/libm/common/math_config.h @@ -72,7 +72,7 @@ /* Compiler can inline fma as a single instruction. */ #ifndef HAVE_FAST_FMA -# if __aarch64__ || __ARM_FEATURE_FMA +# if __aarch64__ || (__ARM_FEATURE_FMA && (__ARM_FP & 8)) # define HAVE_FAST_FMA 1 # else # define HAVE_FAST_FMA 0