1 |
|
2 |
#ifndef _interface_h_ |
3 |
#define _interface_h_ |
4 |
|
5 |
#define DEFAULT_RNG_TYPE SPRNG_LFG |
6 |
|
7 |
#ifndef ANSI_ARGS |
8 |
#ifdef __STDC__ |
9 |
#define ANSI_ARGS(args) args |
10 |
#else |
11 |
#define ANSI_ARGS(args) () |
12 |
#endif |
13 |
#endif |
14 |
|
15 |
#ifdef __cplusplus |
16 |
extern "C" { |
17 |
#endif |
18 |
|
19 |
int get_rn_int ANSI_ARGS((int *igenptr)); |
20 |
float get_rn_flt ANSI_ARGS((int *igenptr)); |
21 |
double get_rn_dbl ANSI_ARGS((int *igenptr)); |
22 |
int *init_rng ANSI_ARGS((int rng_type, int gennum, int total_gen, int seed, |
23 |
int mult)); |
24 |
int spawn_rng ANSI_ARGS((int *igenptr, int nspawned, int ***newgens, int checkid) ); |
25 |
int make_new_seed ANSI_ARGS((void)); |
26 |
int make_new_seed_mpi ANSI_ARGS((void)); |
27 |
int get_seed_rng ANSI_ARGS((int *genptr)); |
28 |
int free_rng ANSI_ARGS((int *genptr)); |
29 |
int pack_rng ANSI_ARGS(( int *genptr, char **buffer)); |
30 |
int *unpack_rng ANSI_ARGS(( char *packed)); |
31 |
int print_rng ANSI_ARGS(( int *igen)); |
32 |
int *checkID ANSI_ARGS(( int *igen)); |
33 |
int *addID ANSI_ARGS(( int *igen)); |
34 |
int *deleteID ANSI_ARGS(( int *igen)); |
35 |
|
36 |
|
37 |
int *init_rng_simple ANSI_ARGS((int rng_type, int seed, int mult)); |
38 |
int *init_rng_simple_mpi ANSI_ARGS((int rng_type, int seed, int mult)); |
39 |
int get_rn_int_simple ANSI_ARGS((void)); |
40 |
int get_rn_int_simple_mpi ANSI_ARGS((void)); |
41 |
float get_rn_flt_simple ANSI_ARGS((void)); |
42 |
float get_rn_flt_simple_mpi ANSI_ARGS((void)); |
43 |
double get_rn_dbl_simple ANSI_ARGS((void)); |
44 |
double get_rn_dbl_simple_mpi ANSI_ARGS((void)); |
45 |
int pack_rng_simple ANSI_ARGS((char **buffer)); |
46 |
int *unpack_rng_simple ANSI_ARGS(( char *packed)); |
47 |
int print_rng_simple ANSI_ARGS((void)); |
48 |
|
49 |
|
50 |
#ifdef __cplusplus |
51 |
} |
52 |
#endif |
53 |
|
54 |
|
55 |
#endif |