kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How to figure out the byteorder only with one byte number?
@ 2012-02-18 14:33 Tao Jiang
  2012-02-18 15:59 ` Peter Senna Tschudin
  0 siblings, 1 reply; 12+ messages in thread
From: Tao Jiang @ 2012-02-18 14:33 UTC (permalink / raw)
  To: kernelnewbies

Hi:

As far as I know, we can use an integer 0x12345678 with four bytes
and bytes[4] array to figure out a machine's byteorder

Is there a method use only one byte 0x01
and some shifts do the same work?

Thank you.

---------------
jiangtao

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-02-22 11:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).