aboutsummaryrefslogtreecommitdiff
path: root/src/field_gmp.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-11-18 18:06:36 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-18 18:06:36 +0100
commitd48555b36ac512161b81f9b6bca7bea16a0cd806 (patch)
treec5a4740019e4642df6ce068317541cad01202e06 /src/field_gmp.h
Squashed 'src/secp256k1/' content from commit ad2028f
git-subtree-dir: src/secp256k1 git-subtree-split: ad2028f9890ca40bdd32055aa0fe5c1c9af0e485
Diffstat (limited to 'src/field_gmp.h')
-rw-r--r--src/field_gmp.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/field_gmp.h b/src/field_gmp.h
new file mode 100644
index 0000000000..b390fd9de8
--- /dev/null
+++ b/src/field_gmp.h
@@ -0,0 +1,18 @@
+/**********************************************************************
+ * 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.*
+ **********************************************************************/
+
+#ifndef _SECP256K1_FIELD_REPR_
+#define _SECP256K1_FIELD_REPR_
+
+#include <gmp.h>
+
+#define FIELD_LIMBS ((256 + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS)
+
+typedef struct {
+ mp_limb_t n[FIELD_LIMBS+1];
+} secp256k1_fe_t;
+
+#endif