summaryrefslogtreecommitdiff
path: root/mpq
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-05-03 01:03:38 +0200
committerKevin Ryde <user42@zip.com.au>2001-05-03 01:03:38 +0200
commitaabe4b98ae98e644209cb472df7d4651bab07478 (patch)
tree7c17f8a63167aa9fb211b54b98723ff5eeac3cf8 /mpq
parenteea7427e761faef321b6182d0815324b1b80a397 (diff)
downloadgmp-aabe4b98ae98e644209cb472df7d4651bab07478.tar.gz
* gmp-h.in (__GMP_EXTERN_INLINE, __GMP_ABS): New macros.
(mpz_abs, mpq_abs, mpf_abs, mpz_neg, mpq_neg, mpf_neg): Provide inline versions. * mpz/abs.c, mpq/abs.c, mpf/abs.c, mpz/neg.c, mpq/neg.c, mpf/neg.c: Add suitable __GMP_FORCE to turn off inline versions.
Diffstat (limited to 'mpq')
-rw-r--r--mpq/abs.c2
-rw-r--r--mpq/neg.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/mpq/abs.c b/mpq/abs.c
index 338328bba..29277570c 100644
--- a/mpq/abs.c
+++ b/mpq/abs.c
@@ -19,6 +19,8 @@ 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 __GMP_FORCE_mpq_abs 1
+
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/mpq/neg.c b/mpq/neg.c
index 350cd454b..21fc0fda1 100644
--- a/mpq/neg.c
+++ b/mpq/neg.c
@@ -19,6 +19,8 @@ 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 __GMP_FORCE_mpq_neg 1
+
#include "gmp.h"
#include "gmp-impl.h"