diff options
Diffstat (limited to 'src/_fastmath.c')
-rw-r--r-- | src/_fastmath.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/_fastmath.c b/src/_fastmath.c index bd2651d..4f2932d 100644 --- a/src/_fastmath.c +++ b/src/_fastmath.c @@ -26,12 +26,10 @@ * $Id$ */ -#include "Python.h" +#include "pycrypto_common.h" #include <stdio.h> #include <string.h> -#include "pycrypto_compat.h" #include <longintrepr.h> /* for conversions */ -#include "config.h" #if HAVE_LIBGMP # include <gmp.h> #elif HAVE_LIBMPIR @@ -53,12 +51,6 @@ #define SIEVE_BASE_SIZE (sizeof (sieve_base) / sizeof (sieve_base[0])) -#ifdef _MSC_VER -#define INLINE __inline -#else -#define INLINE inline -#endif - static unsigned int sieve_base[10000]; static int rabinMillerTest (mpz_t n, int rounds, PyObject *randfunc); @@ -1111,7 +1103,7 @@ cleanup: -INLINE size_t size (mpz_t n) +inline size_t size (mpz_t n) { return mpz_sizeinbase (n, 2); } |