<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br></div><div>Just as an FYI, way back in the early '90s, Texas Instruments came out with a graphics processor (I believe the TMS340x0 praphics processor) that actually did do the little-ending and big-endian down to the bit level.</div><div><br></div><div><br></div> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Subramaniam Appadodharana <c.a.subramaniam@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Tao Jiang <jiangtao.jit@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Graeme Russ <graeme.russ@gmail.com>; Bernd Petrovitsch
<bernd@petrovitsch.priv.at>; Peter Senna Tschudin <peter.senna@gmail.com>; kernelnewbies@kernelnewbies.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, February 20, 2012 8:53:10 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: How to figure out the byteorder only with one byte number?<br> </font> </div> <br>Hi Tao,<br><br><br>On Mon, Feb 20, 2012 at 5:25 AM, Tao Jiang <<a ymailto="mailto:jiangtao.jit@gmail.com" href="mailto:jiangtao.jit@gmail.com">jiangtao.jit@gmail.com</a>> wrote:<br>> Hi:<br>><br>> Thank you all.<br>><br>> Take a byte number 0b00000001 for example<br>> ^ ^<br>> high bit low
bit<br>><br>> I used to think in a LE machine it will be stored as 0b10000000 low bit first<br>><br>> ^ ^<br>><br>> low bit high bit<br>><br>> and in a BE machine will be 0b00000001 high bit first<br>> ^ ^<br>> high bit low bit<br>><br>> not only the byteorder is different, but inside a byte is also different.<br>><br>> But actually they are the same, right?<br>yes they are same. In fact it is termed as 'byte' order not
'bit'<br>order. Hope this helps.<br>> Thank you.<br>><br>><br>><br>> 2012/2/20 Graeme Russ <<a ymailto="mailto:graeme.russ@gmail.com" href="mailto:graeme.russ@gmail.com">graeme.russ@gmail.com</a>>:<br>>> On 02/20/2012 01:24 AM, Bernd Petrovitsch wrote:<br>>>> On Sun, 2012-02-19 at 20:08 +0800, Tao Jiang wrote:<br>>>> [...]<br>>>>> Is there some difference of the storge between BE and LE machine inside a byte?<br>>>><br>>>> No. At least TTBOMK there exists no such hardware.<br>>><br>>> Using SHL/SHR would tell you - SHL normally results in a multiply by 2, SHR<br>>> a divide by 2. If the byte was little endian, the results would be visa-versa<br>>><br>>> But I agree, I doubt there is any such hardware<br>>><br>>> Regards,<br>>><br>>> Graeme<br>>><br>><br>> _______________________________________________<br>>
Kernelnewbies mailing list<br>> <a ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br><br>_______________________________________________<br>Kernelnewbies mailing list<br><a ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br><br><br> </div> </div> </div></body></html>