MCPcopy Create free account
hub / github.com/ElementsProject/lightning / mul_overflows_u64

Function mul_overflows_u64

common/overflows.h:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16static inline bool mul_overflows_u64(uint64_t a, uint64_t b)
17{
18 uint64_t ret;
19
20 if (a == 0)
21 return false;
22 ret = a * b;
23 return (ret / a != b);
24}
25
26static inline bool assign_overflow_u8(u8 *dst, uint64_t v)
27{

Callers 12

min_rbf_bumpFunction · 0.85
param_timeFunction · 0.85
json_to_millionthsFunction · 0.85
amount_sat_to_msatFunction · 0.85
from_numberFunction · 0.85
amount_sat_mulFunction · 0.85
amount_msat_mulFunction · 0.85
amount_msat_feeFunction · 0.85
amount_tx_feeFunction · 0.85
handle_invreq_responseFunction · 0.85
param_amountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected