summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64/submul_1.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-11-22 06:38:03 -0600
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-12-06 11:52:22 -0600
commit4a2c0fd44dde3f55c12517afe3658700a47b949c (patch)
tree3b0c1942b5ee1ada45e9fc3d2e3aaf1e670e6965 /sysdeps/powerpc/powerpc64/submul_1.S
parent4b5b548c9fedd5e6d920639e42ea8e5f473c4de3 (diff)
downloadglibc-4a2c0fd44dde3f55c12517afe3658700a47b949c.tar.gz
PowerPC: Optimized mpn functions for PowerPC64
This patch add optimized __mpn_addmul, __mpn_addsub, __mpn_lshift, and __mpn_mul_1 implementations for PowerPC64. They are originally from GMP with adjustments for GLIBC.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/submul_1.S')
-rw-r--r--sysdeps/powerpc/powerpc64/submul_1.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/submul_1.S b/sysdeps/powerpc/powerpc64/submul_1.S
new file mode 100644
index 0000000000..145b1d403c
--- /dev/null
+++ b/sysdeps/powerpc/powerpc64/submul_1.S
@@ -0,0 +1,21 @@
+/* PowerPC64 __mpn_addmul_1 -- Multiply a limb vector with a limb and subtract
+ the result to a second limb vector.
+ Copyright (C) 2013 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#define USE_AS_SUBMUL
+#include "addmul_1.S"