MCPcopy Create free account
hub / github.com/numpy/numpy / npy_half_divmod

Function npy_half_divmod

numpy/core/src/npymath/halffloat.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181npy_half npy_half_divmod(npy_half h1, npy_half h2, npy_half *modulus)
182{
183 float fh1 = npy_half_to_float(h1);
184 float fh2 = npy_half_to_float(h2);
185 float div, mod;
186
187 div = npy_divmodf(fh1, fh2, &mod);
188 *modulus = npy_float_to_half(mod);
189 return npy_float_to_half(div);
190}
191
192
193/*

Callers

nothing calls this directly

Calls 2

npy_half_to_floatFunction · 0.85
npy_float_to_halfFunction · 0.85

Tested by

no test coverage detected