summaryrefslogtreecommitdiff
path: root/gen-fib.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-02-26 17:18:00 +0100
committerNiels Möller <nisse@lysator.liu.se>2012-02-26 17:18:00 +0100
commitccf5b317ceb5509f17a75d234d568a6290aad6bd (patch)
treefe1c08f957dfa121840e519ad236228e0670eaf9 /gen-fib.c
parent70266154bd2bce9f72eb54aebd6e47251f5e04b6 (diff)
downloadgmp-ccf5b317ceb5509f17a75d234d568a6290aad6bd.tar.gz
Added mini-gmp. Use it for bootstrap. Deleted dumbmp.c.
Diffstat (limited to 'gen-fib.c')
-rw-r--r--gen-fib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gen-fib.c b/gen-fib.c
index fd7bb96a7..1e79dc5cf 100644
--- a/gen-fib.c
+++ b/gen-fib.c
@@ -18,7 +18,7 @@ You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include <stdio.h>
-#include "dumbmp.c"
+#include "bootstrap.c"
mpz_t *f;
int fnum, fib_limit, luc_limit;
@@ -34,7 +34,7 @@ generate (int numb_bits)
/* fib(2n) > 2^n, so use 2n as a limit for the table size */
falloc = 2 * numb_bits;
- f = (mpz_t *) xmalloc (falloc * sizeof (*f));
+ f = xmalloc (falloc * sizeof (*f));
mpz_init_set_ui (f[0], 1L); /* F[-1] */
mpz_init_set_ui (f[1], 0L); /* F[0] */
@@ -43,7 +43,7 @@ generate (int numb_bits)
for (i = 2; ; i++)
{
- ASSERT (i < falloc);
+ assert (i < falloc);
/* F[i] = F[i-1] + F[i-2] */
mpz_init (f[i]);