<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 &lt;c.a.subramaniam@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Tao Jiang &lt;jiangtao.jit@gmail.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Graeme Russ &lt;graeme.russ@gmail.com&gt;; Bernd Petrovitsch
 &lt;bernd@petrovitsch.priv.at&gt;; Peter Senna Tschudin &lt;peter.senna@gmail.com&gt;; 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 &lt;<a ymailto="mailto:jiangtao.jit@gmail.com" href="mailto:jiangtao.jit@gmail.com">jiangtao.jit@gmail.com</a>&gt; wrote:<br>&gt; Hi:<br>&gt;<br>&gt; Thank you all.<br>&gt;<br>&gt; Take a byte number 0b00000001 for example<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; high bit &nbsp; &nbsp; low
 bit<br>&gt;<br>&gt; I used to think in a LE machine it will be stored as 0b10000000 low bit first<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;low bit &nbsp; &nbsp; high bit<br>&gt;<br>&gt; and in a BE machine will be 0b00000001 high bit first<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; high bit &nbsp; &nbsp;low bit<br>&gt;<br>&gt; not only the byteorder is different, but inside a byte is also different.<br>&gt;<br>&gt; 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>&gt; Thank you.<br>&gt;<br>&gt;<br>&gt;<br>&gt; 2012/2/20 Graeme Russ &lt;<a ymailto="mailto:graeme.russ@gmail.com" href="mailto:graeme.russ@gmail.com">graeme.russ@gmail.com</a>&gt;:<br>&gt;&gt; On 02/20/2012 01:24 AM, Bernd Petrovitsch wrote:<br>&gt;&gt;&gt; On Sun, 2012-02-19 at 20:08 +0800, Tao Jiang wrote:<br>&gt;&gt;&gt; [...]<br>&gt;&gt;&gt;&gt; Is there some difference of the storge between BE and LE machine inside a byte?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; No. At least TTBOMK there exists no such hardware.<br>&gt;&gt;<br>&gt;&gt; Using SHL/SHR would tell you - SHL normally results in a multiply by 2, SHR<br>&gt;&gt; a divide by 2. If the byte was little endian, the results would be visa-versa<br>&gt;&gt;<br>&gt;&gt; But I agree, I doubt there is any such hardware<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt;<br>&gt;&gt; Graeme<br>&gt;&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt;
 Kernelnewbies mailing list<br>&gt; <a ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>&gt; <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>