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

Function amount_msat_min

common/amount.h:176–180  ·  view source on GitHub ↗

min(a,b) and max(a,b) */

Source from the content-addressed store, hash-verified

174
175/* min(a,b) and max(a,b) */
176static inline struct amount_msat amount_msat_min(struct amount_msat a,
177 struct amount_msat b)
178{
179 return amount_msat_less(a, b) ? a : b;
180}
181
182static inline struct amount_msat amount_msat_max(struct amount_msat a,
183 struct amount_msat b)

Callers 13

layer_apply_constraintsFunction · 0.85
add_localchanFunction · 0.85
remove_bottleneckFunction · 0.85
remove_excessFunction · 0.85
refine_flowsFunction · 0.85
chan_extra_cannot_sendFunction · 0.85
chan_extra_relaxFunction · 0.85
get_flow_pathsFunction · 0.85
flow_maximum_deliverableFunction · 0.85
flow_assign_deliveryFunction · 0.85
gossmod_cbFunction · 0.85

Calls 1

amount_msat_lessFunction · 0.70

Tested by

no test coverage detected