[PATCH 2/4] gdiplus: Partially implement arrow caps
Vincent Povirk
vincent at codeweavers.com
Mon May 14 11:02:45 CDT 2018
> +static BOOL compare_float(float f, float g, unsigned int ulps)
> +{
> + int x = *(int *)&f;
> + int y = *(int *)&g;
> +
> + if (x < 0)
> + x = INT_MIN - x;
> + if (y < 0)
> + y = INT_MIN - y;
> +
> + if (abs(x - y) > ulps)
> + return FALSE;
> +
> + return TRUE;
> +}
I'm confused by this function. Why are you testing the difference of 2
floats interpreted as integers?
More information about the wine-devel
mailing list