linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Endian/__BYTE_ORDER question
@ 2010-02-11 16:17 Joakim Tjernlund
  2010-02-11 16:21 ` Joakim Tjernlund
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2010-02-11 16:17 UTC (permalink / raw)
  To: linuxppc-dev


I am getting confused about on how to test for Endian in the kernel code. In user
space one uses #if __BYTE_ORDER == __LITTLE_ENDIAN or #if __BYTE_ORDER == __BIG_ENDIAN

I can see lots of kernel headers using this test too, but it doesn't seem
to be an arch specific file #defining __BYTE_ORDER. Instead I find files like:
 arch/alpha/math-emu/sfp-util.h
 arch/powerpc/include/asm/sfp-machine.h
 arch/s390/include/asm/sfp-util.h
 arch/sh/math-emu/sfp-util.h

How is this supposed to work?

    Jocke

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

end of thread, other threads:[~2010-02-12 10:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 16:17 Endian/__BYTE_ORDER question Joakim Tjernlund
2010-02-11 16:21 ` Joakim Tjernlund
2010-02-11 16:33 ` Adrian Reber
2010-02-11 16:55   ` Joakim Tjernlund
2010-02-11 21:39     ` Wolfgang Denk
2010-02-11 23:09       ` Joakim Tjernlund
2010-02-12 10:33         ` Geert Uytterhoeven
2010-02-12 10:48           ` Joakim Tjernlund
2010-02-11 16:35 ` Andreas Schwab
2010-02-11 16:52   ` Joakim Tjernlund

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).