From 0a7e36380717fe926d43ab30ef6162db9bd71723 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 4 Mar 2016 09:28:01 +0100 Subject: Add makefile and fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zdivmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zdivmod.c') diff --git a/src/zdivmod.c b/src/zdivmod.c index 70b1f5c..9340810 100644 --- a/src/zdivmod.c +++ b/src/zdivmod.c @@ -1,5 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "internals" +#include "internals.h" #define ta libzahl_tmp_divmod_a #define tb libzahl_tmp_divmod_b @@ -74,13 +74,13 @@ zdivmod(z_t a, z_t b, z_t c, z_t d) zrsh(tds[i], td, i); for (;;) { for (i = 0; i < BITS_PER_CHAR; i++) { - if (zcmpmag(td[i], tb) <= 0) { - zsub(tb, tb, td[i]); + if (zcmpmag(tds[i], tb) <= 0) { + zsub(tb, tb, tds[i]); zbset(ta, ta, bit, 1); } if (!bit--) goto done; - zrsh(td[i], td[i], 1); + zrsh(tds[i], tds[i], 1); } for (i = MIN(bit, BITS_PER_CHAR); i--;) zrsh(tds[i], tds[i], BITS_PER_CHAR); -- cgit v1.2.3-70-g09d2