| 870 | |
| 871 | template<typename T> |
| 872 | inline static bool FindInBitset(const uint32_t* bits, int n, T pos) { |
| 873 | int i1 = pos / 32; |
| 874 | if (i1 >= n) { |
| 875 | return false; |
| 876 | } |
| 877 | int i2 = pos % 32; |
| 878 | return (bits[i1] >> i2) & 1; |
| 879 | } |
| 880 | |
| 881 | inline static bool CheckDoubleEqualOrdered(double a, double b) { |
| 882 | double upper = std::nextafter(a, INFINITY); |
no outgoing calls
no test coverage detected