Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bench_ecmult.c File Reference
#include <stdio.h>
#include "include/secp256k1.h"
#include "util.h"
#include "hash_impl.h"
#include "num_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
 
#define ITERS   10000
 

Functions

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

Macro Definition Documentation

◆ ITERS

#define ITERS   10000

Definition at line 21 of file bench_ecmult.c.

Referenced by bench_ecmult(), bench_ecmult_teardown(), main(), and run_test().

◆ POINTS

#define POINTS   32768

Definition at line 20 of file bench_ecmult.c.

Referenced by bench_callback(), bench_ecmult(), bench_ecmult_setup(), main(), and run_test().

Function Documentation

◆ bench_callback()

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

◆ bench_ecmult()

◆ bench_ecmult_setup()

static void bench_ecmult_setup ( void *  arg)
static

Definition at line 73 of file bench_ecmult.c.

References bench_data::count, bench_data::offset1, bench_data::offset2, and POINTS.

Referenced by run_test().

◆ bench_ecmult_teardown()

static void bench_ecmult_teardown ( void *  arg)
static

◆ generate_scalar()

static void generate_scalar ( uint32_t  num,
secp256k1_scalar scalar 
)
static

◆ main()

◆ run_test()

Released under the MIT license