MCPcopy Create free account
hub / github.com/ElementsProject/elements / bounded_max

Function bounded_max

src/simplicity/bounded.h:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#define UBOUNDED_MAX UINT32_MAX
9
10static inline ubounded bounded_max(ubounded x, ubounded y) {
11 return x <= y ? y : x;
12}
13
14/* Returns min(x + y, UBOUNDED_MAX) */
15static inline ubounded bounded_add(ubounded x, ubounded y) {

Callers 3

padFunction · 0.85
simplicity_analyseBoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected