abs_diff() Returns absolute difference of x and y
| 52 | // abs_diff() |
| 53 | // Returns absolute difference of x and y |
| 54 | inline int abs_diff(int x, int y) { return abs(x - y); } |
| 55 | inline unsigned abs_diff(unsigned x, unsigned y) { |
| 56 | return (unsigned)abs((int)x - (int)y); |
| 57 | } |
no test coverage detected