63 char *ptr = (
char * ) event_list;
83 while ( head < tail ) {
85 if (
i != idx_q[head] ) {
107 map_q[idx_q[head]] = 1;
110 if ( tail ==
count ) {
113 char *rest_event_list;
114 char *copy_rest_event_list;
121 copy_rest_event_list =
125 if ( !rest_event_list || !copy_rest_event_list ) {
126 if ( rest_event_list )
128 if ( copy_rest_event_list )
134 for (
i = 0, j = 0;
i <
count;
i++ ) {
135 if ( map_q[
i] == 0 ) {
136 memcpy( ©_rest_event_list[size * j++], &ptr[size *
i],
142 memcpy( rest_event_list, copy_rest_event_list,
143 (
size_t ) size * (
size_t ) remainder );
151 for ( j = 1; j < remainder; j++ ) {
153 rest_event_list[size * j],
157 rest_event_list[size * j],
168 memcpy( rest_event_list, copy_rest_event_list,
169 (
size_t ) size * (
size_t ) remainder );
177 for (
i = 0, j = 0;
i <
count;
i++ ) {
struct papi_vectors * _papi_hwd[]
static int _bpt_map_shared(hwd_reg_alloc_t *dst, hwd_reg_alloc_t *src)
static void _bpt_map_preempt(hwd_reg_alloc_t *dst, hwd_reg_alloc_t *src)
static int _bpt_map_exclusive(hwd_reg_alloc_t *dst)
static void _bpt_map_update(hwd_reg_alloc_t *dst, hwd_reg_alloc_t *src)
static void _bpt_map_set(hwd_reg_alloc_t *dst, int ctr)
static int _bpt_map_avail(hwd_reg_alloc_t *dst, int ctr)
static int _papi_bipartite_alloc(hwd_reg_alloc_t *event_list, int count, int cidx)
#define papi_calloc(a, b)