bitcoin/src/num_gmp.h

15 lines
239 B
C
Raw Normal View History

#ifndef _SECP256K1_NUM_REPR_
#define _SECP256K1_NUM_REPR_
2013-03-10 17:25:19 -03:00
#include <gmp.h>
#define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS)
2013-03-24 06:38:35 -03:00
typedef struct {
mp_limb_t data[2*NUM_LIMBS];
int neg;
int limbs;
2013-03-24 06:38:35 -03:00
} secp256k1_num_t;
2013-03-10 17:25:19 -03:00
#endif