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

Function hc_fix_div

fix/fix.c:81–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81hc_fix_t hc_fix_div(const hc_fix_t x, const hc_fix_t y) {
82 return hc_fix(hc_fix_exp(x), hc_fix_val(x) /
83 hc_fix_val(y) / hc_scale(hc_fix_exp(y)));
84}
85
86void hc_fix_print(const hc_fix_t v, struct hc_stream *out) {
87 hc_printf(out,

Callers 1

test_divFunction · 0.85

Calls 4

hc_fixFunction · 0.85
hc_fix_expFunction · 0.85
hc_fix_valFunction · 0.85
hc_scaleFunction · 0.85

Tested by 1

test_divFunction · 0.68