tests, base: Added GTests for base/intmath.cc
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 22 Oct 2019 21:35:29 +0000 (14:35 -0700)
committerMahyar Samani <msamani@ucdavis.edu>
Wed, 20 Nov 2019 00:52:01 +0000 (00:52 +0000)
commita37b8279af0ac35407c88a5ccc126003422d6158
tree19e553301051ffdb11b236f0b8d24492c1c6b0ba
parent92d04b102a018af12b1779d4e588d9df5026f459
tests, base: Added GTests for base/intmath.cc

Testing intmath.hh and intmath.cc. Here is the
list of the functions that are tested.
intmath.isPowerOf2, intmath.power, intmath.floorLog2,
intmath.ceilLog2, intmath.divCeil, intmath.roundUp,
intmath.roundDown. Other functions are not tested,
because they are not currently used and are dead code.

Change-Id: I150ac1b5cead93c6698a8c9e9cec80bd87ef181a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22081
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Mahyar Samani <msamani@ucdavis.edu>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/base/SConscript
src/base/intmath.hh
src/base/intmath.test.cc [new file with mode: 0644]