File: interface.h

package info (click to toggle)
sprng 2.0a-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,308 kB
  • sloc: ansic: 30,353; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (55 lines) | stat: -rw-r--r-- 1,547 bytes parent folder | download | duplicates (18)
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

#ifndef _interface_h_
#define _interface_h_

#define DEFAULT_RNG_TYPE SPRNG_LFG

#ifndef ANSI_ARGS
#ifdef __STDC__
#define ANSI_ARGS(args) args
#else
#define ANSI_ARGS(args) ()
#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

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 rng_type,  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 *init_rng_simple ANSI_ARGS((int rng_type,  int seed,  int mult));
int *init_rng_simple_mpi ANSI_ARGS((int rng_type,  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));


#ifdef __cplusplus
}
#endif


#endif