Skip to content

Commit cc2c09e

Browse files
committed
Merge #918: Clean up configuration in gen_context
0706796 add ECMULT_GEN_PREC_BITS to basic_config.h (Aaron Voisine) a3aa262 gen_context: Don't include basic-config.h (Tim Ruffing) Pull request description: ACKs for top commit: sipa: utACK 0706796 jonasnick: ACK 0706796 Tree-SHA512: 4889b483a33ac54f6038a5a5db1ccd225b03e752c5724243db7345389372ecf043433fd5441199043fc8b74c963f13cbf6a7c8068367f9a105e2be93392f24e9
2 parents 1e5d50f + 0706796 commit cc2c09e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/basic-config.h

+1-9
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,8 @@
99

1010
#ifdef USE_BASIC_CONFIG
1111

12-
#undef USE_ASM_X86_64
13-
#undef USE_ECMULT_STATIC_PRECOMPUTATION
14-
#undef USE_EXTERNAL_ASM
15-
#undef USE_EXTERNAL_DEFAULT_CALLBACKS
16-
#undef USE_FORCE_WIDEMUL_INT64
17-
#undef USE_FORCE_WIDEMUL_INT128
18-
#undef ECMULT_WINDOW_SIZE
19-
20-
#define USE_WIDEMUL_64 1
2112
#define ECMULT_WINDOW_SIZE 15
13+
#define ECMULT_GEN_PREC_BITS 4
2214

2315
#endif /* USE_BASIC_CONFIG */
2416

src/gen_context.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
#if !defined(ECMULT_GEN_PREC_BITS)
1010
#include "libsecp256k1-config.h"
1111
#endif
12-
#define USE_BASIC_CONFIG 1
13-
#include "basic-config.h"
12+
13+
/* We can't require the precomputed tables when creating them. */
14+
#undef USE_ECMULT_STATIC_PRECOMPUTATION
1415

1516
#include "include/secp256k1.h"
1617
#include "assumptions.h"

0 commit comments

Comments
 (0)