This PR implements a number of changes to follow up after merging #988:
- Naming consistency:
- All precomputed table files now have name
precomputed_*.*
- All source files related to the creation of the precomputed table files have name
precompute_*.*
. - All source files related to the computation of tables (whether they go in precomputed files or not) have name
*_compute_table.*
.
- All precomputed table files now have name
- Make the tables for exhaustive tests be computed at runtime rather than compile time (this was already the case for ecmult_gen, but not ecmult). This is a preparation for the next point, as the alternative would be to have separate precomputed libraries for the exhaustive tests and other binaries.
- Moves the actual tables to separate
precomputed_*.c
files, which are compiled only once as part of a newlibsecp256k1_precomputed.la
, included where relevant. The correspondingprecomputed_*.h
file are normal source files.
Retry of #1041.