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

Function st_mult

git-compat-util.h:645–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643#define st_add4(a,b,c,d) st_add(st_add3((a),(b),(c)),(d))
644
645static inline size_t st_mult(size_t a, size_t b)
646{
647 if (unsigned_mult_overflows(a, b))
648 die("size_t overflow: %"PRIuMAX" * %"PRIuMAX,
649 (uintmax_t)a, (uintmax_t)b);
650 return a * b;
651}
652
653static inline size_t st_sub(size_t a, size_t b)
654{

Callers 15

load_bitmap_headerFunction · 0.85
spanhash_rehashFunction · 0.85
hash_charsFunction · 0.85
filter_ahead_behindFunction · 0.85
mem_pool_callocFunction · 0.85
parse_loose_headerFunction · 0.85
diffcore_rename_extendedFunction · 0.85
get_correspondencesFunction · 0.85
add_graph_to_chainFunction · 0.85
load_oid_from_graphFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected