summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-06-20 04:00:49 +0200
committerKevin Ryde <user42@zip.com.au>2001-06-20 04:00:49 +0200
commitff1d435f5c25eebb8e784bb714799fe42a98c8f4 (patch)
treebc246b8f50aa107d3e763c47df705f9ea392eed4 /gmp-impl.h
parent79e76b234323825b48cebf8223d026358f21befe (diff)
downloadgmp-ff1d435f5c25eebb8e784bb714799fe42a98c8f4.tar.gz
Missing parameter in:
* gmp-impl.h (WANT_TMP_NOTREENTRANT): Move global parts of stack-alloc.h to here, allow non power-of-2 __TMP_ALIGN in TMP_ALLOC.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 7896ed925..58b1f9fa6 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -189,7 +189,7 @@ void __gmp_tmp_free _PROTO ((tmp_marker *));
/* gcc recognises "(-(8*n))%8" or the like is always zero, which means the
rounding up is a noop for allocs of whole limbs. */
#define TMP_ALLOC(size) \
- __gmp_tmp_alloc (ROUND_UP_MULTIPLE ((unsigned long) (size)))
+ __gmp_tmp_alloc (ROUND_UP_MULTIPLE ((unsigned long) (size), __TMP_ALIGN))
#define TMP_MARK(marker) __gmp_tmp_mark (&marker)
#define TMP_FREE(marker) __gmp_tmp_free (&marker)
#endif