??? 06/21/08 07:52 Read: times |
#156083 - endianity Responding to: ???'s previous message |
Richard said:
That's odd! The one time I remember using a bit-vector, and quite a long one, the leftmost bit was the first bit I encountered meaning that it was the lsb ... I'll have to revisit that. The way I did it seems to have worked fine ... The leftmost bit is ALWAYS the most-significant. But in the PowerPC world (among others), big endian notation is used. So the most significant bit (on the left) is bit 0, and the least significant (on the right) is bit 31 (in a 32-bit world). Byte lane enables are funny, too; byte lane 0 is bits 0 to 7, which are the most significant. Byte lane 3 is bits 24 to 31, which is the least significant. -a |