secp256k1-zkp/src/num_gmp.h

21 lines
626 B
C
Raw Normal View History

/**********************************************************************
* Copyright (c) 2013, 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
**********************************************************************/
2013-05-09 15:24:32 +02:00
#ifndef SECP256K1_NUM_REPR_H
#define SECP256K1_NUM_REPR_H
2013-03-10 21:25:19 +01:00
#include <gmp.h>
#define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS)
2013-03-24 10:38:35 +01:00
typedef struct {
mp_limb_t data[2*NUM_LIMBS];
int neg;
int limbs;
2015-09-21 20:57:54 +02:00
} secp256k1_num;
2013-03-10 21:25:19 +01:00
#endif /* SECP256K1_NUM_REPR_H */