summaryrefslogtreecommitdiff
path: root/mini-gmp
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2021-10-01 22:36:14 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2021-10-01 22:36:14 +0200
commit1ff229a75b10f8f1cec24ca8e7e5e4dede1c2cd2 (patch)
tree1151f75c6ee11cc541aeb35f83c994e9df7201ba /mini-gmp
parent59384b2e62426c6ebf48ec313953d573683fb6f2 (diff)
downloadgmp-1ff229a75b10f8f1cec24ca8e7e5e4dede1c2cd2.tar.gz
mini-gmp/mini-mpq.c: #define needed if mini-gmp.h is not included
Diffstat (limited to 'mini-gmp')
-rw-r--r--mini-gmp/mini-mpq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mini-gmp/mini-mpq.c b/mini-gmp/mini-mpq.c
index d781242c2..9eaaec02c 100644
--- a/mini-gmp/mini-mpq.c
+++ b/mini-gmp/mini-mpq.c
@@ -45,6 +45,7 @@ see https://www.gnu.org/licenses/. */
/* Define macros and static functions already defined by mini-gmp.c */
#define GMP_LIMB_BITS (sizeof(mp_limb_t) * CHAR_BIT)
#define GMP_LIMB_HIGHBIT ((mp_limb_t) 1 << (GMP_LIMB_BITS - 1))
+#define GMP_LIMB_MAX ((mp_limb_t) ~ (mp_limb_t) 0)
#define GMP_NEG_CAST(T,x) (-((T)((x) + 1) - 1))
#define GMP_MIN(a, b) ((a) < (b) ? (a) : (b))