summaryrefslogtreecommitdiff
path: root/mpz/rootrem.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-08-23 00:02:16 +0200
committerKevin Ryde <user42@zip.com.au>2003-08-23 00:02:16 +0200
commitf26a457514dce519034df69d487c295d27aa4c6e (patch)
tree6113d4c34a0c005e9e06c7d0ad9265b349941d1a /mpz/rootrem.c
parent4e917d857c5664f9aff3180ec550616269514592 (diff)
downloadgmp-f26a457514dce519034df69d487c295d27aa4c6e.tar.gz
* mpz/rootrem.c, gmp-h.in, gmp.texi (mpz_rootrem): Don't return
exactness indication, can get that from testing the remainder.
Diffstat (limited to 'mpz/rootrem.c')
-rw-r--r--mpz/rootrem.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mpz/rootrem.c b/mpz/rootrem.c
index 1a526597c..2781ffa56 100644
--- a/mpz/rootrem.c
+++ b/mpz/rootrem.c
@@ -1,7 +1,7 @@
/* mpz_rootrem(root, rem, u, nth) -- Set ROOT to floor(U^(1/nth)) and
- set REM to the remainder. Return an indication if the result is exact.
+ set REM to the remainder.
-Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,7 +24,7 @@ MA 02111-1307, USA. */
#include "gmp.h"
#include "gmp-impl.h"
-int
+void
mpz_rootrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr u, unsigned long int nth)
{
mp_ptr rootp, up, remp;
@@ -47,7 +47,7 @@ mpz_rootrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr u, unsigned long int nth)
if (root != NULL)
SIZ(root) = 0;
SIZ(rem) = 0;
- return 1; /* exact result */
+ return;
}
un = ABS (us);
@@ -82,6 +82,4 @@ mpz_rootrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr u, unsigned long int nth)
__GMP_FREE_FUNC_LIMBS (rootp, rootn);
SIZ(rem) = remn;
-
- return remn == 0;
}