| 187 | int debug_level, const std::shared_ptr<MegcoreCPUDispatcher>& dispatcher); |
| 188 | |
| 189 | static inline dt_float32 diff(dt_float32 x, dt_float32 y) { |
| 190 | auto numerator = x - y; |
| 191 | auto denominator = std::max(std::max(std::abs(x), std::abs(y)), 1.f); |
| 192 | return numerator / denominator; |
| 193 | } |
| 194 | |
| 195 | static inline int diff(int x, int y) { |
| 196 | return x - y; |