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

Function amount_msat_div_ceil

common/amount.c:579–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579struct amount_msat amount_msat_div_ceil(struct amount_msat msat, u64 div)
580{
581 u64 res = msat.millisatoshis / div;
582 msat.millisatoshis = res + (div * res == msat.millisatoshis ? 0 : 1);
583 return msat;
584}
585
586struct amount_sat amount_sat_div(struct amount_sat sat, u64 div)
587{

Callers 4

increase_flowsFunction · 0.85
minflowFunction · 0.85
json_sendamountFunction · 0.85

Calls

no outgoing calls

Tested by 1