public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Yinyu Cai <caiyinyu@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}.
Date: Mon, 14 Nov 2022 02:03:37 +0000 (GMT)	[thread overview]
Message-ID: <20221114020337.9B9943851899@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=56da6a073daaf86a7044df22b8778e913db5099c

commit 56da6a073daaf86a7044df22b8778e913db5099c
Author: Xiaolin Tang <tangxiaolin@loongson.cn>
Date:   Mon Nov 7 22:05:15 2022 +0800

    LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}.
    
    Use __builtin_{fma, fmaf} to implement function {fma, fmaf} instead of
    the generic implementation.
    
           *  sysdeps/loongarch/fpu/math-use-builtins-fma.h: New file.

Diff:
---
 sysdeps/loongarch/fpu/math-use-builtins-fma.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysdeps/loongarch/fpu/math-use-builtins-fma.h b/sysdeps/loongarch/fpu/math-use-builtins-fma.h
new file mode 100644
index 0000000000..eede75aa41
--- /dev/null
+++ b/sysdeps/loongarch/fpu/math-use-builtins-fma.h
@@ -0,0 +1,4 @@
+#define USE_FMA_BUILTIN 1
+#define USE_FMAF_BUILTIN 1
+#define USE_FMAL_BUILTIN 0
+#define USE_FMAF128_BUILTIN 0

                 reply	other threads:[~2022-11-14  2:03 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20221114020337.9B9943851899@sourceware.org \
    --to=caiyinyu@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).