From 3ce74b1266e1bae2fb5b31540b55faa0282a6f18 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 26 Nov 2014 23:45:34 +0100 Subject: [PATCH] Tweak precomputed table size for G --- src/ecmult_impl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ecmult_impl.h b/src/ecmult_impl.h index 56cdd20..9eaadff 100644 --- a/src/ecmult_impl.h +++ b/src/ecmult_impl.h @@ -15,11 +15,13 @@ #define WINDOW_A 5 /** larger numbers may result in slightly better performance, at the cost of - exponentially larger precomputed tables. WINDOW_G == 14 results in 640 KiB. */ + exponentially larger precomputed tables. */ #ifdef USE_ENDOMORPHISM -#define WINDOW_G 14 -#else +/** Two tables for window size 15: 1.375 MiB. */ #define WINDOW_G 15 +#else +/** One table for window size 16: 1.375 MiB. */ +#define WINDOW_G 16 #endif /** Fill a table 'pre' with precomputed odd multiples of a. W determines the size of the table.