util: fix absdiff64() always over/underflowing
This commit is contained in:
@@ -23,7 +23,7 @@ static inline unsigned long long div64_pow2(unsigned long long x, unsigned long
|
||||
|
||||
static inline unsigned long long absdiff64(unsigned long long x, unsigned long long y)
|
||||
{
|
||||
return x > y ? y - x : x - y;
|
||||
return x < y ? y - x : x - y;
|
||||
}
|
||||
|
||||
extern int16_t host_to_big_i16(int16_t v);
|
||||
|
||||
Reference in New Issue
Block a user