MCPcopy Create free account
hub / github.com/cloudinary/fuif / rounded_div

Function rounded_div

transform/quantize.h:54–54  ·  view source on GitHub ↗

inline int rounded_div(const int n, const int d) { return ((n < 0) ^ (d < 0)) ? ((n - d/2)/d) : ((n + d/2)/d); }

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

fwd_quantizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected