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

Function bf_const_log2

third-party/quickjs/src/quickjs/libbf.c:4209–4213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4207}
4208
4209int bf_const_log2(bf_t *T, limb_t prec, bf_flags_t flags)
4210{
4211 bf_context_t *s = T->ctx;
4212 return bf_const_get(T, prec, flags, &s->log2_cache, bf_const_log2_internal, 0);
4213}
4214
4215/* return rounded pi * (1 - 2 * sign) */
4216static int bf_const_pi_signed(bf_t *T, int sign, limb_t prec, bf_flags_t flags)

Callers 3

bf_exp_internalFunction · 0.85
bf_log_internalFunction · 0.85

Calls 1

bf_const_getFunction · 0.85

Tested by

no test coverage detected