mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
simple makefile
This commit is contained in:
parent
d1fdf30dcc
commit
7b292b8108
2 changed files with 7 additions and 2 deletions
2
field.h
2
field.h
|
@ -369,7 +369,7 @@ const FieldConstants &GetFieldConst() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FieldElem::SetInverse(Context &ctx, FieldElem &a) {
|
void FieldElem::SetInverse(Context &ctx, FieldElem &a) {
|
||||||
#if 0
|
#if defined(USE_FIELDINVERSE_BUILTIN)
|
||||||
// calculate a^p, with p={45,63,1019,1023}
|
// calculate a^p, with p={45,63,1019,1023}
|
||||||
FieldElem a2; a2.SetSquare(a);
|
FieldElem a2; a2.SetSquare(a);
|
||||||
FieldElem a3; a3.SetMult(a2,a);
|
FieldElem a3; a3.SetMult(a2,a);
|
||||||
|
|
7
num.h
7
num.h
|
@ -1,7 +1,12 @@
|
||||||
#ifndef _SECP256K1_NUM_
|
#ifndef _SECP256K1_NUM_
|
||||||
#define _SECP256K1_NUM_
|
#define _SECP256K1_NUM_
|
||||||
|
|
||||||
// #include "num_gmp.h"
|
#if defined(USE_NUM_GMP)
|
||||||
|
#include "num_gmp.h"
|
||||||
|
#elif defined(USE_NUM_OPENSSL)
|
||||||
#include "num_openssl.h"
|
#include "num_openssl.h"
|
||||||
|
#else
|
||||||
|
#error "Please select num implementation"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue