Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
benchmarks_utils.h File Reference
#include <time.h>
#include "cycle.h"
#include "common/hal.h"
#include <utilities.h>
Include dependency graph for benchmarks_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void printStatisticsFile (const char *file_name, ticks *two_isogeny_walk, ticks *three_isogeny_walk)

Function Documentation

◆ printStatisticsFile()

void printStatisticsFile ( const char * file_name,
ticks * two_isogeny_walk,
ticks * three_isogeny_walk )

Definition at line 37 of file benchmarks_utils.h.

37 {
38
39 FILE* statsFile;
40 //char fileNameBuffer[100];
41 statsFile = fopen(file_name, "w+");
42
43 fprintf(statsFile, "No.,2-isogeny-walk,3-isogeny-walk\n");
44
45 for (int i = 0; i < NUMBER_OF_BENCHMARK_EXPERIMENTS; i++)
46 {
47 fprintf(statsFile, "%d,%llu,%llu\n", i, (unsigned long long)two_isogeny_walk[i], (unsigned long long)three_isogeny_walk[i]);
48 }
49
50 fclose(statsFile);
51
52}
for i
#define NUMBER_OF_BENCHMARK_EXPERIMENTS
Definition utilities.h:15

References i, and NUMBER_OF_BENCHMARK_EXPERIMENTS.

Referenced by main().

Here is the caller graph for this function: