public inbox for
help / color / mirror / Atom feed
From: Corinna Vinschen <>
Subject: [newlib-cygwin] libm: Detect fast fmaf support
Date: Mon, 10 Aug 2020 19:06:34 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);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 <>

 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
+# if HAVE_FAST_FMA || (__ARM_FEATURE_FMA && (__ARM_FP & 4))
+#  define HAVE_FAST_FMAF 1
+# else
+#  define HAVE_FAST_FMAF 0
+# endif
 /* When set, the roundtoint and converttoint functions are provided with
    the semantics documented below.  */

                 reply	other threads:[~2020-08-10 19:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).