On Sun Jun 25 06:07:44 2023 +0000, Zebediah Figura wrote:
I'm not sure if this is the best solution to this, maybe there's something cleverer, but this at least stops the function from treating -1.0 and 4.0 as equal.
I thought I wrote an `absdiff()` function for this exact scenario...
Oh yeah, it's in the d3d9 tests. It's not terribly clever. All it does is make sure the greater of the two operands is the minuend:
```c static inline unsigned int absdiff(unsigned int x, unsigned int y) { return x > y ? x - y : y - x; } ```
~~See `wine/dlls/d3d9/tests/visual.c:66`.~~ EDIT: Wait, that one didn't go in yet. I could've sworn I had one like that in...