diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-04-11 21:26:42 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-04-11 21:26:42 +0200 |
commit | 402bf7c139bef7b8d625db9bb99bd23bbd6410c6 (patch) | |
tree | e49ec3e2e0187ae9c021cb7ef96af9cc3b4f228f /mpz/sqrt.c | |
parent | 875227b86ea4a53036f29f17c1d377f019b38618 (diff) | |
download | gmp-402bf7c139bef7b8d625db9bb99bd23bbd6410c6.tar.gz |
Use SQRT_OF_NEGATIVE.
Diffstat (limited to 'mpz/sqrt.c')
-rw-r--r-- | mpz/sqrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/sqrt.c b/mpz/sqrt.c index 44c554eb5..e10dd9e5e 100644 --- a/mpz/sqrt.c +++ b/mpz/sqrt.c @@ -1,6 +1,6 @@ /* mpz_sqrt(root, u) -- Set ROOT to floor(sqrt(U)). -Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. +Copyright (C) 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -40,7 +40,7 @@ mpz_sqrt (root, op) TMP_MARK (marker); op_size = op->_mp_size; if (op_size < 0) - op_size = 1 / (op_size > 0); /* Divide by zero for negative OP. */ + SQRT_OF_NEGATIVE; /* The size of the root is accurate after this simple calculation. */ root_size = (op_size + 1) / 2; |