GtRange gt_range_offset(const GtRange *range, GtWord offset) { GtRange transformed_range = { 0, 0 }; gt_assert(range->start <= range->end); gt_safe_add(transformed_range.start, range->start, offset); gt_safe_add(transformed_range.end, range->end, offset); gt_assert(transformed_range.start <= transformed_range.end); return transformed_range; }
void gth_stat_increase_totalsizeofbacktracematricesinMB(GthStat *stat, unsigned long addend) { gt_assert(stat); gt_safe_add(stat->totalsizeofbacktracematricesinMB, stat->totalsizeofbacktracematricesinMB, addend); }