Files
mesa/src
Matt Turner 2d48d5116b gallivm: Use nextafterf(0.5, 0.0) as rounding constant
The common truncf(x + 0.5) fails for the floating-point value just less
than 0.5 (nextafterf(0.5, 0.0)). nextafterf(0.5, 0.0) + 0.5, after
rounding is 1.0, thus truncf does not produce the desired value.

The solution is to add nextafterf(0.5, 0.0) instead of 0.5 before
truncating. This works for all values.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2018-11-28 11:22:47 -08:00
..
2018-11-20 09:09:22 -08:00
2018-11-28 18:30:36 +01:00
2018-11-20 09:09:22 -08:00
2018-11-20 09:09:22 -08:00
2018-02-16 16:56:34 -06:00
2018-11-27 15:44:02 -05:00
2018-11-28 16:44:01 +00:00
2018-10-19 16:50:26 +01:00