Le 22 déc. 09 à 19:56, Dmitry Torokhov a écrit :
I meant "read-modify-write" is worse.
To modify a bitfiled the processor has to fetch data from memory (or
cache if it is in cache) perform a logical operation on it, and store
it back in teh memory. With boolean occupying 1 byte, on most
architectures (older alphas is one exception I know of) var=true
can be
done by simple store, no need for "read-modify" part.
OK. I had not realized this. My processor architecture courses were
too long ago.
St.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html