summaryrefslogtreecommitdiff
path: root/mpz
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-10-01 23:50:01 +0200
committerKevin Ryde <user42@zip.com.au>2001-10-01 23:50:01 +0200
commit262cc4108550eeaffc438e7d64fef160039fe0ea (patch)
tree190fed9459bfaf835ab2ba76cd341974dc0676f7 /mpz
parenta7b2df750274803ddaf4b75878a018f66cd92226 (diff)
downloadgmp-262cc4108550eeaffc438e7d64fef160039fe0ea.tar.gz
* mpz/add.c, mpz/sub.c: New files, using mpz/aors.i.
Diffstat (limited to 'mpz')
-rw-r--r--mpz/add.c24
-rw-r--r--mpz/sub.c24
2 files changed, 48 insertions, 0 deletions
diff --git a/mpz/add.c b/mpz/add.c
new file mode 100644
index 000000000..790419ecb
--- /dev/null
+++ b/mpz/add.c
@@ -0,0 +1,24 @@
+/* mpz_add -- add integers.
+
+Copyright 2001 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP 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 MP 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 MP Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+
+#define OPERATION_add
+#include "mpz/aors.i"
diff --git a/mpz/sub.c b/mpz/sub.c
new file mode 100644
index 000000000..805864c52
--- /dev/null
+++ b/mpz/sub.c
@@ -0,0 +1,24 @@
+/* mpz_sub -- subtract integers.
+
+Copyright 2001 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP 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 MP 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 MP Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+
+#define OPERATION_sub
+#include "mpz/aors.i"