PandA-2024.02
ludcmp.h
Go to the documentation of this file.
1 
10 #ifndef _LUDCMP_H
11 # define _LUDCMP_H
12 
13 /* Default to LARGE_DATASET. */
14 # if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(MEDIUM_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
15 # define LARGE_DATASET
16 # endif
17 
18 # if !defined(N)
19 /* Define sample dataset sizes. */
20 # ifdef MINI_DATASET
21 # define N 40
22 # endif
23 
24 # ifdef SMALL_DATASET
25 # define N 120
26 # endif
27 
28 # ifdef MEDIUM_DATASET
29 # define N 400
30 # endif
31 
32 # ifdef LARGE_DATASET
33 # define N 2000
34 # endif
35 
36 # ifdef EXTRALARGE_DATASET
37 # define N 4000
38 # endif
39 
40 
41 #endif /* !(N) */
42 
43 # define _PB_N POLYBENCH_LOOP_BOUND(N,n)
44 
45 
46 /* Default data type */
47 # if !defined(DATA_TYPE_IS_INT) && !defined(DATA_TYPE_IS_FLOAT) && !defined(DATA_TYPE_IS_DOUBLE)
48 # define DATA_TYPE_IS_DOUBLE
49 # endif
50 
51 #ifdef DATA_TYPE_IS_INT
52 # define DATA_TYPE int
53 # define DATA_PRINTF_MODIFIER "%d "
54 #endif
55 
56 #ifdef DATA_TYPE_IS_FLOAT
57 # define DATA_TYPE float
58 # define DATA_PRINTF_MODIFIER "%0.2f "
59 # define SCALAR_VAL(x) x##f
60 # define SQRT_FUN(x) sqrtf(x)
61 # define EXP_FUN(x) expf(x)
62 # define POW_FUN(x,y) powf(x,y)
63 # endif
64 
65 #ifdef DATA_TYPE_IS_DOUBLE
66 # define DATA_TYPE double
67 # define DATA_PRINTF_MODIFIER "%0.2lf "
68 # define SCALAR_VAL(x) x
69 # define SQRT_FUN(x) sqrt(x)
70 # define EXP_FUN(x) exp(x)
71 # define POW_FUN(x,y) pow(x,y)
72 # endif
73 
74 #endif /* !_LUDCMP_H */

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13