[PATCH] fixing SSE detection in solid
Friedrich W. H. Kossebau
kossebau at kde.org
Fri Feb 8 16:20:08 GMT 2008
Am Freitag, 8. Februar 2008, um 15:10 Uhr, schrieb Thiago Macieira:
> On Friday 08 February 2008 07:27:52 Tobias Koenig wrote:
> > Hmm isn't msb the bit that represents 2^0? You see I'm not good at binary
> > level ;)
> MSB = Most significant bit.
As in: the bit which makes the greatest change in the value if swapped.
> 2^0 is always LSB (Least significant bit).
As in: the bit which makes the smallest change.
> Little-endian == LSB-first or LSB left or left-to-right
> Big-endian == MSB-first or MSB left or right-to-left (like our normal
You mixed up bytes and bits ;)
Endianess is about bytes, not bits (at least with the machines we care about
AFAIK). Cmp. http://en.wikipedia.org/wiki/Endianness
Inside a byte the MSB is the first and the LSB is the last bit.
For types based on more than ony byte:
In a Big-Endian machine for a integer type with 4 bytes
the MSB is the first bit in the first byte and
the LSB the last bit in the last byte.
In a Little-Endian machine
the MSB is the first bit of the last byte and
the LSB is the last bit of the first byte.
Hope I did not make a mistake, too ;)
More information about the kde-core-devel