[PATCH] fixing SSE detection in solid
thiago at kde.org
Fri Feb 8 18:53:54 GMT 2008
On Friday 08 February 2008 19:16:00 Friedrich W. H. Kossebau wrote:
> But then, while you teach me better:
> What about bitshifts? Does the compiler also adapt the direction of the
> command? I suppose it is already defined in terms of MSB and LSB, with MSB
> being left to the LSB by definition? (I guess it works this way as I am on
> a Little-Endian machine and it works :)
Yes, that's the idea.
> So no IF ELSE ENDIF needed?
The convention on bit shifting is:
right shift = from MSB to LSB
left shift = from LSB to MSB
The idea is that you write numbers in "right-to-left" mode:
0111 1101 1000
So when you shift rightwards, you shift towards LSB (bits become less
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the kde-core-devel