Go to the source code of this file.
◆ simple_compute()
| double simple_compute |
( |
double |
x | ) |
|
Definition at line 45 of file Simple_Lib.c.
45 {
46 double sum = 0.0;
47 int lcl_iter = 0;
48
53
54 while( 1 ){
56 lcl_iter++;
57
58
59
62 x4 = x2*x2;
63 y = 42.53*x4 -67.0*x3 +25.0*x2 +
x/2.15;
67
68
70
71
73
76 continue;
77 }
78
81 continue;
82 }
83
84
86
87
88 if( 0.61 <
y &&
y < 0.69 )
89 break;
90 }
92
93 return sum;
94}
static long long int total_iter_cnt
static long long int high_wtrmrk
static long long int low_wtrmrk
◆ simple_init()
| void simple_init |
( |
void |
| ) |
|
Definition at line 25 of file Simple_Lib.c.
25 {
26
27
32
33
39
40 return;
41}
static const char * ev_names[4]
static papi_handle_t handle
papi_handle_t papi_sde_init(const char *name_of_library)
int papi_sde_register_counter(papi_handle_t handle, const char *event_name, int cntr_mode, int cntr_type, void *counter)
#define PAPI_SDE_long_long
◆ comp_value
◆ ev_names
Initial value:= {
"COMPUTED_VALUE",
"TOTAL_ITERATIONS",
"LOW_WATERMARK_REACHED",
"HIGH_WATERMARK_REACHED"
}
Definition at line 17 of file Simple_Lib.c.
◆ handle
◆ high_wtrmrk
◆ low_wtrmrk
◆ total_iter_cnt