]> Git Repo - secp256k1.git/blob - src/num_gmp.h
Make `secp256k1_scalar_add_bit` conditional; make `secp256k1_scalar_split_lambda_var...
[secp256k1.git] / src / num_gmp.h
1 /**********************************************************************
2  * Copyright (c) 2013, 2014 Pieter Wuille                             *
3  * Distributed under the MIT software license, see the accompanying   *
4  * file COPYING or http://www.opensource.org/licenses/mit-license.php.*
5  **********************************************************************/
6
7 #ifndef _SECP256K1_NUM_REPR_
8 #define _SECP256K1_NUM_REPR_
9
10 #include <gmp.h>
11
12 #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS)
13
14 typedef struct {
15     mp_limb_t data[2*NUM_LIMBS];
16     int neg;
17     int limbs;
18 } secp256k1_num_t;
19
20 #endif
This page took 0.022068 seconds and 4 git commands to generate.