Re: trivial question regarding byte ordering

2007-02-23 Thread Allexio Ju
On 2/23/07, Frederik Deweerdt <[EMAIL PROTECTED]> wrote: including include/asm/byteorder.h will define the needed cpu_to_{b,l}e{16,32,64} and {b,l}e{16,32,64}_to_cpu macros. Great, Thank you for your answer. Regards, Allexio - To unsubscribe from this list: send the line "unsubscribe linux-ker

Re: trivial question regarding byte ordering

2007-02-23 Thread Allexio Ju
On 2/23/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: #include each architecture is responsible for including the appropriate header file for either big or little endianness. Thank you for answer, Robert. Allexio - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: trivial question regarding byte ordering

2007-02-23 Thread Robert P. J. Day
On Fri, 23 Feb 2007, Allexio Ju wrote: > Hi, > > Is there a API (or macro) that checks CPU endianness and does byte > ordering conversion on given data (32-bit) if endianness is > big-endian? #include each architecture is responsible for including the appropriate header file for either big or l

Re: trivial question regarding byte ordering

2007-02-23 Thread Frederik Deweerdt
On Fri, Feb 23, 2007 at 07:18:13AM -0800, Allexio Ju wrote: > Is there a API (or macro) that checks CPU endianness and does byte > ordering conversion on given data (32-bit) if endianness is > big-endian? including include/asm/byteorder.h will define the needed cpu_to_{b,l}e{16,32,64} and {b,l}e{16