about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/power7/sub_n.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-11-22 06:38:45 -0600
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-12-06 11:52:31 -0600
commit24eeafdb44f35fea7806a72037f2984df86a9ffe (patch)
treedba18dc8b17cd3e39a95de7f66b9b8db01fc778f /sysdeps/powerpc/powerpc64/power7/sub_n.S
parent4a2c0fd44dde3f55c12517afe3658700a47b949c (diff)
downloadglibc-24eeafdb44f35fea7806a72037f2984df86a9ffe.tar.gz
glibc-24eeafdb44f35fea7806a72037f2984df86a9ffe.tar.xz
glibc-24eeafdb44f35fea7806a72037f2984df86a9ffe.zip
PowerPC: Optimized mpn functions for PowerPC64/POWER7
This patch add optimized __mpn_add_n/__mpn_sub_n for PowerPC64/POWER7.
They are originally from GMP with adjustments for GLIBC.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power7/sub_n.S')
-rw-r--r--sysdeps/powerpc/powerpc64/power7/sub_n.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/power7/sub_n.S b/sysdeps/powerpc/powerpc64/power7/sub_n.S
new file mode 100644
index 0000000000..6afb81cf50
--- /dev/null
+++ b/sysdeps/powerpc/powerpc64/power7/sub_n.S
@@ -0,0 +1,23 @@
+/* PowerPC64 mpn_lshift --  mpn_add_n/mpn_sub_n -- mpn addition and
+   subtraction.
+   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/>.  */
+
+#include <sysdep.h>
+
+#define USE_AS_SUB
+#include "add_n.S"