MCPcopy Create free account
hub / github.com/crawl/crawl / _mod

Function _mod

crawl-ref/source/message.cc:236–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234};
235
236static int _mod(int num, int denom)
237{
238 ASSERT(denom > 0);
239 div_t res = div(num, denom);
240 return res.rem >= 0 ? res.rem : res.rem + denom;
241}
242
243template <typename T, int SIZE>
244class circ_vec

Callers 3

incMethod · 0.85
decMethod · 0.85
circ_vecClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected