| 776 | // T is assumed to be an integer type with a>=0, and b>0 |
| 777 | template<typename T> |
| 778 | EIGEN_DEVICE_FUNC |
| 779 | T div_ceil(const T &a, const T &b) |
| 780 | { |
| 781 | return (a+b-1) / b; |
| 782 | } |
| 783 | |
| 784 | // The aim of the following functions is to bypass -Wfloat-equal warnings |
| 785 | // when we really want a strict equality comparison on floating points. |
no outgoing calls
no test coverage detected