MCPcopy Create free account
hub / github.com/Snapchat/Valdi / bf_get_exp_bits

Function bf_get_exp_bits

third-party/quickjs/include/quickjs/libbf.h:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150} bf_context_t;
151
152static inline int bf_get_exp_bits(bf_flags_t flags)
153{
154 int e;
155 e = (flags >> BF_EXP_BITS_SHIFT) & BF_EXP_BITS_MASK;
156 if (e == BF_EXP_BITS_MASK)
157 return BF_EXP_BITS_MAX + 1;
158 else
159 return BF_EXP_BITS_MAX - e;
160}
161
162static inline bf_flags_t bf_set_exp_bits(int n)
163{

Callers 4

bf_set_overflowFunction · 0.85
__bf_roundFunction · 0.85
__bfdec_roundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected