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

Function fp16_to_u64

common/fp16.h:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7typedef u16 fp16_t;
8
9static inline u64 fp16_to_u64(fp16_t val)
10{
11 return ((u64)val & ((1 << 11)-1)) << (val >> 11);
12}
13
14fp16_t u64_to_fp16(u64 val, bool round_up);
15

Callers 6

amount_msat_less_fp16Function · 0.85
amount_msat_greater_fp16Function · 0.85
mainFunction · 0.85
peer_capacityFunction · 0.85
json_listincomingFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68