Thread (12 messages) 12 messages, 7 authors, 2012-02-22

How to figure out the byteorder only with one byte number?

From: Graeme Russ <hidden>
Date: 2012-02-19 17:19:35

On 02/20/2012 01:24 AM, Bernd Petrovitsch wrote:
On Sun, 2012-02-19 at 20:08 +0800, Tao Jiang wrote:
[...]
quoted
Is there some difference of the storge between BE and LE machine inside a byte?
No. At least TTBOMK there exists no such hardware.
Using SHL/SHR would tell you - SHL normally results in a multiply by 2, SHR
a divide by 2. If the byte was little endian, the results would be visa-versa

But I agree, I doubt there is any such hardware

Regards,

Graeme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help