util: Add tests for fast integer division by constants
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Sep 2018 14:56:20 +0000 (09:56 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Oct 2018 18:13:12 +0000 (13:13 -0500)
commit328d4d080bce128ff422fbfbd7271ef4ede38320
tree6e557472267ec1a2cfa0b69122c76b9a7c5931cc
parenta9be8dddfedb1d19e43b900bdfd33731d3c390c4
util: Add tests for fast integer division by constants

While I generally trust rediculousfish to have done his homework, we've
made some adjustments to suit the needs of mesa and it'd be good to
test those.  Also, there's no better place than unit tests to clearly
document the different edge cases of the different methods.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
configure.ac
src/util/meson.build
src/util/tests/fast_idiv_by_const/Makefile.am [new file with mode: 0644]
src/util/tests/fast_idiv_by_const/fast_idiv_by_const_test.cpp [new file with mode: 0644]
src/util/tests/fast_idiv_by_const/meson.build [new file with mode: 0644]