MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_fix_val

Function hc_fix_val

fix/fix.c:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int64_t hc_fix_val(const hc_fix_t x) {
34 const int64_t v = x >> HC_FIX_HDR;
35 return ((x >> HC_FIX_EXP) & 1) ? -v : v;
36}
37
38int64_t hc_fix_int(const hc_fix_t x) {
39 return hc_fix_val(x) / hc_scale(hc_fix_exp(x));

Callers 8

test_newFunction · 0.85
hc_fix_intFunction · 0.85
hc_fix_fracFunction · 0.85
hc_fix_doubleFunction · 0.85
hc_fix_addFunction · 0.85
hc_fix_subFunction · 0.85
hc_fix_mulFunction · 0.85
hc_fix_divFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_newFunction · 0.68