This PR implements a number of changes to follow up after merging #988:
- Naming consistency:
- Renames all files related to the precomputated tables to have a consistent
precompute_ecmult
andprecompute_ecmult_gen
prefixes (avoiding the “gen” ambiguity). - Renames all precomputed files themselves to have consistent
precomputed_ecmult
andprecomputed_ecmult_gen
prefixes. - Merges the binaries precomputing the table files into one
precompute
.
- Renames all files related to the precomputated tables to have a consistent
- 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 commit, as the alternative would be to have separate precomputed libraries for the exhaustive tests and other binaries.
- Moves the actual tables to separate
precomputed_ecmult.c
andprecomputed_ecmult_gen.c
files, which are compiled only once as part of a newlibsecp256k1_precomputed.la
, included where relevant.