On Fri, Sep 08, 2006 at 11:52:51PM -0700, H. J. Lu wrote:
Why do we use SLOW_BYTE_ACCESS to control bit field access? Bit field
currently is implemented as unsigned int, at least for x86. Accessing
bit field as 32bit is always faster unless 4 byte accesses are
much faster one 32bit access, which is very unlikely will be true for
x86 in any circumstances. Is this a leftover from the old bit field
implementation?
I don't understand why we use byte instruction to access 32bit field.
There may be some hardwares where 4 byte accesses are faster than one
32bit access. But I am not aware any x86 one.