Lines Matching refs:dst
282 void CLG_(copy_cost)(EventSet* es, ULong* dst, ULong* src)
287 CLG_(zero_cost)(es, dst);
290 CLG_ASSERT(dst != 0);
293 dst[i] = src[i];
299 ULong* dst;
307 dst = *pdst;
308 if (!dst)
309 dst = *pdst = CLG_(get_eventset_cost)(es);
312 dst[i] = src[i];
315 void CLG_(add_cost)(EventSet* es, ULong* dst, ULong* src)
320 CLG_ASSERT(dst != 0);
323 dst[i] += src[i];
329 ULong* dst;
334 dst = *pdst;
335 if (!dst) {
336 dst = *pdst = CLG_(get_eventset_cost)(es);
337 CLG_(copy_cost)(es, dst, src);
342 dst[i] += src[i];
345 /* Adds src to dst and zeros src. Returns false if nothing changed */
346 Bool CLG_(add_and_zero_cost)(EventSet* es, ULong* dst, ULong* src)
351 CLG_ASSERT((es != 0) && (dst != 0));
356 dst[i] += src[i];
364 /* Adds src to dst and zeros src. Returns false if nothing changed */
365 Bool CLG_(add_and_zero_cost2)(EventSet* esDst, ULong* dst,
374 CLG_ASSERT((esDst != 0) && (dst != 0) && (esSrc != 0));
381 /* if src has a subset, dst must have, too */
385 egDst = dst + esDst->offset[i];
399 /* Adds difference of new and old to dst, and set old to new.
401 Bool CLG_(add_diff_cost)(EventSet* es, ULong* dst, ULong* old, ULong* new_cost)
406 CLG_ASSERT((es != 0) && (dst != 0));
411 dst[i] += new_cost[i] - old[i];
422 ULong* dst;
428 dst = *pdst;
429 if (!dst) {
430 dst = *pdst = CLG_(get_eventset_cost)(es);
431 CLG_(zero_cost)(es, dst);
436 dst[i] += new_cost[i] - old[i];