Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gecode/gecode
/ floor_div_xp
Function
floor_div_xp
gecode/int/div.hpp:74–78 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
72
}
73
template<class IntType>
74
forceinline IntType
75
floor_div_xp(IntType x, IntType y) {
76
assert(y >= 0);
77
return (x >= 0) ? floor_div_pp(x,y) : -ceil_div_pp(-x,y);
78
}
79
80
template<class IntType>
81
forceinline IntType
Callers
6
post
Function · 0.85
post
Function · 0.85
lq
Method · 0.85
le
Method · 0.85
propagate
Method · 0.85
propagate
Method · 0.85
Calls
2
floor_div_pp
Function · 0.85
ceil_div_pp
Function · 0.85
Tested by
no test coverage detected