Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
236
static 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
243
template <typename T, int SIZE>
244
class circ_vec
Callers
3
inc
Method · 0.85
dec
Method · 0.85
circ_vec
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected