diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-02-21 00:45:27 -0800 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-04-21 20:41:18 -0700 |
commit | 1dd8353cc490f954677285415ec01e253f84b93d (patch) | |
tree | 485b17eeaad2f25b85f5491a47d0224047ce9137 /src/_fastmath.c | |
parent | 076560be889ef220c8fb10dd68635468939345ab (diff) | |
download | pycrypto-1dd8353cc490f954677285415ec01e253f84b93d.tar.gz |
Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefs
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); } |