Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Macros | Functions
bench_ecmult.c File Reference
#include <stdio.h>
#include "include/secp256k1.h"
#include "util.h"
#include "hash_impl.h"
#include "field_impl.h"
#include "group_impl.h"
#include "scalar_impl.h"
#include "ecmult_impl.h"
#include "bench.h"
#include "secp256k1.c"
Include dependency graph for bench_ecmult.c:

Go to the source code of this file.

Classes

struct  bench_data
 

Macros

#define POINTS   32768
 

Functions

static int bench_callback (secp256k1_scalar *sc, secp256k1_ge *ge, size_t idx, void *arg)
 
static void bench_ecmult (void *arg, int iters)
 
static void bench_ecmult_setup (void *arg)
 
static void bench_ecmult_teardown (void *arg, int iters)
 
static void generate_scalar (uint32_t num, secp256k1_scalar *scalar)
 
static void run_test (bench_data *data, size_t count, int includes_g, int num_iters)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ POINTS

#define POINTS   32768

Definition at line 19 of file bench_ecmult.c.

Function Documentation

◆ bench_callback()

static int bench_callback ( secp256k1_scalar sc,
secp256k1_ge ge,
size_t  idx,
void arg 
)
static

Definition at line 43 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult()

static void bench_ecmult ( void arg,
int  iters 
)
static

Definition at line 56 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_setup()

static void bench_ecmult_setup ( void arg)
static

Definition at line 71 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_teardown()

static void bench_ecmult_teardown ( void arg,
int  iters 
)
static

Definition at line 77 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_scalar()

static void generate_scalar ( uint32_t  num,
secp256k1_scalar scalar 
)
static

Definition at line 89 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 134 of file bench_ecmult.c.

Here is the call graph for this function:

◆ run_test()

static void run_test ( bench_data data,
size_t  count,
int  includes_g,
int  num_iters 
)
static

Definition at line 105 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function: