Boost logo

Boost :

Subject: Re: [boost] [dynamic_bitset] Endianess and Adaption Vs Copying
From: Joel (jdy_at_[hidden])
Date: 2012-05-04 11:35:50


Phil Endecott <spam_from_boost_dev <at> chezphil.org> writes:

> If you're thinking about individual bits being "next to" bits in other
> bytes, and bits or bytes being "left" or "right" of each other, your
> mental model of endianness is over-complicated. Because bits are not
> individually addressable, the only thing that matters is the order of
> bytes (which are addressable) within words. Ordering of bits only
> matters when someone draws a picture of something like a peripheral register.

Granted. Sometimes you have to deal with (and understand) other people's mental
models though.

Joel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk