reactor-c
C Runtime for Lingua Franca
|
#include <stdlib.h>
#include <stdio.h>
#include "core/utils/impl/pointer_hashmap.h"
#include "rand_utils.h"
#include "core/utils/util.h"
Macros | |
#define | CAPACITY 100 |
#define | N 5000 |
#define | RANDOM_SEED 1830 |
Functions | |
void | test_put (hashmap_object2int_t *h) |
void | test_get (hashmap_object2int_t *h) |
void | run_test (hashmap_object2int_t *h, int *distribution) |
Run a randomly selected test on h . | |
int | main () |
#define CAPACITY 100 |
#define N 5000 |
#define RANDOM_SEED 1830 |
int main | ( | ) |
void run_test | ( | hashmap_object2int_t * | h, |
int * | distribution ) |
Run a randomly selected test on h
.
h | A hashmap. |
distribution | The desired probability distribution with which each of two actions are performed, expressed as percents. |
void test_get | ( | hashmap_object2int_t * | h | ) |
void test_put | ( | hashmap_object2int_t * | h | ) |