Skip to content

Commit 7cf47f7

Browse files
committed
Rename ecmult_gen_static_prec_table -> precomputed_ecmult_gen
1 parent f95b810 commit 7cf47f7

5 files changed

+11
-11
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
src/ecmult_static_pre_g.h linguist-generated
2-
src/ecmult_gen_static_prec_table.h linguist-generated
2+
src/precomputed_ecmult_gen.h linguist-generated

Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ precompute_ecmult_gen_LDADD = $(SECP_LIBS) $(COMMON_LIB)
150150
src/ecmult_static_pre_g.h:
151151
$(MAKE) $(AM_MAKEFLAGS) precompute_ecmult$(EXEEXT)
152152
./precompute_ecmult$(EXEEXT)
153-
src/ecmult_gen_static_prec_table.h:
153+
src/precomputed_ecmult_gen.h:
154154
$(MAKE) $(AM_MAKEFLAGS) precompute_ecmult_gen$(EXEEXT)
155155
./precompute_ecmult_gen$(EXEEXT)
156156

157-
PRECOMP = src/ecmult_gen_static_prec_table.h src/ecmult_static_pre_g.h
157+
PRECOMP = src/precomputed_ecmult_gen.h src/ecmult_static_pre_g.h
158158
noinst_HEADERS += $(PRECOMP)
159159
precomp: $(PRECOMP)
160160

src/ecmult_gen_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "group.h"
1313
#include "ecmult_gen.h"
1414
#include "hash_impl.h"
15-
#include "ecmult_gen_static_prec_table.h"
15+
#include "precomputed_ecmult_gen.h"
1616

1717
static void secp256k1_ecmult_gen_context_build(secp256k1_ecmult_gen_context *ctx) {
1818
secp256k1_ecmult_gen_blind(ctx, NULL);

src/precompute_ecmult_gen.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "ecmult_gen_prec_impl.h"
1616

1717
int main(int argc, char **argv) {
18-
const char outfile[] = "src/ecmult_gen_static_prec_table.h";
18+
const char outfile[] = "src/precomputed_ecmult_gen.h";
1919
FILE* fp;
2020
int bits;
2121

@@ -30,8 +30,8 @@ int main(int argc, char **argv) {
3030

3131
fprintf(fp, "/* This file was automatically generated by precompute_ecmult_gen. */\n");
3232
fprintf(fp, "/* See ecmult_gen_impl.h for details about the contents of this file. */\n");
33-
fprintf(fp, "#ifndef SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n");
34-
fprintf(fp, "#define SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n");
33+
fprintf(fp, "#ifndef SECP256K1_PRECOMPUTED_ECMULT_GEN_H\n");
34+
fprintf(fp, "#define SECP256K1_PRECOMPUTED_ECMULT_GEN_H\n");
3535

3636
fprintf(fp, "#include \"group.h\"\n");
3737

@@ -76,7 +76,7 @@ int main(int argc, char **argv) {
7676
fprintf(fp, "};\n");
7777
fprintf(fp, "#endif /* EXHAUSTIVE_TEST_ORDER */\n");
7878
fprintf(fp, "#undef SC\n");
79-
fprintf(fp, "#endif /* SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H */\n");
79+
fprintf(fp, "#endif /* SECP256K1_PRECOMPUTED_ECMULT_GEN_H */\n");
8080
fclose(fp);
8181

8282
return 0;

src/ecmult_gen_static_prec_table.h src/precomputed_ecmult_gen.h

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)