From: graeme.russ@gmail.com (Graeme Russ)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to figure out the byteorder only with one byte number?
Date: Mon, 20 Feb 2012 04:19:35 +1100 [thread overview]
Message-ID: <4F412F27.8080907@gmail.com> (raw)
In-Reply-To: <1329661442.3226.4.camel@thorin>
On 02/20/2012 01:24 AM, Bernd Petrovitsch wrote:
> On Sun, 2012-02-19 at 20:08 +0800, Tao Jiang wrote:
> [...]
>> 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
next prev parent reply other threads:[~2012-02-19 17:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-18 14:33 How to figure out the byteorder only with one byte number? Tao Jiang
2012-02-18 15:59 ` Peter Senna Tschudin
2012-02-19 12:08 ` Tao Jiang
2012-02-19 14:24 ` Bernd Petrovitsch
2012-02-19 17:19 ` Graeme Russ [this message]
2012-02-20 11:25 ` Tao Jiang
2012-02-20 13:53 ` Subramaniam Appadodharana
2012-02-20 22:32 ` THAI NGUYEN
2012-02-21 1:22 ` Sri Ram Vemulpali
2012-02-21 12:30 ` Tao Jiang
2012-02-21 12:48 ` Bernd Petrovitsch
2012-02-22 11:27 ` Tao Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F412F27.8080907@gmail.com \
--to=graeme.russ@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.