From bae77685ebc3ae695e3a50e1c4dbe7aa936ae7a5 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 17 Dec 2021 11:15:37 -0500 Subject: [PATCH] Rename gen_ecmult_gen_static_prec_table -> precompute_ecmult_gen --- .gitignore | 2 +- Makefile.am | 12 ++++++------ src/ecmult_gen_static_prec_table.h | 2 +- ...n_static_prec_table.c => precompute_ecmult_gen.c} | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/{gen_ecmult_gen_static_prec_table.c => precompute_ecmult_gen.c} (96%) diff --git a/.gitignore b/.gitignore index 22cd50050..d5159ea38 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ bench_ecmult bench_internal tests exhaustive_tests -gen_ecmult_gen_static_prec_table +precompute_ecmult_gen gen_ecmult_static_pre_g valgrind_ctime_test *.exe diff --git a/Makefile.am b/Makefile.am index 7ea29bc6e..d47a8a313 100644 --- a/Makefile.am +++ b/Makefile.am @@ -130,16 +130,16 @@ TESTS += exhaustive_tests endif ### Precomputed tables -EXTRA_PROGRAMS = gen_ecmult_static_pre_g gen_ecmult_gen_static_prec_table +EXTRA_PROGRAMS = gen_ecmult_static_pre_g precompute_ecmult_gen CLEANFILES = $(EXTRA_PROGRAMS) gen_ecmult_static_pre_g_SOURCES = src/gen_ecmult_static_pre_g.c gen_ecmult_static_pre_g_CPPFLAGS = $(SECP_INCLUDES) gen_ecmult_static_pre_g_LDADD = $(SECP_LIBS) $(COMMON_LIB) -gen_ecmult_gen_static_prec_table_SOURCES = src/gen_ecmult_gen_static_prec_table.c -gen_ecmult_gen_static_prec_table_CPPFLAGS = $(SECP_INCLUDES) -gen_ecmult_gen_static_prec_table_LDADD = $(SECP_LIBS) $(COMMON_LIB) +precompute_ecmult_gen_SOURCES = src/precompute_ecmult_gen.c +precompute_ecmult_gen_CPPFLAGS = $(SECP_INCLUDES) +precompute_ecmult_gen_LDADD = $(SECP_LIBS) $(COMMON_LIB) # See Automake manual, Section "Errors with distclean". # We don't list any dependencies for the prebuilt files here because @@ -151,8 +151,8 @@ src/ecmult_static_pre_g.h: $(MAKE) $(AM_MAKEFLAGS) gen_ecmult_static_pre_g$(EXEEXT) ./gen_ecmult_static_pre_g$(EXEEXT) src/ecmult_gen_static_prec_table.h: - $(MAKE) $(AM_MAKEFLAGS) gen_ecmult_gen_static_prec_table$(EXEEXT) - ./gen_ecmult_gen_static_prec_table$(EXEEXT) + $(MAKE) $(AM_MAKEFLAGS) precompute_ecmult_gen$(EXEEXT) + ./precompute_ecmult_gen$(EXEEXT) PRECOMP = src/ecmult_gen_static_prec_table.h src/ecmult_static_pre_g.h noinst_HEADERS += $(PRECOMP) diff --git a/src/ecmult_gen_static_prec_table.h b/src/ecmult_gen_static_prec_table.h index bf4e5ea24..057976b8c 100644 --- a/src/ecmult_gen_static_prec_table.h +++ b/src/ecmult_gen_static_prec_table.h @@ -1,4 +1,4 @@ -/* This file was automatically generated by gen_ecmult_gen_static_prec_table. */ +/* This file was automatically generated by precompute_ecmult_gen. */ /* See ecmult_gen_impl.h for details about the contents of this file. */ #ifndef SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H #define SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H diff --git a/src/gen_ecmult_gen_static_prec_table.c b/src/precompute_ecmult_gen.c similarity index 96% rename from src/gen_ecmult_gen_static_prec_table.c rename to src/precompute_ecmult_gen.c index 22923df31..5f8d274ab 100644 --- a/src/gen_ecmult_gen_static_prec_table.c +++ b/src/precompute_ecmult_gen.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) { return -1; } - fprintf(fp, "/* This file was automatically generated by gen_ecmult_gen_static_prec_table. */\n"); + fprintf(fp, "/* This file was automatically generated by precompute_ecmult_gen. */\n"); fprintf(fp, "/* See ecmult_gen_impl.h for details about the contents of this file. */\n"); fprintf(fp, "#ifndef SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n"); fprintf(fp, "#define SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n");