PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dummy.c
Go to the documentation of this file.
1 #include "papi_test.h"
2 
3 void
4 dummy( void *array )
5 {
6 /* Confuse the compiler so as not to optimize
7  away the flops in the calling routine */
8 /* Cast the array as a void to eliminate unused argument warning */
9  ( void ) array;
10 }
11 
12 void
13 dummy_( void *array )
14 {
15  ( void ) array;
16 }
17 
18 void
19 dummy__( void *array )
20 {
21  ( void ) array;
22 }
23 
24 void
25 DUMMY( void *array )
26 {
27  ( void ) array;
28 }
29 
30 void
31 _DUMMY( void *array )
32 {
33  ( void ) array;
34 }
35 
36 /* We have to actually touch the memory to confuse some
37  * systems, so they actually allocate the memory.
38  * -KSL
39  */
40 void
41 touch_dummy( double *array, int size )
42 {
43  int i;
44  double *tmp = array;
45  for ( i = 0; i < size; i++, tmp++ )
46  *tmp = ( double ) rand( );
47 }
void dummy_(void *array)
Definition: dummy.c:13
void
Definition: iozone.c:18627
int dummy
Definition: iozone.c:19741
void dummy__(void *array)
Definition: dummy.c:19
int i
Definition: fileop.c:140
char *long long size
Definition: iozone.c:12023
void touch_dummy(double *array, int size)
Definition: dummy.c:41
void DUMMY(void *array)
Definition: dummy.c:25
void _DUMMY(void *array)
Definition: dummy.c:31
int rand()
long long tmp
Definition: iozone.c:12031