icd 57 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h UT_icd icd; /* initializer, copy and destructor functions */ icd 63 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (a)->icd=*_icd; \ icd 68 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.dtor) { \ icd 71 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (a)->icd.dtor(utarray_eltptr(a,_ut_i)); \ icd 93 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h utarray_tmp=(char*)realloc((a)->d, (a)->n*(a)->icd.sz); \ icd 101 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.copy) { (a)->icd.copy( _utarray_eltptr(a,(a)->i++), p); } \ icd 102 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h else { memcpy(_utarray_eltptr(a,(a)->i++), p, (a)->icd.sz); }; \ icd 106 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.dtor) { (a)->icd.dtor( _utarray_eltptr(a,--((a)->i))); } \ icd 112 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.init) { (a)->icd.init(_utarray_eltptr(a,(a)->i)); } \ icd 113 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h else { memset(_utarray_eltptr(a,(a)->i),0,(a)->icd.sz); } \ icd 120 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h #define _utarray_eltptr(a,j) ((char*)((a)->d + ((a)->icd.sz*(j) ))) icd 127 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ icd 129 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.copy) { (a)->icd.copy( _utarray_eltptr(a,j), p); } \ icd 130 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h else { memcpy(_utarray_eltptr(a,j), p, (a)->icd.sz); }; \ icd 141 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ icd 143 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.copy) { \ icd 146 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (a)->icd.copy(_utarray_eltptr(a,j+_ut_i), _utarray_eltptr(w,_ut_i)); \ icd 150 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h utarray_len(w)*((a)->icd.sz)); \ icd 158 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((dst)->icd.dtor) { \ icd 160 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (dst)->icd.dtor(utarray_eltptr(dst,_ut_i)); \ icd 165 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((dst)->icd.init) { \ icd 167 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (dst)->icd.init(utarray_eltptr(dst,_ut_i)); \ icd 170 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h memset(_utarray_eltptr(dst,dst->i),0,(dst)->icd.sz*(num-dst->i)); \ icd 181 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.dtor) { \ icd 184 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (a)->icd.dtor(utarray_eltptr((a),pos+_ut_i)); \ icd 189 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (((a)->i)-(pos+len))*((a)->icd.sz)); \ icd 201 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h if ((a)->icd.dtor) { \ icd 204 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h (a)->icd.dtor(utarray_eltptr(a,_ut_i)); \ icd 212 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h qsort((a)->d, (a)->i, (a)->icd.sz, cmp); \ icd 215 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h #define utarray_find(a,v,cmp) bsearch((v),(a)->d,(a)->i,(a)->icd.sz,cmp) icd 221 opal/mca/hwloc/hwloc201/hwloc/include/netloc/utarray.h #define utarray_eltidx(a,e) (((char*)(e) >= (char*)((a)->d)) ? (((char*)(e) - (char*)((a)->d))/(size_t)(a)->icd.sz) : (unsigned int)-1)