summaryrefslogtreecommitdiff
path: root/mpz/powm.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2011-01-03 20:00:11 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2011-01-03 20:00:11 +0100
commitbb0d5b1f6b37144d9cde4d95144290ee9b3faea4 (patch)
treebdd6f6aba6a6d8181e2972fb21a04ee57bf751e2 /mpz/powm.c
parent37d49aca5da88720e54d9c965daa1798be53faf6 (diff)
downloadgmp-bb0d5b1f6b37144d9cde4d95144290ee9b3faea4.tar.gz
Removed all #ifdef BERKELEY_MP.
Diffstat (limited to 'mpz/powm.c')
-rw-r--r--mpz/powm.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/mpz/powm.c b/mpz/powm.c
index 369fd36c3..ea3900e8d 100644
--- a/mpz/powm.c
+++ b/mpz/powm.c
@@ -2,8 +2,8 @@
Contributed to the GNU project by Torbjorn Granlund.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2002, 2005, 2008, 2009
-Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2002, 2005, 2008,
+2009, 2011 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,9 +24,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
-#ifdef BERKELEY_MP
-#include "mp.h"
-#endif
/* TODO
@@ -52,11 +49,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#define HANDLE_NEGATIVE_EXPONENT 1
void
-#ifndef BERKELEY_MP
mpz_powm (mpz_ptr r, mpz_srcptr b, mpz_srcptr e, mpz_srcptr m)
-#else /* BERKELEY_MP */
-pow (mpz_srcptr b, mpz_srcptr e, mpz_srcptr m, mpz_ptr r)
-#endif /* BERKELEY_MP */
{
mp_size_t n, nodd, ncnt;
int cnt;