Skip to content

Commit c65199e

Browse files
real-or-randomdderjoel
authored andcommitted
config: Set preprocessor defaults for ECMULT_* config values
This simplifies manual builds and solves one item in bitcoin-core#929.
1 parent 066c16e commit c65199e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ecmult.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "scalar.h"
1212
#include "scratch.h"
1313

14+
#ifndef ECMULT_WINDOW_SIZE
15+
# define ECMULT_WINDOW_SIZE 15
16+
#endif
1417
/* Noone will ever need more than a window size of 24. The code might
1518
* be correct for larger values of ECMULT_WINDOW_SIZE but this is not
1619
* tested.

src/ecmult_gen.h

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
#include "scalar.h"
1111
#include "group.h"
1212

13+
#ifndef ECMULT_GEN_PREC_BITS
14+
# define ECMULT_GEN_PREC_BITS 4
15+
#endif
1316
#if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
1417
# error "Set ECMULT_GEN_PREC_BITS to 2, 4 or 8."
1518
#endif

0 commit comments

Comments
 (0)