base: Function for mirroring bits in variable length word
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 18 Oct 2017 00:04:25 +0000 (01:04 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 20 Oct 2017 15:33:40 +0000 (15:33 +0000)
commit4b3fee098435f1980d0d101ce5a416935d3d6a8e
tree0e32f298f4c6d79c01c4ed142d61704473e53828
parent2a4d6925bc678e3cfa93e3560ec9a4c7f8e6ec2b
base: Function for mirroring bits in variable length word

This patch introduces a high-speed template function for mirroring the
bits (MSB=>LSB) in a variable length word. The function is achieving
high performances since it is using a look-up table.

Change-Id: Ib0d0480e68d902f25655f74d243de305103eff75
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5261
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/base/SConscript
src/base/bitfield.cc [new file with mode: 0644]
src/base/bitfield.hh