From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7891) id 9B9943851899; Mon, 14 Nov 2022 02:03:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B9943851899 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668391417; bh=25MK1J8IQhNXwGC0hQOSudUNa69PhDmBFfrOvoUiCyQ=; h=From:To:Subject:Date:From; b=ciPGdH//ccgJR4EMbL4YkfgWQPvmp6rUGiCP+TuVI9IHPC8y5XN5WT3p4KpjjxBuD IkGni8TXYudhVZie31Zofs1d4cpfItA/KaRtpjv4SQU2CkknZczBJi1pzZOp6YTard wcjExcHLrLezkdroahpy/PaCytIV1ea8W8OkECzc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Yinyu Cai To: glibc-cvs@sourceware.org Subject: [glibc] LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}. X-Act-Checkin: glibc X-Git-Author: Xiaolin Tang X-Git-Refname: refs/heads/master X-Git-Oldrev: 22a46dee24351fd5f4f188ad80554cad79c82524 X-Git-Newrev: 56da6a073daaf86a7044df22b8778e913db5099c Message-Id: <20221114020337.9B9943851899@sourceware.org> Date: Mon, 14 Nov 2022 02:03:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=56da6a073daaf86a7044df22b8778e913db5099c commit 56da6a073daaf86a7044df22b8778e913db5099c Author: Xiaolin Tang 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