For spots we care if one pointer is null, or if both are not null, are the same values
| 178 | |
| 179 | // For spots we care if one pointer is null, or if both are not null, are the same values |
| 180 | static inline bool EqualValuesOrBothNull(const uint32_t* a, const uint32_t* b) { |
| 181 | if (!a || !b) { |
| 182 | return a == b; |
| 183 | } |
| 184 | return *a == *b; |
| 185 | } |
| 186 | |
| 187 | template <typename T> |
| 188 | constexpr T AbsDiff(T a, T b) { |
no outgoing calls
no test coverage detected