-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.h
74 lines (61 loc) · 2.14 KB
/
interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef _interface_h_
#define _interface_h_
#ifndef ANSI_ARGS
#ifdef __STDC__
#define ANSI_ARGS(args) args
#else
#define ANSI_ARGS(args) ()
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* TUNG: The use of ANSI_ARGS causes compiling error with intel compiler. I also don't understand why we have to use this directive here */
//int get_rn_int ANSI_ARGS((int *igenptr));
//float get_rn_flt ANSI_ARGS((int *igenptr));
//double get_rn_dbl ANSI_ARGS((int *igenptr));
//int *init_rng ANSI_ARGS(( int gennum, int total_gen, int seed, int mult));
//int spawn_rng ANSI_ARGS((int *igenptr, int nspawned, int ***newgens, int checkid) );
//int make_new_seed ANSI_ARGS((void));
//int make_new_seed_mpi ANSI_ARGS((void));
//int get_seed__rng ANSI_ARGS((int *genptr));
//int free_rng ANSI_ARGS((int *genptr));
//int pack_rng ANSI_ARGS(( int *genptr, char **buffer));
//int *unpack_rng ANSI_ARGS(( char *packed));
//int print_rng ANSI_ARGS(( int *igen));
//int *checkID ANSI_ARGS(( int *igen));
//int *addID ANSI_ARGS(( int *igen));
//int *deleteID ANSI_ARGS(( int *igen));
int get_rn_int (int *igenptr);
float get_rn_flt (int *igenptr);
double get_rn_dbl (int *igenptr);
int *init_rng (int gennum, int total_gen, int seed, int mult);
int spawn_rng (int *igenptr, int nspawned, int ***newgens, int checkid);
int make_new_seed (void);
int make_new_seed_mpi (void);
int get_seed__rng (int *genptr);
int free_rng (int *genptr);
int pack_rng (int *genptr, char **buffer);
int *unpack_rng (char *packed);
int print_rng (int *igen);
int *checkID (int *igen);
int *addID (int *igen);
int *deleteID (int *igen);
/* HAS ;-) */
#if 0
int *init_rng_simple ANSI_ARGS(( int seed, int mult));
int *init_rng_simple_mpi ANSI_ARGS(( int seed, int mult));
int get_rn_int_simple ANSI_ARGS((void));
int get_rn_int_simple_mpi ANSI_ARGS((void));
float get_rn_flt_simple ANSI_ARGS((void));
float get_rn_flt_simple_mpi ANSI_ARGS((void));
double get_rn_dbl_simple ANSI_ARGS((void));
double get_rn_dbl_simple_mpi ANSI_ARGS((void));
int pack_rng_simple ANSI_ARGS((char **buffer));
int *unpack_rng_simple ANSI_ARGS(( char *packed));
int print_rng_simple ANSI_ARGS((void));
#endif
#ifdef __cplusplus
}
#endif
#endif