Hello Gabe Black, Jason Lowe-Power,

I'd like you to reexamine a change. Please visit

    https://gem5-review.googlesource.com/10462

to look at the new patch set (#3).

Change subject: base: add bit reverse functions to bitfield.hh
......................................................................

base: add bit reverse functions to bitfield.hh

Some GCN3 operations do bit reversal. This change adds
these bit manipulation functions to bitfield.hh for general
use.

clang has builtins to handle bit reversal, however GCC
does not, so we use compiler constants and pre-processor
directives to choose the appropriate implementation at
compile time (either the builtin or the gem5 implementation).

The bit reversal algorithms used in the gem5 implementation
were taken from the bit twiddling hacks page:

http://graphics.stanford.edu/~seander/bithacks.html

Change-Id: Icfd6f20c5c2b57d9d85d8d2013e5cd3c1632facc
---
M src/base/bitfield.hh
1 file changed, 49 insertions(+), 1 deletion(-)


--
To view, visit https://gem5-review.googlesource.com/10462
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Icfd6f20c5c2b57d9d85d8d2013e5cd3c1632facc
Gerrit-Change-Number: 10462
Gerrit-PatchSet: 3
Gerrit-Owner: Anthony Gutierrez <[email protected]>
Gerrit-Reviewer: Anthony Gutierrez <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-MessageType: newpatchset
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to