Use GMP's low-level routines for num (mpn_)

This commit is contained in:
Pieter Wuille
2013-04-13 17:15:17 +02:00
parent a16c3a905b
commit 898cecb3b3
10 changed files with 382 additions and 116 deletions

View File

@@ -3,8 +3,12 @@
#include <gmp.h>
#define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS)
typedef struct {
mpz_t bn;
mp_limb_t data[2*NUM_LIMBS];
int neg;
int limbs;
} secp256k1_num_t;
#endif