Realign generators with existing files in repo.
This commit is contained in:
parent
8f059cd52f
commit
782c6e52de
@ -16,10 +16,16 @@ int main(int argc, char **argv)
|
|||||||
N = atoi(argv[1]);
|
N = atoi(argv[1]);
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
"#define TFM_DEFINES\n"
|
||||||
|
"#include \"fp_sqr_comba.c\"\n"
|
||||||
|
"\n"
|
||||||
"#ifdef TFM_SQR%d\n"
|
"#ifdef TFM_SQR%d\n"
|
||||||
"void fp_sqr_comba%d(fp_int *A, fp_int *B)\n"
|
"void fp_sqr_comba%d(fp_int *A, fp_int *B)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" fp_digit *a, b[%d], c0, c1, c2, sc0, sc1, sc2;\n"
|
" fp_digit *a, b[%d], c0, c1, c2, sc0, sc1, sc2;\n"
|
||||||
|
"#ifdef TFM_ISO\n"
|
||||||
|
" fp_word tt;\n"
|
||||||
|
"#endif\n"
|
||||||
"\n"
|
"\n"
|
||||||
" a = A->dp;\n"
|
" a = A->dp;\n"
|
||||||
" COMBA_START; \n"
|
" COMBA_START; \n"
|
||||||
|
@ -16,9 +16,16 @@ int main(int argc, char **argv)
|
|||||||
int x, y, z, N, f;
|
int x, y, z, N, f;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
"#define TFM_DEFINES\n"
|
||||||
|
"#include \"fp_sqr_comba.c\"\n"
|
||||||
|
"\n"
|
||||||
|
"#if defined(TFM_SMALL_SET)\n"
|
||||||
"void fp_sqr_comba_small(fp_int *A, fp_int *B)\n"
|
"void fp_sqr_comba_small(fp_int *A, fp_int *B)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" fp_digit *a, b[32], c0, c1, c2, sc0, sc1, sc2;\n"
|
" fp_digit *a, b[32], c0, c1, c2, sc0, sc1, sc2;\n"
|
||||||
|
"#ifdef TFM_ISO\n"
|
||||||
|
" fp_word tt;\n"
|
||||||
|
"#endif\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
printf(" switch (A->used) { \n");
|
printf(" switch (A->used) { \n");
|
||||||
@ -100,7 +107,7 @@ printf(
|
|||||||
" break;\n\n", N+N, N+N, N+N, N+N);
|
" break;\n\n", N+N, N+N, N+N, N+N);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("}\n\n}\n");
|
printf("}\n}\n\n#endif /* TFM_SMALL_SET */\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user