Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
tools
perf
util
xyarray.h
Go to the documentation of this file.
1
#ifndef _PERF_XYARRAY_H_
2
#define _PERF_XYARRAY_H_ 1
3
4
#include <sys/types.h>
5
6
struct
xyarray
{
7
size_t
row_size
;
8
size_t
entry_size
;
9
char
contents
[];
10
};
11
12
struct
xyarray
*
xyarray__new
(
int
xlen,
int
ylen,
size_t
entry_size
);
13
void
xyarray__delete
(
struct
xyarray
*xy);
14
15
static
inline
void
*xyarray__entry(
struct
xyarray
*xy,
int
x
,
int
y
)
16
{
17
return
&xy->
contents
[x * xy->
row_size
+ y * xy->
entry_size
];
18
}
19
20
#endif
/* _PERF_XYARRAY_H_ */
Generated on Thu Jan 10 2013 15:09:27 for Linux Kernel by
1.8.2