Skip to content

Commit 3545627

Browse files
committed
Merge pull request bitcoin#118
3ce74b1 Tweak precomputed table size for G (Pieter Wuille)
2 parents 6a9901e + 3ce74b1 commit 3545627

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ecmult_impl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
#define WINDOW_A 5
1616

1717
/** larger numbers may result in slightly better performance, at the cost of
18-
exponentially larger precomputed tables. WINDOW_G == 14 results in 640 KiB. */
18+
exponentially larger precomputed tables. */
1919
#ifdef USE_ENDOMORPHISM
20-
#define WINDOW_G 14
21-
#else
20+
/** Two tables for window size 15: 1.375 MiB. */
2221
#define WINDOW_G 15
22+
#else
23+
/** One table for window size 16: 1.375 MiB. */
24+
#define WINDOW_G 16
2325
#endif
2426

2527
/** Fill a table 'pre' with precomputed odd multiples of a. W determines the size of the table.

0 commit comments

Comments
 (0)