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

Function st_add_overflow

git-compat-util.h:625–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623#define st_add_overflow __builtin_add_overflow
624#else
625static inline bool st_add_overflow(size_t a, size_t b, size_t *out)
626{
627 if (unsigned_add_overflows(a, b))
628 return true;
629 *out = a + b;
630 return false;
631}
632#endif
633
634static inline size_t st_add(size_t a, size_t b)

Callers 1

st_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected