MCPcopy Create free account
hub / github.com/git/git / st_add

Function st_add

git-compat-util.h:634–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632#endif
633
634static inline size_t st_add(size_t a, size_t b)
635{
636 size_t result;
637 if (st_add_overflow(a, b, &result))
638 die("size_t overflow: %"PRIuMAX" + %"PRIuMAX,
639 (uintmax_t)a, (uintmax_t)b);
640 return result;
641}
642#define st_add3(a,b,c) st_add(st_add((a),(b)),(c))
643#define st_add4(a,b,c,d) st_add(st_add3((a),(b),(c)),(d))
644

Callers 15

load_bitmap_headerFunction · 0.85
show_extended_objectsFunction · 0.85
filter_bitmap_blob_limitFunction · 0.85
count_object_typeFunction · 0.85
bitmap_total_entry_countFunction · 0.85
spanhash_rehashFunction · 0.85
hash_charsFunction · 0.85
filter_ahead_behindFunction · 0.85
mem_pool_alloc_blockFunction · 0.85
mem_pool_strvfmtFunction · 0.85

Calls 2

st_add_overflowFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected