> :-) Apple has one of these sorts of creatures. You can see the code
> in the Apple tree, marked by APPLE LOCAL {begin ,end ,}bitfield
> reversal. Your code looks much nicer than the Apple code, I hope it
> works as well.
Amusingly enough, the patch was based on an earlier patch I had lying
ar
On Jul 11, 2011, at 1:52 PM, DJ Delorie wrote:
> Finally getting around to writing this one. The idea is to have an
> attribute which determines how bitfields are allocated
:-) Apple has one of these sorts of creatures. You can see the code in the
Apple tree, marked by APPLE LOCAL {begin ,end
Finally getting around to writing this one. The idea is to have an
attribute which determines how bitfields are allocated within words
(lsb-first vs msb-first), assuming the programmer doesn't ask us to do
something impossible. __attribute__((bitorder(FOO))) where FOO is:
native (or omitted,