]>
Commit | Line | Data |
---|---|---|
71712b27 GM |
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 | **********************************************************************/ | |
0a433ea2 | 6 | |
7a4b7691 PW |
7 | #ifndef _SECP256K1_NUM_REPR_ |
8 | #define _SECP256K1_NUM_REPR_ | |
a41f32e6 | 9 | |
a41f32e6 PW |
10 | #include <gmp.h> |
11 | ||
898cecb3 PW |
12 | #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS) |
13 | ||
4adf6b2a | 14 | typedef struct { |
898cecb3 PW |
15 | mp_limb_t data[2*NUM_LIMBS]; |
16 | int neg; | |
17 | int limbs; | |
4adf6b2a | 18 | } secp256k1_num_t; |
a41f32e6 PW |
19 | |
20 | #endif |