bitcoin/src/num_gmp.h

19 lines
419 B
C
Raw Normal View History

2013-05-09 09:24:32 -04:00
// Copyright (c) 2013 Pieter Wuille
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#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