| 66 | |
| 67 | template<class IntType> |
| 68 | forceinline IntType |
| 69 | ceil_div_xp(IntType x, IntType y) { |
| 70 | assert(y >= 0); |
| 71 | return (x >= 0) ? ceil_div_pp(x,y) : -floor_div_pp(-x,y); |
| 72 | } |
| 73 | template<class IntType> |
| 74 | forceinline IntType |
| 75 | floor_div_xp(IntType x, IntType y) { |