util: Add a _mesa_i64roundevenf() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Aug 2019 18:08:48 +0000 (11:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Aug 2019 23:57:02 +0000 (23:57 +0000)
commitb59914e179a9e5930af37e7f7c0d8eafd682caff
tree6cf4c1a74016867e47e5a8c9e4dd49ccb9918a8d
parent163fc11f271c8c68e5da2d8704e8696c576b9dca
util: Add a _mesa_i64roundevenf() helper.

This always returns a int64_t, translating to _mesa_lroundevenf on
systems where long is 64-bit, and llrintf where "long long" is needed.

Fixes: 594fc0f8595 ("mesa: Replace F_TO_I() with _mesa_lroundevenf().")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/rounding.h